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
 Layer Mnager
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pccad@sonic.net
New Member



USA
12 Posts

Posted - March 16 2002 :  5:23:15 PM  Show Profile  Reply with Quote
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  Show Profile  Visit BK's Homepage  Reply with Quote
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
Go to Top of Page

pccad@sonic.net
New Member



USA
12 Posts

Posted - March 17 2002 :  3:58:34 PM  Show Profile  Reply with Quote
No I would need to address any naming schema, ie, no consistancy in the drawings. Good thought though and thanks for the time.
Stan

Go to Top of Page

BK
Super User

36 Posts

Posted - March 17 2002 :  4:46:25 PM  Show Profile  Visit BK's Homepage  Reply with Quote
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
Go to Top of Page

pccad@sonic.net
New Member



USA
12 Posts

Posted - March 17 2002 :  5:11:11 PM  Show Profile  Reply with Quote
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

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