Quantcast
Channel: Autodesk AutoCAD forums
Viewing all articles
Browse latest Browse all 14319

Layerstates versus -layer on off

$
0
0

Hi all,

 

For many years I've been switching on and off layers with the -layer command in lisp, but I've recently run into issues where using sillyness like (command "regen" "LAYERP" "LAYERP" "LAYERP" "LAYERP" "LAYERP") is just not acceptable anymore. 

 

If utilizing Layerstates can do what what it sounds like it does, then can someone please help me first save a current state so that I can run some functions and then after they have completed I'll need to restore the layers back to exactly the state they were in before I started running functions.

 

It would be great if I could do something like (get-layerstate) & (restore-layerstate).

 

Thank you.


Viewing all articles
Browse latest Browse all 14319

Trending Articles