PDA

View Full Version : layout tab setup *



rstiles
2005-03-30, 07:12 PM
Ok I don’t know if anyone has ever needed this but it would be nice...
As it is right now you may open an existing drawing that has layout tabs setup but they are setup to a different plotter (or they never really were set up in the first place) and you want to setup the drawing for your plotter or a different plotter. You go to page setup and set it up. But you have to do this for each tab.
I would like an option to be able to set up all or a couple of layout tabs at the same time. One reason is that I have tried to do a publish with one of my projects but there are 2 companies that are working on the drawings. So plotters, paper (related to plotter), and CTB are different and before I can publish I have to set each tab up.

Does anyone else think this is a good idea? Or if you can do this tell me please.

-Russ

Rick.B
2005-03-30, 10:05 PM
This may be a work around for you.

I think you could do something similar in your template file. Create all of the layouts you want in a template and use it when creating new files. Any existing files, you should be able to use design center. Just drag and drop the layouts you want from an existing drawing.

Mike.Perry
2005-03-30, 10:15 PM
Hi

For some very handy Page Setup utilities, take a look at the following thread -

Is there any replacement for BatchPlot in Autocad 04 and 05? (http://forums.augi.com/showthread.php?t=4846)

Have a good one, Mike

LanceMcHatton
2005-03-31, 04:15 PM
Ok I don’t know if anyone has ever needed this but it would be nice...
As it is right now you may open an existing drawing that has layout tabs setup but they are setup to a different plotter (or they never really were set up in the first place) and you want to setup the drawing for your plotter or a different plotter. You go to page setup and set it up. But you have to do this for each tab.
I would like an option to be able to set up all or a couple of layout tabs at the same time. One reason is that I have tried to do a publish with one of my projects but there are 2 companies that are working on the drawings. So plotters, paper (related to plotter), and CTB are different and before I can publish I have to set each tab up.

Does anyone else think this is a good idea? Or if you can do this tell me please.

-Russ
If you're using 2002, I have a lisp that'll help. It pulls a page setup from a specified dwg so you'll have to have that set up before you execute it. It's a version of a similar lisp that someone else wrote a while back from the Forums. I don't remember his name.

;;;
;;;Sets all layouts to a specific pagesetup-------------------
;;;
;;;;;;;;;;;;;;;;;Bond;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun c:2436-Oce (/ actlay doc layouts plot)
(setq doc (vla-get-activedocument (vlax-get-acad-object))
actlay (vla-get-activelayout doc)
layouts (vla-get-layouts doc)
plot (vla-get-plot doc)
)
(setq oldexpert (getvar "expert"))
(setq oldfiledia (getvar "filedia"))
(setvar "expert" 5)
(command "-psetupin" "L:/block/GCW/Sheet_Borders/Page setup-H.dwg" "2436-Oce")
(setvar "expert" oldexpert)
(setvar "filedia" oldfiledia)
(vlax-for itm layouts
(if (/= (strcase (vla-get-name itm)) "MODEL")
(progn
(vla-put-ActiveLayout doc itm)
(command "._plot" "no" "" "2436-Oce" "" "no" "YES" "NO")
)
)
)
(vla-put-ActiveLayout doc actlay)
(princ "\nAll Layout Tabs were Set to 2436-Oce (Bond)")
(princ)
)
;;;
;;;Sets all layouts to a specific pagesetup and plots all layouts-----------------------
;;;
;;;;;;;;;;;;;;;;;Bond+plot;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun c:2436-Oceplot (/ actlay doc layouts plot)
(setq doc (vla-get-activedocument (vlax-get-acad-object))
actlay (vla-get-activelayout doc)
layouts (vla-get-layouts doc)
plot (vla-get-plot doc)
)
(setq oldexpert (getvar "expert"))
(setq oldfiledia (getvar "filedia"))
(setvar "expert" 5)
(command "-psetupin" "L:/block/GCW/Sheet_Borders/Page setup-H.dwg" "2436-Oce")
(setvar "expert" oldexpert)
(setvar "filedia" oldfiledia)
(vlax-for itm layouts
(if (/= (strcase (vla-get-name itm)) "MODEL")
(progn
(vla-put-ActiveLayout doc itm)
(command "._plot" "no" "" "2436-Oce" "" "no" "YES" "n")
(vla-PlotToDevice plot)
)
)
)
(vla-put-ActiveLayout doc actlay)
(princ "\nAll Layout Tabs were Set to 2436-Oce (Bond) and plotted")
(princ)
)

rstiles
2005-04-04, 01:37 PM
Sorry it took so long to get back on this thanks for the lisp but I am using 2004 so I will have to modify it first before I can see how well it works. I have used publish before but I did not have a need like I did now to change any layout setups. But going back and looking at it I found that you could set your drawings to plot with a predefined page setup as long as you are plotting with in publisher. Now my only wish is that you can do this with page setup manager to the current drawing you are in but to all or selected layout tabs. Right now you can only set it for the current tab. But I can live with the features publisher gives me. At least I will now save time when plotting the set. Thanks Mike, Lance and Rick for helping me solve my dilemma.
-Russ

Ed Jobe
2005-04-04, 02:23 PM
Download my ImportPageSetups from the Exchange. It will set all layouts to the chosen setup.

Wish List System
2016-04-11, 06:09 AM
Layout Tab Setup

Summary: I would like an option to be able to set up all or a couple of layout tabs at the same time. One reason is that I have tried to do a Publish with one of my projects, but there are 2 companies that are working on the drawings. So plotters, paper (related to plotter), and CTB are different and before I can Publish, I have to set each tab up.

Description:

Product and Feature: AutoCAD -

Submitted By: rstiles on 09/01/2005