PDA

View Full Version : Current Page Setup


David van Erk
2007-10-24, 08:08 PM
Hello,

Does anyone know how to select the "current page setup" in LISP or ActiveX?
What I use to select page setups I no longer need (have them removed or replaced) is this (partly):

(vlax-for ps (vla-get-plotconfigurations
(vla-get-activedocument
(vlax-get-acad-object)))
(if (= (strcase (vla-get-name ps)) (strcase "hpdj 1050c 19th Fl (standard 36 x 24)"))
(progn
(setq PS02 1)
)
)
)

What I have another routine doing now is indiscriminately setting the "current page setup" to none for every drawing. But I'd like to do so selectively as I'm doing above where I remove or replace page setups.

Ed Jobe
2007-10-24, 08:54 PM
As I mentioned in your other thread (http://forums.augi.com/showthread.php?t=69667), you use a layout object's CopyFrom method. Here are some of my lisp's for working with page setups, a.k.a Plotconfigurations in ActiveX.

lgabriel
2009-10-16, 08:54 PM
Sorry for the dumb questions but inside your SetPlotConfig.lsp, you list a parameter named pcname. Exactly what is this argument?

Ed Jobe
2009-10-16, 10:13 PM
It tells you in the header, its the page setup name. "pc" stands for "plot configuration", the name that the ActiveX api calls page setups.
;;; Sets a Layout to a PlotConfiguration object by
;;; passing a string representing the name of
;;; the Page Setup.