(setq acdoc (vla-get-activedocument (vlax-get-acad-object))
cplot (vla-get-activelayout acdoc)
acplt (vla-get-plot acdoc)
)
(setq dev (vla-get-ConfigName cplot))
(setq pf1 '(0.0 68.75))
(setq pf2 '(47.5 0.0))
(vla-put-plottype cplot acwindow)
(vlax-invoke
cplot
'setwindowtoplot
pf1
pf2
)
(vla-put-CenterPlot cplot 1)
(vla-PlotToFile
(vla-get-Plot acdoc)
(strcat (getvar "dwgprefix")
"test"
".pdf"
)
)
https://www.theswamp.org/index.php?topic=56516.msg603190#msg603190
https://www.theswamp.org/index.php?topic=56516.msg603190#msg603190
Thanks mate, that was great.
Is there any way to prevent running pdfs after creating them through lisp? lots of pdf is coming up on the screen during publishing
...Is there any way to prevent running pdfs after creating them...