Community
We have many different layers and we are trying to write a program to select the right layer to display by sending it as a string. The following code we know works
g_AcadDoc.Layers(layerNumber).Freeze = Not viewable
layerNumber is an integer but we are trying to retrieve the layerNumber by looking for the passed layerName.
Thank you
You can pass either a number (the index of the layer in the collection)
or a string (the name of the layer).
What is the object g_AcadDoc that holds the layers object? I am trying to hide layers myself and am not having much luck.
Thank you.
It's the AcadDocument class.