codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  Layers Collection

The collection of all layers in the drawing.

VBA class name:

AcadLayers 

Create using:

N/A 

Access via:

Document.Layers 

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.

Methods

Add

GenerateUsageData

GetExtensionDictionary

GetXData

Item

SetXData  

Properties

Application

Count

Document

Handle

HasExtensionDictionary

ObjectID

ObjectName

OwnerID  

 

   Comments?