How do I get command dialog box through lisp.

How do I get command dialog box through lisp.

Timothy_BrooksU4G6R
Participant Participant
440 Views
4 Replies
Message 1 of 5

How do I get command dialog box through lisp.

Timothy_BrooksU4G6R
Participant
Participant

Autocad has a few commands that automatically calls a dialog box like; plot, style and etc. However, when I call one of these commands via lisp (command “plot”) I don’t get dialog version, I get the text version like: -plot.

So I wrote lisp routine to setup plot setting, at the end of lisp routine I want to call up the normal plot dialog box, but I don’t know how to call that.

 

Any advice?

0 Likes
441 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant

Use (initdia) before (command "plot")

 

0 Likes
Message 3 of 5

Timothy_BrooksU4G6R
Participant
Participant

surprisingly simple, thanks

0 Likes
Message 4 of 5

paullimapa
Mentor
Mentor

and here's another way:

(vla-sendcommand(vla-get-activedocument(vlax-get-acad-object))"_.Plot\r")

Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

Do you really need to call Plot dialogue or just use a plot lisp ?

    (COMMAND "-PLOT"  "Y"  "" "Plot To PDF"
	       "Iso full bleed A3 (420.00 x 297.00 MM)" "m" "LANDSCAPE"  "N"   "W"  "-6,-6" "807,560" "1=2"  "C"
	       "y" "Acad.ctb" "Y"	"n" "n" "n" pdfName "N" "y"
    )

You can make your own small dcl to set say some relevant values. 

0 Likes