Linetypes Collection (ActiveX)

The collection of all linetypes in the drawing.

Supported Platforms: Windows only

Class Information

Class Name

AcadLineTypes

Object Inheritance
Object
   AcadObject
      AcadLineTypes
Create Using

VBA

Not applicable
Access Via

VBA

Document.Linetypes

Members

These members are part of this object:

Remarks

To add a new member to the collection, use the Add method. To select a specific linetype, use the Item method.

Although the Linetypes collection inherits a Delete method, you cannot actually delete the collection. Attempting to delete the Linetypes 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 linetypes that you can create in your drawing. However, there can be only one instance of the Linetypes collection that is predefined for each drawing. You can make multiple references to it by using the Linetypes property. Once done with an object, the reference is automatically released.