Creates a new line type table record.
The line type style object that defines the visual characteristics and pattern of this line type
Gets the attributes object for this AcDbObject.
The AcCmObject instance containing all attributes
Gets the description or comments associated with this line type.
This property provides additional information about the line type, such as its intended use or any special characteristics.
The description text for the line type
Gets the database in which this object is resident.
When an object isn't added to a database, this property returns the current working database. After it is added to a database, it will be set automatically. You should never set this value manually.
The database this object belongs to
Sets the database for this object.
This is typically set automatically when the object is added to a database. Manual setting should be avoided unless you know what you're doing.
The database to associate with this object
Gets the line type style object used by the renderer.
This property provides access to the underlying line type definition that contains all the visual characteristics and rendering information.
The line type style object
Gets or sets the name of the symbol table record.
This property corresponds to DXF group code 2 and is used for identifying and referencing the symbol table record.
The name of the symbol table record
Gets the number of dash elements in the line type pattern.
This value represents the total count of dashes, spaces, dots, and other pattern elements that make up the line type. It corresponds to DXF group code 73 in the AutoCAD file format.
The number of pattern elements in the line type
Gets the object ID.
AutoCAD uses 64-bit integers to represent handles, which exceed the maximum integer value of JavaScript. Therefore, strings are used to represent object handles.
The object ID as a string
Sets the object ID.
The new object ID
Gets the object ID of the owner of this object.
The owner object ID
Sets the object ID of the owner of this object.
The new owner object ID
Gets the total pattern length in AutoCAD drawing units.
The pattern length represents the total length of all dashes and spaces when the line type scale is 1.0. This value is used to calculate how the pattern repeats along a line.
Note: Embedded shapes or text strings do not add to the pattern length because they are overlaid and do not interrupt the actual dash pattern.
The total length of the line type pattern in drawing units
Gets the length of a specific dash element in the line type pattern.
Each dash element in the pattern has a specific length that determines how it appears when the line type is rendered. Positive values represent visible dashes, while negative values represent spaces (pen up).
Zero-based index of the dash element. Must be greater than or equal to zero, but less than the value of property 'numDashes'
The length of the specified dash element in drawing units
Gets the value of the specified attribute.
This method will throw an exception if the specified attribute doesn't exist. Use getAttrWithoutException() if you want to handle missing attributes gracefully.
The name of the attribute to retrieve
The value of the specified attribute
Gets the value of the specified attribute without throwing an exception.
This method returns undefined if the specified attribute doesn't exist, making it safer for optional attributes.
The name of the attribute to retrieve
The value of the specified attribute, or undefined if it doesn't exist
Sets the value of an attribute.
The name of the attribute to set
Optional
val: AcDbSymbolTableRecordAttrs[A]The value to assign to the attribute
Represents a record in the line type table within the AutoCAD drawing database.
Each line type table record contains the information necessary to define a specific line type, including its pattern, description, and rendering characteristics. Line types define how lines are drawn, including patterns of dashes, dots, and spaces.
Within the line type table record, the dashes (line segments that make up characteristics of the linetype) are stored in a list with an index that is zero based. If the linetype is complex, then embedded shapes or text strings are stored in the list at the same index as the dash that preceded them in the linetype definition. So there will always be a dashLength for any valid index in the list, even if there is a shape or text string sharing the same index. When the linetype is elaborated, a shape's insertion point will coincide with the end of the dash that it shares an index with.