YAZ Posted October 13, 2014 Posted October 13, 2014 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 Quote
RobDraw Posted October 13, 2014 Posted October 13, 2014 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?) Quote
BIGAL Posted October 14, 2014 Posted October 14, 2014 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) Quote
BlackBox Posted October 14, 2014 Posted October 14, 2014 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. Cheers Quote
YAZ Posted October 14, 2014 Author Posted October 14, 2014 Autopublish does it beautifully, thank you very much Quote
BlackBox Posted October 15, 2014 Posted October 15, 2014 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.