rocneasta Posted October 29, 2009 Posted October 29, 2009 you're faced with a desire of constantly starting to draw an ARC with start,end,direction... i mainly use the command line to draw, model and everything else really - so it's easier for me and my workflow to just type A and be done with, but annoying thing is to type "e" for end, and "d" for direction every time - i can always move additional button to a taskbar, or a palette, but it doesn't fit my workflow is there a way to override a command so it starts the way you like (at least the ones with options)? Quote
ReMark Posted October 29, 2009 Posted October 29, 2009 Override a command? So to use your example you just want to type A for arc and not be prompted for anything after that? Why not create a macro then? Quote
GE13579 Posted October 29, 2009 Posted October 29, 2009 You can reassign commands, but as it's a string of commands you need, then I think a LISP will be the best option, you can call it what you like, and when you type that, it will run all the commands. Failing that, as ReMark suggested, create a button, although from what you wrote it may not be what you're after? Quote
rocneasta Posted October 29, 2009 Author Posted October 29, 2009 yea i just want to reshuffle things around a bit - so for instance i want after pressing A for arc, for acad to run "start, end, direction" with all other questions but this combination should be default value Quote
GE13579 Posted October 29, 2009 Posted October 29, 2009 If you need more than 1 option you can create buttons or lisps for each option. Quote
rocneasta Posted October 29, 2009 Author Posted October 29, 2009 need to dig into lisp learning i guess... and so very little time tnx for your replies hopefully i'll solve my workflow problem - hate trying to find a button on my screen, even if it's floating, docked, in a palette or someplace else... Quote
alanjt Posted October 29, 2009 Posted October 29, 2009 yea i just want to reshuffle things around a bit - so for instance i want after pressing A for arc, for acad to run "start, end, direction" with all other questions but this combination should be default value This should get you started: (defun c:AD (/ #Pnt1 #Pnt2) (and (setq #Pnt1 (getpoint "\nSpecify start point of arc: ")) (setq #Pnt2 (getpoint #Pnt1 "\nSpecify end point of arc: ")) (command "_.arc" "_non" #Pnt1 "_e" "_non" #Pnt2 "_direction") ) ;_ and (princ) ) ;_ defun Quote
rocneasta Posted October 30, 2009 Author Posted October 30, 2009 @ alajnt - cheers for your help, too lost in space to get it to work Quote
alanjt Posted October 31, 2009 Posted October 31, 2009 @ alajnt - cheers for your help, too lost in space to get it to work Open notepad, copy/paste in content, save as name.lsp, appload into autocad and type AD. Quote
rocneasta Posted October 31, 2009 Author Posted October 31, 2009 Cad64 explained a bit about lisp routine so i was able to get this going as well with your help ofc greatly appreciate the help, my workflow has been bumped with speed ! Quote
alanjt Posted October 31, 2009 Posted October 31, 2009 Cad64 explained a bit about lisp routine so i was able to get this going as well with your help ofc greatly appreciate the help, my workflow has been bumped with speed ! Good deal. Don't hesitate to ask any other questions. 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.