The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 Tips and Tricks
 PageSetups - Page Layouts

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
BK Posted - April 03 2003 : 1:13:20 PM
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: psetup.zip
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!


Thanks,
BK


1   L A T E S T    R E P L I E S    (Newest First)
gdury Posted - April 04 2003 : 04:46:11 AM
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.

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