The collection of all layers in the drawing.
Supported Platforms: Windows only
AcadLayers
Object AcadObject AcadLayers
VBA
Not applicable
VBA
Document.Layers
These members are part of this object:
Methods |
Properties |
Events |
---|---|---|
To add a new member to the collection, use the Add method. To select a specific layer, use the Item method.
Although the Layers collection inherits a Delete method, you cannot actually delete the collection. Attempting to delete the Layers collection will result in an error. The Delete method has been removed from the documentation for this collection.
There is no limit to the number of layers that you can create in your drawing. However, there can be only one instance of the Layers collection. The Layers collection is predefined for each drawing. You can make multiple references to it by using the Layers property. Once done with an object, the reference is automatically released.