stevsmith Posted February 4, 2009 Posted February 4, 2009 When I select break at point, I want it to break at the point only (obviously) but when I right click to repeat the command and use it again, it actually makes a gap in the line. I mean I have to reclick the icon time and time again. How can I stop this so it carries out the 1st action only and not split and gap the line? Ive checked the CUI, ^c^c_break\_f\@ and tried to alter this but to no avail. Any ideas? Quote
Lee Mac Posted February 4, 2009 Posted February 4, 2009 One of my very first LISPs (defun c:breakat () (command "break" PAUSE "F" PAUSE "@") (princ) ) Quote
Lee Mac Posted February 4, 2009 Posted February 4, 2009 Just seen its identical to what you have :oops: Quote
Lee Mac Posted February 4, 2009 Posted February 4, 2009 In Macro form you need: ^C^C_break;\_F;\@; Quote
dbroada Posted February 4, 2009 Posted February 4, 2009 I think you need 2 x @ the first to reselect the first point (already selected) and the second to repeat it. Quote
dbroada Posted February 4, 2009 Posted February 4, 2009 needs 2 here on 2008, but that was typing on the command line - haven't tried it as a macro. Quote
Lee Mac Posted February 4, 2009 Posted February 4, 2009 Perhaps another case of prompts changing with versions. Quote
dbroada Posted February 4, 2009 Posted February 4, 2009 OK, tried it as a macro and you're right - didn't need it. This worked though... ^C^C_break \@ Quote
StevJ Posted February 4, 2009 Posted February 4, 2009 You can also put an asterisk in front of the macro like this: *^C^C_break \_f \@ You will then remain in the command until you ESC out of it. Pick a line, pick the break point; pick a line, pick a break point, etc. No right-click needed. Handy thing, that asterisk. Steve Quote
Lee Mac Posted February 4, 2009 Posted February 4, 2009 Cheers Stev, Didn't know about that one Quote
StevJ Posted February 4, 2009 Posted February 4, 2009 Using the asterisk in front of button macros is a real time-saver, and the Break-at-Point is much more tolerable this way, especially if there are a lot of breaks to make. The interesting thing I've found with this particular macro is that a space is needed at the end, not a semi-colon. Haven't quite figured that one out yet. Steve Quote
Lee Mac Posted February 4, 2009 Posted February 4, 2009 The interesting thing I've found with this particular macro is that a space is needed at the end, not a semi-colon. Haven't quite figured that one out yet. A space is equivalent to a semi-colon or new-line I thought in macros Quote
StevJ Posted February 4, 2009 Posted February 4, 2009 You're right, Lee. I just tried both ways, and either semicolon or space will work at the end of that macro. When I checked the AutoCAD macro syntax there was a space at the end instead of a semicolon. I must have confused it with a custom macro I use at work, which must have a space at the end. Steve Quote
stevsmith Posted February 4, 2009 Author Posted February 4, 2009 I think we all learned a little something from this question. I'll give it a try at work 2morrow. I'll mix it up and try all the different possibilities to see which works better with my draughting style. (seeing as everyone is diffo) Thanks once again guys. Quote
Lee Mac Posted February 4, 2009 Posted February 4, 2009 Let us know the outcome Steve Cheers Lee Quote
stevsmith Posted February 13, 2009 Author Posted February 13, 2009 I used Stevie' macro code, worked a treat, thanks to all guys I dont know why i have underline on, i tried to turn it off. doesnt work.??? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.