Display full version of the post: LAYERS ON & OFF

GaryM
10.09.2007, 07:55
Hi guys
 
Working in autocad 2008, would like to switch off certain layers and turn on certain layers with a command button in VBA. For example:
 
There is more than one layer that starts with "FFA_" is there a way i can use that text to switch off all the layers starting with "FFA_" and all Layers starting with "FCA_" in one command.
 
 
Thanks

Vladimir Michl
10.09.2007, 08:12
You don't need any VBA for this. Just use a simple menu macro:
 
_-LAYER;_OFF;FFA_*,FCA_*;;
 

GaryM
11.09.2007, 08:33
Hi Vladimir
 
What i'm basically doing is converting a lisp routine into VBA. So its a about 6 compiled routines i'm trying to make convert into 1 vba routine.
 
Thanks