Author Topic: Page set up  (Read 2058 times)

0 Members and 1 Guest are viewing this topic.

Nardino

  • Newt
  • Posts: 97
Page set up
« on: October 21, 2016, 10:50:24 AM »
Does anybody know how to make page set up current with a script or a lisp?
I have many drawings with multiple pages set, and I'd like to make a certain one current.
thanks

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Page set up
« Reply #1 on: October 21, 2016, 11:02:34 AM »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Refri

  • Mosquito
  • Posts: 11
Re: Page set up
« Reply #2 on: October 24, 2016, 12:05:28 AM »

Does anybody know how to make page set up current with a script or a lisp?
I have many drawings with multiple pages set, and I'd like to make a certain one current.
thanks

You have multiple formats in model space?

Nardino

  • Newt
  • Posts: 97
Re: Page set up
« Reply #3 on: October 25, 2016, 09:35:45 AM »
I have many drawings (almost 800) in which there are 4 page set ups in each one. The names of these set ups are the same for every drawing, and what I wanted to do is to run some script or lsp to make current a certain one without calling each drawing and do it manually using the page set up manager.

Refri

  • Mosquito
  • Posts: 11
Re: Page set up
« Reply #4 on: November 03, 2016, 12:27:59 AM »
Maybe this will help:
https://youtu.be/aidpC1be2SI

BlackBox

  • King Gator
  • Posts: 3770
Re: Page set up
« Reply #5 on: November 03, 2016, 10:46:24 AM »
Does anybody know how to make page set up current with a script or a lisp?
I have many drawings with multiple pages set, and I'd like to make a certain one current.
thanks

This old post may be of use:

http://forums.augi.com/showthread.php?80461-Page-Setup-Manager&p=1219546&viewfull=1#post1219546

Quote from: BlackBox
<snip>

Example:

Code - Auto/Visual Lisp: [Select]
  1. (foreach layoutname (layoutlist)
  2.   (vla-SetActivePageSetup layoutname "YourPageSetupName")
  3. )
  4.  


<snip>
"How we think determines what we do, and what we do determines what we get."