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

 All Forums
 Hurricane for AutoCAD
 Tips and Tricks
 PageSetups - Page Layouts
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Super User

36 Posts

Posted - April 03 2003 :  1:13:20 PM  Show Profile  Visit BK's Homepage  Reply with Quote
In the previous message, some indication to the wonderful world of pagesetups got me searching for more stuff on AutoDesks website.

I found this lisp routine that claims to be able to add/remove pagesetups, and even has a "remove all" feature. BUT it looks like they made a mistake, and the lisp routine is actually for managing Page LAYOUTS rather than PageSetups. The lisp is worthwhile having anyhow.

Download Attachment:
1.3 KB

Here is a bit of a writeup from the AutoDesk website...

1) Save the file with a .lsp file extension (for example, psetup.lsp).

2) On the command line, type load "c:your_pathpsetup.lsp to load the file.

3) Call the command (psetup) from a script file, another LISP program, or directly from the command line. With this utility you can create or delete layouts at the same time or even delete all of the layouts at once.

To CREATE the layouts "layout_1" "layout_2" "layout_3" "layout_4" "layout_5", add the following line in the script file (or run directly from the AutoCAD command line):

(psetup "add" (list "layout_1" "layout_2" "layout_3" "layout_4" "layout_5"))

To DELETE the layouts "layout_1" "layout_2" "layout_3"", add the following line in the script file:

(psetup "remove" (list "layout_1" "layout_2" "layout_3"))

To DELETE ALL all the layouts, add the following line in the script file:

(psetup "remove" "all")

You must include the parentheses.

Note: All of the information stored in the layout will be deleted without any warnings.

Funny thing though, if I attempt to run the (PSETUP "remove" "all"), then I get an error that says:

Regenerating model.
; error: Automation Error. Layout to delete is modelspace

If anyone knows why this is happening please let me know!


New Member

United Kingdom
19 Posts

Posted - April 04 2003 :  04:46:11 AM  Show Profile  Visit gdury's Homepage  Reply with Quote
Bill i had the same intention, i came across the page also on the Autodesks web site full of hope, only to find when i ran the lisp programme it deleted all my created LAYOUT tabs..
I agree it is a useful utility when de-sheeting 3rd party drawings.

Graham Dury - G.L.Draughting Ltd, Contract Draughting Services
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2018 Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000