The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 General Discussion
 How do I Batch Plot all Layout Tabs?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

CowboyJoe
Starting Member

USA
2 Posts

Posted - April 01 2004 :  1:00:21 PM  Show Profile  Visit CowboyJoe's Homepage  Reply with Quote
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,


Joe

Admin
Administrator



652 Posts

Posted - April 01 2004 :  2:40:17 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
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

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

CowboyJoe
Starting Member

USA
2 Posts

Posted - April 01 2004 :  3:29:17 PM  Show Profile  Visit CowboyJoe's Homepage  Reply with Quote
That worked perfectly meeting both of my problems... thank you for the quick response.. i'm off and running now...


thank you again,

Joe
Go to Top of Page

cadtastic
Starting Member



USA
3 Posts

Posted - June 10 2005 :  1:54:07 PM  Show Profile  Visit cadtastic's Homepage  Reply with Quote
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
Go to Top of Page

Admin
Administrator



652 Posts

Posted - June 10 2005 :  3:49:49 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
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

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.33 seconds. Snitz Forums 2000