The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 How do I Batch Plot all Layout Tabs?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
CowboyJoe Posted - April 01 2004 : 1:00:21 PM
Hi,

I've been trying to figure out how to use Hurricane to plot all available layout tabs in the drawing. Manually I can go into AutoCad 2004 and click the little "All Layout Tabs" radio button... But how do I do that with a Hurricane Script.

Also, how do I get the script to recognize all available layout tab names within a single drawing so that it can automatically modfy the plot settings for each of the layout tabs.


Any help would be greatly appreciated,

4   L A T E S T    R E P L I E S    (Newest First)
Admin Posted - June 10 2005 : 3:49:49 PM
Hi cadtastic,

I understand exactly what you are trying to do!

As of this minute there isn't anything in Hurricane that can increment a counter within a script. I can most definitely add one, but it will take some work.

However, in the meantime, I *think* there would be a way to do that with lisp or diesel (but I'm no lisp or diesel expert)

I'm pretty sure you can substitute a diesel expression into the filename line of your script, and increment it before you recall the plot command the second (and more) times...

I wish I could help better at the moment!

Regards,
Bill
cadtastic Posted - June 10 2005 : 1:54:07 PM
Hello,

I have a similar problem at hand. I'm looking to make plt files and can't figure out how to get the "layout's name" in the filename of the plot file. I believe that the drawings with multiple tabs are creating plot files with identical names and are over writing each other because of this.

My current script looks something like:

;START OF SCRIPT------------------------------
;ABORT=TRUE
filedia 0
tilemode 0
PS
(if(="Model" (getvar "ctab"))
(command "_-plot"
"_Yes"
""
"OCE 9400"
"D+ 24x36 in"
"_Inches"
"_Landscape"
"_No"
"_Extents"
"_1:1"
"_Center"
"_Yes"
"mehandes_full_1-8.ctb"
"_Yes"
"_No"
"_Yes"
"_No"
"_Yes"
"c:/plots/$YYYY$$MM$$DD$ - $filename$"
"_No"
"_Yes"))
(progn
(foreach laylist (vl-remove "Model"(layoutlist))
(setvar "ctab" laylist)
(command "_-plot"
"_Yes"
""
"OCE 9400"
"D+ 24x36 in"
"_Inches"
"_Landscape"
"_No"
"_Extents"
"_1:1"
"_Center"
"_Yes"
"mehandes_full_1-8.ctb"
"_Yes"
"_No"
"_Yes"
"_No"
"_Yes"
"c:/plots/$YYYY$$MM$$DD$ - $filename$"
"_No"
"_Yes")))
filedia 1
CLOSE
Y
;END OF SCRIPT------------------------------


The output in my Plot Folder looks like:
c:plots20050610 - M-13-14(exhaust riser).plt

And I would like it to look like:
c:plots20050610 - M-13-14(exhaust riser) - Riser#1.plt
c:plots20050610 - M-13-14(exhaust riser) - Riser#2.plt

Is there a $tag$ that I have overlooked somewhere?
Or is there a way to link the ctab variable to the file name in the file name prompt?
Any help or suggestions would be greatly appreciated! =D

Paul
CowboyJoe Posted - April 01 2004 : 3:29:17 PM
That worked perfectly meeting both of my problems... thank you for the quick response.. i'm off and running now...


thank you again,

Joe
Admin Posted - April 01 2004 : 2:40:17 PM
Hi CowboyJoe,

There is a built-in script called "Plot all Tabs", which you can use as a base (you need to edit it to point to you plotter, and "adjust" any of the plot parameters).

Here is a copy of it... (it works for me!)


;START OF SCRIPT------------------------------
;ABORT=TRUE
(if(="Model" (getvar "ctab"))
(command "_-plot"
"_Yes"
""
"\\YOUR SERVER\PRINTER"
"11 x 17"
"_Inches"
"_Landscape"
"_No"
"_Display"
"_Fit"
"0.00,0.00"
"_Yes"
""
"_Yes"
"_No"
""
"_No"
"_Yes"))
(progn
(foreach laylist (vl-remove "Model"(layoutlist))
(setvar "ctab" laylist)
(command "_-plot"
"_Yes"
""
"\\YOUR SERVER\PRINTER"
"11 x 17"
"_Inches"
"_Landscape"
"_No"
"_Display"
"_Fit"
"0.00,0.00"
"_Yes"
""
"_Yes"
"_No"
"_No"
"_No"
""
"_No"
"_Yes")))
;END OF SCRIPT------------------------------


I hope this helps you out.

Regards,
Bill

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.2 seconds. Snitz Forums 2000