Author Topic: Set pagesetup for all layouts  (Read 3173 times)

0 Members and 1 Guest are viewing this topic.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Set pagesetup for all layouts
« on: November 21, 2006, 03:22:12 PM »
Scenerio:  I need to modify all layouts in current drawing to use our "18x24" pagesetup.

There are 6 layouts named as follows: A1-A4, E1 & E2.  I have 3 pagesetups that are imported into the drawing.  Once imported, I want to set the "18x24" pagesetup as the default for each layout.  Right now I'm activating the layout, initiating the 'pagesetup' command, and double clicking on the "18x24" pagesetup.  I know this can be done programatically, I am just not allowed the time to research/write this.  Any help?  Kick in the right direction?  Love ya all!

whdjr

  • Guest
Re: Set pagesetup for all layouts
« Reply #1 on: November 21, 2006, 03:56:17 PM »
Dommy

Look here.  The first code is to delete page setups and the second is for copying page setups.

HTHs

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Re: Set pagesetup for all layouts
« Reply #2 on: November 21, 2006, 04:25:24 PM »
Brilliant!!! Thank you very much.  Do I have your permission to modify the code?  I really don't need the dialog select for this particular project.  I'm just trying to automate this as much as possible.  I already know which one I need to set current.  The dialog will come in handy in the future, though!

whdjr

  • Guest
Re: Set pagesetup for all layouts
« Reply #3 on: November 21, 2006, 04:27:54 PM »
Sure, have fun though.   :-)

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Re: Set pagesetup for all layouts
« Reply #4 on: November 21, 2006, 04:37:17 PM »
Sure, have fun though.   :-)

Have fun?  Are you saying it's going to be hard???

whdjr

  • Guest
Re: Set pagesetup for all layouts
« Reply #5 on: November 21, 2006, 05:32:06 PM »
No I'm just saying make sure you have fun.  That's all.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Re: Set pagesetup for all layouts
« Reply #6 on: November 21, 2006, 06:07:47 PM »
No I'm just saying make sure you have fun.  That's all.

Gotcha!  Come on...work is fun...isn't it?

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Set pagesetup for all layouts
« Reply #7 on: November 21, 2006, 10:38:58 PM »
you can use the whdjr code to delete page setup..

but why not insert template drawing and cancel be4 complete insertion ?
you will retreive all pages setups you need..
Keep smile...

whdjr

  • Guest
Re: Set pagesetup for all layouts
« Reply #8 on: November 22, 2006, 03:14:03 PM »
you can use the whdjr code to delete page setup..

but why not insert template drawing and cancel be4 complete insertion ?
you will retreive all pages setups you need..

If for instance you had a dwg that didn't have named pagesetups.  The beauty of named pagesetups is once you import it into a dwg and set it current in your layouts; if you make any changes to the 'main' pagesetup then it updates every layout tab that it is set to.

Cool!!!