Jump to content

Recommended Posts

Posted

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

Posted
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?)

Posted

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)

Posted

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

Posted

Autopublish does it beautifully, thank you very much

Posted
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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...