Commands at command line

Commands at command line

dani-perez
Advocate Advocate
1,306 Views
5 Replies
Message 1 of 6

Commands at command line

dani-perez
Advocate
Advocate

Hello all,

 

I am trying to code on my own, but I have one problem.

Commands such as "plot" have two ways of calling:

    plot: with interface

   -plot: without interface

 

and I am interested in no interface commands. But commands such as "publish" have that 2 ways but both execute the interface.

Is there a way to no execute interface commands for any of them?

thanks all.

 

P.D: I am no native and I am not using google hehe

0 Likes
Accepted solutions (1)
1,307 Views
5 Replies
Replies (5)
Message 2 of 6

Moshe-A
Mentor
Mentor

@dani-perez  hi,

 


@dani-perez wrote:

Hello all,

 

I am trying to code on my own, but I have one problem.

Commands such as "plot" have two ways of calling:

    plot: with interface

   -plot: without interface

 

that's not really true, there are some native commands that has 2 forms to run:

the first with dialog box interface and  a second from the command line interface and PLOT \ -PLOT is one of them. adding '-' prefix to the command name says that you want it to run from the command line but you can not add '-' to any command you like only for commands that support it.

 

for example

 

LAYER and -LAYER

LINETYPE and -LINETYPE

UNITS and -UNITS

 

anyway calling autocad commands from (command) function will run the command from the command line.

if a command does not have a command line interface (like PUBLISH) do not call it from (command) cause you can not control the dialog box from autolisp.

 

 

moshe

 

0 Likes
Message 3 of 6

dani-perez
Advocate
Advocate

if a command does not have a command line interface (like PUBLISH) do not call it from (command) cause you can not control the dialog box from autolisp.

 

 

moshe

 


Hello Moshe-A,

 

Thanks for replying. How can I call commands which doesnt have command line (like publish) in order to control it via lisp or script?

 

regards.

0 Likes
Message 4 of 6

Moshe-A
Mentor
Mentor

the question is what is your goal? cause if you want to do publishing of PDF\DWF the use of PUBLISH command is the best way and there is no more need to customize it.

 

 

 

 

0 Likes
Message 5 of 6

ВeekeeCZ
Consultant
Consultant
Accepted solution

Well, unless the command has its -command-line-version, there is usually nothing you can do to run it without a dialog. You just need to learn to program well enough to not need them.

And sure, there are quite a few, which, especially newbies, are desperately searching for ... FIND, QSELECT... and more.

Message 6 of 6

dgorsman
Consultant
Consultant

Shorter version: some commands only have a dialog interface.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes