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. |
|
|