If you use a command that has a dialog box, in a Script or Macro, or type it
in at the keyboard, and you want the command-line version without the dialog
box, you do (and still) need to precede it with a hyphen.
If you use a dialog-box command inside a (command) function in AutoLisp, you
do NOT need to use the hyphen to avoid the dialog box -- it will use the
command-line version. It works sort of in reverse -- if you DO want the
dialog box, you need to force it to use that, by immediately preceding the
(command) function with (initdia), which I assume stands for something like
"initialize dialog box".
I don't know whether this is a change, or has always been this way.
--
Kent Cooper
wrote...
What am I missing?
The xref command has dialog box. When you want to use it AutoLISP one needed
to use the command line version (command "-xref"). On command line it works
the same old way.
In one of the recent examples I saw (command "xref") work without the dialog
box.
Is '-' now unnecessary? Or is there some sysvar? When did this change occur?
Now when I want to display the dialog box in AutoLISP what do I use?
- Sanjay Kulkarni