Jump to content
YAZ

Autocad Script to plot multiple tabs in one file

Recommended Posts

YAZ

HI, I HAVE A SIMPLE SCRIPT FILE THAT PRINTS SPECIFIC TABS INSIDE A CAD FILE, IS IT POSSIBLE TO CHANGE THIS TO MAKE IT PLOT MULTIPLE TABS "LAYOUTS" IN THE SAME FILE, BASICALLY WILL BECOME EQUIVALENT TO A PUBLISH "BATCH PLOT" COMMAND.

 

 

 

-PLOT

Y

PV2.00

DWG TO PDF.PC3

ARCH full bleed E1 (30.00 x 42.00 Inches)

I

L

N

L

F

 

Y

SoCore_2014.ctb

Y

Y

Y

N

 

N

Y

Y

 

 

 

THNX

Share this post


Link to post
Share on other sites
RobDraw
BASICALLY WILL BECOME EQUIVALENT TO A PUBLISH "BATCH PLOT" COMMAND.

 

The obvious answer would be to use publish and named page set-ups. (Or is it sets-up?)

Share this post


Link to post
Share on other sites
BIGAL

Here is a quick answer, we have 2 versions plot all or this one plot range.

 

;Plots layouts by range
; By Alan H Feb 2014
(defun AH:pltlays ( / lay numlay numend)

(setq numlay (getint "\nEnter Start tab number"))
(setq numend (getint "\nEnter last tab number"))

(setq len (+ (- numend numlay) 1))

(repeat len
(vlax-for lay (vla-get-Layouts (vla-get-activedocument (vlax-get-acad-object)))
(if (= numlay (vla-get-taborder lay))
 (setvar "ctab" (vla-get-name lay))
) ; if
(princ (getvar "ctab"))
) ; for
(setq lay nil)


(COMMAND "-PLOT" "Y" "" "COLOR-PRNA3" "A3" "m"    "LANDSCAPE"	   "N"   "W"  "-6,-6"    "807,560"	"1=2"  "C"
       "y"	  "Designlasercolor.ctb" "Y"	"N" "N" "N" "N" "N" "y"      )

(setq numlay (+ numlay 1))
) ; end repeat
) ; defun

(AH:pltlays)

Share this post


Link to post
Share on other sites
BlackBox

FWIW -

 

AUTOPUBLISH was implemented in 2009, and can plot to multi-document PDF, and DWF in a relative (to DWFPREFIX), or specified (always the same, i.e., Documents, etc.) path of your choosing.

 

Configured to use a named page setup, I simply SAVE* a document, and resultant PDF is produced automagically. :thumbsup:

 

Cheers

Share this post


Link to post
Share on other sites
YAZ

Autopublish does it beautifully, thank you very much

Share this post


Link to post
Share on other sites
BlackBox
Autopublish does it beautifully, thank you very much

 

You're welcome, YAZ; I'm happy to help.

 

 

 

FWIW - I also use a custom app to make AUTOPUBLISH only produce electronic documents for exhibits and sheets, and not for DREF/XREF-only drawings... Should that be of interest, see the Exchange link in my signature.

 

Cheers

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×