Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Page Setup Macro

2 REPLIES 2
Reply
Message 1 of 3
m_rogoff
1016 Views, 2 Replies

Page Setup Macro

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

 

 

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: m_rogoff

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;

Message 3 of 3
Anonymous
in reply to: Anonymous

(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) )

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta