Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Command line version in AutoLISP

4 REPLIES 4
Reply
Message 1 of 5
sanganaksakha
226 Views, 4 Replies

Command line version in AutoLISP

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
4 REPLIES 4
Message 2 of 5

(alert (ver))
Message 3 of 5
Anonymous
in reply to: sanganaksakha

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
Message 4 of 5
Anonymous
in reply to: sanganaksakha

I should add that there's no "harm" in having the hyphen before the command
name inside a (command) function. It just isn't necessary.
--
Kent Cooper
Message 5 of 5

Thanks all for replys. May be, it has been this way right through.

--- Sanjay Kulkarni

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost