@Sea-Haven schrieb:
Use -insert as using command "insert" will pop open the dialog box -insert runs command line sequence note if you have attributes you will need to supply an answer.
So alone, the statements are not correct, so I would like to complete.
>"note if you have attributes you will need to supply an answer."
Sometimes yes, sometimes no, depends on
a) how the attribute definitions are defined
b) What is the current setting of ATTREQ.
>"Use -insert as using command "insert" will pop open the dialog box"
This is not correct in such cases. Autocad detects the automation and automatically starts
"the commandline version for automation"
But I would also use the commandline version, even if it makes no technical difference.
It fits better with the meaning (I write down what is really going on) and
It is easier to understand, especially for beginners.
Why i wrote "the commandline version for automation"
It would be more important to explain that some commands started by hand are not the same command(version)s are,
that is executed by automations, thats why i wrote "the commandline version for automation".
-INSERT is a perfect sample, if i am right the default -INSERT command for automation comes from 2007,
the -INSERT command type in by hand comes from 2008 (Please do not beat if I'm wrong, better tell me why you disagree).
It sounds frightening to someone who does not know:
INSERT by hand, current Dialog/Palette version
INSERT via automation, old commandline-version
-INSERT via automation, old commandline-version
-INSERT by hand, current commandline-version
You can influence the version used, but my knowledge is limited. If someone can complete this information, please - only to:
Lisp, you can controle the command-version by Lisp function INITCOMMANDVERSION, for MenuMacros you can force the current version by using ^R
{ Automation = MenuMacro, Script.scr, Command/sendCommand via APIs }
Another sample, Explode
EXPLODE by hand starts the current version, EXPLODE in automation will start an old version which allows just to explode 1 object (in standard setting)
old command-version, just one object: ^C^C_.EXPLODE;_all;;
current command-version, multiple objects: ^C^C^R_.EXPLODE;_all;;
thanks for listening..