Rand89
Guest
Hello everyone
I should create a macro that selects all the layers whose name ends for a given text, e.g. "_aa", and then layer1_a, layer2_a, layer3_aa, etc., and then freeze them...for the last part I have already found the way it is:
the problem is for the first part, or how to select all layers without having to indicate names one by one...
I've been looking everywhere, but I've only found some code for vb.net.
Thanks :wink:
I should create a macro that selects all the layers whose name ends for a given text, e.g. "_aa", and then layer1_a, layer2_a, layer3_aa, etc., and then freeze them...for the last part I have already found the way it is:
Code:
dim lr as acadlayer
set lr = thisdrawing.layers("layer_aa")
lr.freeze = true
I've been looking everywhere, but I've only found some code for vb.net.
Thanks :wink: