PDA

View Full Version : Mirror Command Defaults



dgalloway
2005-04-08, 08:57 PM
Hello All:

When using the "mirror" command AutoCAD asks you if you want to delete the source objects and the default for that is <n> for no. I want to change that default option to <y> for yes. Any help would be appriciated.

lance.81922
2005-04-08, 09:39 PM
I don't see how the standard command can be changed, but a simple AutoLISP routine would do the job.

scwegner
2005-04-08, 09:47 PM
I don't see how the standard command can be changed, but a simple AutoLISP routine would do the job.
To get you started on the lisp, the way to make a default is:



(initget "Yes No")
(if
(not
(setq answer
(getkword
"\nDelete source objects? [Yes/No] <Y>: ")))
(setq answer "yes")
)

You can either try to write something that prompts like mirror would then feeds the info to mirror -which may be easier- or replace it entirely -which might look more like the native command. Let me know and I'd be happy to help with either option.