Author |
Topic |
|
pccad@sonic.net
New Member
USA
12 Posts |
Posted - March 16 2002 : 5:23:15 PM
|
I've come to need a way to wipe out the saved layer states in a series of drawings and can't seem to find a way to select all the states. If I use "-lman" command I can only get a reading of all the layer states using the wild card *, when I try to delete, the * wildcard is not recognized and I'm forced to select one at a time...a pain. It may need a lisp routine but alas I'm not too good at that yet. Any thought on how to get this accoplished so that I can then put it in a script and "blow" it away with a hurricane. Thanks, Stan
|
|
BK
Super User
36 Posts |
Posted - March 16 2002 : 6:48:20 PM
|
Stan, does each drawing happen to have the same state names? If so you can just "hard-code" them into a script.
;BEGIN SCRIPT -LMAN D LAYERSTATE1 Y
-LMAN D LAYERSTATE2 Y
;END SCRIPT
It seems however that using that command, if the layer state doesn't exist, then the wrong number of prompts appear, so it doesn't exit and move onto the next state transparently...
I will keep my eyes peeled for a lisp that can blow all the states away in one shot...
Regards, BK
Bill http://www.74mph.com Hurricane for AutoCAD |
|
|
pccad@sonic.net
New Member
USA
12 Posts |
Posted - March 17 2002 : 3:58:34 PM
|
No I would need to address any naming schema, ie, no consistancy in the drawings. Good thought though and thanks for the time. Stan
|
|
|
BK
Super User
36 Posts |
Posted - March 17 2002 : 4:46:25 PM
|
It seems that the LMAN command is actually a lisp routine (in you AutoCAD/EXPRESS (Bonus tools) directory) that can be edited.
Unfortunately I don't know lisp well enough to offer any help. (I hate to refer anyone to another site) BUT, I think that if you posted your request to http://www.cadchat.com (naming the lman.lsp file) there would be someone more than willing to fix it. The people that frequent that site are experts at lisp! I bet there is someone there just waiting to "enhance" that lisp routine to add the functionality to delete ALL layer states in one go (using the command line of course!)...
Hope this helps!
Bill http://www.74mph.com Hurricane for AutoCAD |
|
|
pccad@sonic.net
New Member
USA
12 Posts |
Posted - March 17 2002 : 5:11:11 PM
|
Thanks bill, I'll give it a shot. By the way I really like the form and hopefully with a little time it will become a dynamic place to exchange thoughts and ideas to further the practice of efficient and effective CAD. Thanks, Stan
|
|
|
|
Topic |
|