LISP to change the page setup

LISP to change the page setup

karfung
Advocate Advocate
510 Views
6 Replies
Message 1 of 7

LISP to change the page setup

karfung
Advocate
Advocate

Hi Sir,

 Kindly advise LISP to change the page setup in page setup manager for all the layouts. 

Thanks

0 Likes
511 Views
6 Replies
Replies (6)
Message 2 of 7

Moshe-A
Mentor
Mentor

@karfung ,

 

Explore PlotConfiguration object in VisualLISP ActiveX (this is pagesetup)

also the Layout is consider king of PlotConfiguration you can iterate layouts and make the needed settings.

for specific help, post your code.

 

Moshe

 

0 Likes
Message 3 of 7

chriscowgill7373
Mentor
Mentor

There are lots of them out there

https://autocadtips1.com/2012/05/18/autolisp-apply-current-page-setup-to-all-layout-tabs/

Here is one. I havent tried this one specifically.   If it doesnt work, I can do a little more research of the routines I have in my library and see if I can get links to those as well.


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2026 on Windows 11

Please select the Accept as Solution button if my post solves your issue or answers your question.

0 Likes
Message 4 of 7

karfung
Advocate
Advocate

This lisp is not working. 

0 Likes
Message 5 of 7

chriscowgill7373
Mentor
Mentor

When you load it and run it, is it giving you an error message?  I didnt write it, but I can probably help diagnose it.

Here is another example, complete with a dialog box

https://www.theswamp.org/index.php?topic=12439.msg153420#msg153420

And another

https://www.theswamp.org/index.php?topic=38005.msg430212#msg430212


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2026 on Windows 11

Please select the Accept as Solution button if my post solves your issue or answers your question.

0 Likes
Message 6 of 7

paullimapa
Mentor
Mentor

perhaps you would be interested in running my free app Script Magician which adds the command SMA or SMASSIGN which offers a custom dialog box for you to select an existing page setup to assign to layouts:

_5-SMA-1-Main.png


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 7 of 7

Sea-Haven
Mentor
Mentor

Just another way around the problem we had in our POP menu various plot options so you just choose the correct printer, and it used a custom lisp that just set the plot parameters. We had a multi storey office so the correct printer near to the user was auto selected. our A0 plotter was on a different floor as well.

 

 menu 8.png

 

If your using PUBLISH then yes need to set up the page parameters. That is another question but yes you can write a DSD file to be used by publish saves again user input.

 

 

0 Likes