macro mid to point doesn'
Hi to all,I often use this (nameless) macro in Autocad 2010 while another command is open.
For example I digit "line" on promp, then I choose the first point, and then to select the second point which is a midpoint between other two, I digit:
'' + space (more comfortable for me than using shift and right click)
But I found that in 2014 atucad this macro does not work whenanother command is open.
Does anyone know the reason? Is there any system variable to be set?
The macro is:
(defun c: ()
(command "_M2P")
)
Thanks for any help Hi Marco,
why not use an unused function key?
I've assigned F5, very fast. Try this:
'_M2P Hi ,
yes, F5 is an available option, but for a long time I used ''+space,which worked well on autocad 2007 and 2010, and I do not understand why on autocad 2014 will not work anymore.
Then to assign F5 I should create a new command passing through the CUI and is something that I prefer to avoid, because I often use the computers of colleagues and my customizations (for me easily reversible) are limited to lisp files I use frequently and aliases of PGP.
I do not want to change my habits because of a simple matter, perhaps a system variable set differently ...
Thanks Hi guran,
you mean that i've to chenge the macro?
like this:
(defun c: ()
(command "'_M2P")
) Yes, exactly! In Autocad 2010 '_M2P give me error.
I'll try tomorrow on Autocad 2014, I'll see if it works This is from AutoCad 2014 help:
"To use a command transparently, enter an apostrophe (') before entering the command at any prompt." M2P is not a command.It is a command modifier. Why would you need to use an apostrophe? You're right, ReMark, I just read marmo's macro - "(command "_M2P")". That should not be a command.
页:
[1]
2