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.
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.