Creates a new 2d vertex entity.
Gets the attributes object for this AcDbObject.
The AcCmObject instance containing all attributes
Gets the vertex's bulge value.
The vertex's bulge value
Sets the vertex's bulge value.
The vertex's bulge value
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 end width for the vertex. The end width is used as the width at the end of the polyline segment from this vertex to the next vertex.
The end width for the vertex
Sets the end width for the vertex. The end width is used as the width at the end of the polyline segment from this vertex to the next vertex.
The end width for the vertex
Gets the name of the layer referenced by this entity.
The layer name
Sets the name of the layer for this entity.
The new layer name
Gets the line style for this entity.
This method returns the line style based on the entity's linetype and other properties.
The line style object
Gets the name of the line type referenced by this entity.
The linetype name
Sets the name of the line type for this entity.
The new linetype name
Gets the line type scale factor of this entity.
When an entity is first instantiated, its line type scale is initialized to an invalid value. When the entity is added to the database, if a linetype scale has not been specified for the entity, it is set to the database's current line type scale value.
The linetype scale factor
Sets the line type scale factor for this entity.
The new linetype scale factor
Gets the line weight used by this entity.
The line weight value
Sets the line weight for this entity.
The new line weight value
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 position value of the vertex. The position point value must be in OCS coordinates (the OCS of the polyline containing the vertex), not WCS. The Z coordinate is kept in the owning AcDb2dPolyline only for historical purposes.
The position value of the vertex
Sets the position value of the vertex. The position point value must be in OCS coordinates (the OCS of the polyline containing the vertex), not WCS. The Z coordinate is kept in the owning AcDb2dPolyline only for historical purposes.
The position value of the vertex
Returns the full property definition for this entity, including all property groups and runtime accessors.
This getter is used by the property inspector UI to:
The returned structure contains:
Note: The groups array contains AcDbEntityPropertyGroup objects whose
properties entries are runtime-resolved property descriptors that include
AcDbPropertyAccessor objects. Each property object therefore
conforms to AcDbEntityRuntimeProperty.
Gets the RGB color of this entity.
This method handles the conversion of color indices (including ByLayer and ByBlock) to actual RGB colors. It resolves layer colors and block colors as needed.
The RGB color value as a number
Gets the start width for the vertex. The start width is used as the width at this vertex for the polyline segment from this vertex to the next vertex.
The start width for the vertex
Sets the start width for the vertex. The start width is used as the width at this vertex for the polyline segment from this vertex to the next vertex.
The start width for the vertex
Gets the transparency level of this entity.
The transparency value.
Sets the transparency level of this entity.
The transparency value.
Gets the type name of this entity.
This method returns the entity type by removing the "AcDb" prefix from the constructor name.
The entity type name
Gets the type of this vertex.
The type of this vertex
Sets the type of this vertex.
The type of this vertex
Gets whether this entity is visible.
True if the entity is visible, false otherwise
Sets whether this entity is visible.
True to make the entity visible, false to hide it
ProtectedattachAttaches entity information to a graphic interface entity.
This method transfers essential entity properties (object ID, owner ID, layer name, and visibility) from this entity to the target graphic interface entity. This is typically used during the rendering process to ensure the graphic entity has the correct metadata.
The graphic interface entity to attach information to
Draws nothing because it will be drawn by its parent 2d polyline.
undefined
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
ProtectedgetCreates the "General" property group for this entity.
This group contains common metadata attributes shared by all CAD entities (e.g., handle, layer). Each property includes a runtime AcDbPropertyAccessor allowing the property inspector to read and update live values.
Subclasses may override this method to append additional general-purpose properties while still preserving this base set.
A fully resolved property group containing runtime-accessible properties.
ProtectedgetSets the value of an attribute.
The name of the attribute to set
Optionalval: AcDbObjectAttrs[A]The value to assign to the attribute
Gets the grip points for this vertex.
Array of grip points (center, start point, end point)
Gets the object snap points for this vertex.
Object snap points are precise points that can be used for positioning when drawing or editing. This method provides snap points based on the specified snap mode.
The object snap mode
The point where the user picked
The last point
Array to populate with snap points
Transforms this vertex by the specified matrix.
The transformation matrix to apply
This vertex after transformation
Represents the vertices in 2D polylines.