Page Setup Macro

m_rogoff
Advocate
Advocate

Page Setup Macro

m_rogoff
Advocate
Advocate

Hi, my end goal is to create a macro that will change the plotter (or .PC3) used in the current layout. I do not want to have to create a new layout tab, just change the existing one.

 

 

I've used -Psetupin but it just imports a Page Setup and doesn't set it current.

 

If I can somehow just Rename the Page Setup, there is an option in -Psetupin to redefine the Page Setup. Or how do I redefine what PC3 file it uses?

Thanks in advance

 

 

0 Likes
Reply
1,049 Views
2 Replies
Replies (2)

Anonymous
Not applicable

Have you tried this using the -plot command? the - in front of the command keeps it in your command bar.
If have a Y behind the command it will give you detailed plot config so you can set all variables.
Last question "proceed with plot" would be a N assuming you don't want to print it. And the one before that "save changes to page setup" would be a Y so it saves your setting.

Your macro would start with this: ^C^C-plot;

Anonymous
Not applicable
(defun C:SetPrinter ()
(vl-load-com) (setq AcadObj (vlax-get-Acad-Object)) (setq AlayObj (vla-get-ActiveLayout (vla-get-ActiveDocument AcadObj))) (vla-put-ConfigName AlayObj "DWG to PDF.pc3") (princ) )
0 Likes