Command modifiers - suppress dialog box?

Command modifiers - suppress dialog box?

Anonymous
Not applicable
2,458 Views
3 Replies
Message 1 of 4

Command modifiers - suppress dialog box?

Anonymous
Not applicable

Hello.

There is a symbol or something that you type in the command line before a command which normally would open a dialog box to suppress its dialog for that command only.   I stumbled upon it once upon a time when reading through a LISP program someone had wrote and I remember thinking it would be very useful.   But now a year later I have forgotten it.


For example, the normal command might be

SAVEAS

And if you type __SAVEAS or $SAVEAS or .SAVE as or ~SAVEAS or something like that it will suppress the dialog and allow you to enter your options on the command line.    Its very useful for scripting.

 

But I cant remember what symbol it is and I have tried all of the above and none of them are it.  

 

Who knows what I am talking about?

 

Thanks

0 Likes
2,459 Views
3 Replies
Replies (3)
Message 2 of 4

cadffm
Consultant
Consultant
For Scripting only Attdia(and attreq) for attributvalues.
Sometimes cmddia.

Script(menumacro and sendcommands) starts always the commandlineversion of a command, if available.
For working by hand in commandline the commandline versions starts with "-"
WBLOCK
-WBLOCK
LAYER
-LAYER
..

But as i wrote, menumacro script and commandline start this commandlineversions.
You send command LAYER and Autocad will start -LAYER

For testing in commandline by hand, you have to set filedia=0 for file selection dialogs and you have to start -LAYER and not LAYER for example (for checking the options and the workflow)

Sebastian

Message 3 of 4

david.burow
Advocate
Advocate

I know this is old but it was the top hit on google and didn't have what I was looking for.  I ususally use the - for command line, but I've seen scripts that use this format:
_.wblock

_.layer

I don't know what the difference is, maybe someone more knowledgeable can advise.

0 Likes
Message 4 of 4

cadffm
Consultant
Consultant

One part of the answer you can read above.

LAYER command for exampe is a command with a dialogwindow(or palette),

-LAYER command is a command without a dialog window (or palette).

If you starting LAYER command in a script macro or (send)command, AutoCAD know it and starts the -LAYER command.

If you want to start this command by hand, you need to use -LAYER instead of LAYER.

In Script Macros and (send)commands always the -LAYER command will stsrt.

 

 

Underline or not.

LINE is an english command, which will not work in french or german versions.

_LINE is the international command, this will works in all language versions.

 

.LINE starts the real native LINE command.

Real Native ?

Yes. Programmers can make that LINE command will create a circle or line on another layer than the current one.

.LINE will start the original line command.

 

 

_.-WBLOCK

Will start the original  -WBLOCK command (the commandline version of WBLOCK) and is wotrking in all language versions.

 

 

Sebastian

0 Likes