marcsellier Posted February 13, 2009 Share Posted February 13, 2009 Hi, I'm making a macro in VBA for AutoCAD. How can I hide all layers present in a drawing of AutoCAD? There is an instuction, command or method? And after that, how can I show a layer called "Pippo"? Thanks, Marc Quote Link to comment Share on other sites More sharing options...
JohnM Posted February 13, 2009 Share Posted February 13, 2009 If you have express tools installed you should look into the layiso and layunison commands. Also in autocad the layon and layoff commands Quote Link to comment Share on other sites More sharing options...
flowerrobot Posted February 13, 2009 Share Posted February 13, 2009 or layer2 tool bar, which can isolate layers or turn them off so like (carnt remember the coammand name) (command "layeriso" "pippo" \) Quote Link to comment Share on other sites More sharing options...
CmdrDuh Posted February 13, 2009 Share Posted February 13, 2009 this should point you in right direction for each acadlayer in thisdrawing.layers layer.freeze=true next layer.item('Pippo").freeze=false Quote Link to comment Share on other sites More sharing options...
NBC Posted February 13, 2009 Share Posted February 13, 2009 I got the answer: Close your eyes ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.