Jump to content

customizing default commands


Recommended Posts

Posted

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)?

Posted

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?

Posted

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?

Posted

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

Posted

If you need more than 1 option you can create buttons or lisps for each option.

Posted

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...

Posted
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

Posted

@ alajnt - cheers for your help, too lost in space to get it to work

Posted
@ 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.

Posted

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 :)!

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...