Creates an MLeader style with ObjectARX-compatible default values.
Gets the align space.
Gets the annotative.
Gets the alias of arrowSymbolId.
Gets the alias of arrowSize.
Gets the arrow size.
Gets the arrow symbol id.
Gets the attributes object for this AcDbObject.
The AcCmObject instance containing all attributes
Gets the bit flags.
Gets the block connection type.
Gets the alias of blockConnectionType.
Gets the alias of blockId.
Gets the alias of blockRotation.
Gets the alias of enableBlockRotation.
Gets the alias of blockScale.
Gets the alias of enableBlockScale.
Gets the block id.
Gets the block rotation.
Gets the block scale.
Gets the alias of bottomTextAttachmentType.
Gets the bottom text attachment type.
Gets the alias of breakSize.
Gets the break size.
Gets the content 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 alias of defaultMTextContents.
Gets the default mtext contents.
Gets the description.
Gets the alias of enableDogleg.
Gets the dogleg length.
Gets the draw leader order type.
Gets the draw mleader order type.
Gets the enable block rotation.
Gets the enable block scale.
Gets the enable dogleg.
Gets the enable frame text.
Gets the enable landing.
Gets the extend leader to text.
Gets the objectId of the extension dictionary owned by this object.
If the object does not have an extension dictionary, this returns undefined.
In ObjectARX terms, this is equivalent to AcDbObject::extensionDictionary().
The extension dictionary objectId, or undefined
Sets the objectId of the extension dictionary owned by this object.
This does not create or delete the dictionary object itself — it only establishes or clears the ownership relationship.
Passing undefined removes the association.
The extension dictionary objectId, or undefined
Gets the first segment angle constraint.
Returns true if this object is temporary and not yet committed to the database.
A temporary object is identified by its objectId starting with the TEMP prefix.
Gets the alias of enableLanding.
Gets the landing gap.
Gets the leader line type.
Gets the leader line type id.
Gets the leader line weight.
Gets the legacy alias of maxLeaderSegmentsPoints.
Gets the max leader segments points.
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 overwrite prop changed.
Gets the alias of overwritePropChanged.
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 scale.
Gets the alias of scale.
Gets the second segment angle constraint.
Gets the text align always left.
Gets the text alignment type.
Gets the text angle type.
Gets the text attachment direction.
Gets the alias of enableFrameText.
Gets the text height.
Gets the text left attachment type.
Gets the text right attachment type.
Gets the alias of defaultMTextContents.
Gets the alias of textStyleId.
Gets the text style id.
Gets the alias of topTextAttachmentType.
Gets the top text attachment type.
Gets the first undocumented raw style value.
Gets the second undocumented raw style value.
Creates the extension dictionary for this object if it does not already exist.
This method closely mirrors the behavior of
AcDbObject::createExtensionDictionary() in ObjectARX.
The objectId of the extension dictionary
Writes this MLeaderStyle object to DXF fields.
DXF filer that receives serialized group codes.
The current style instance for chaining.
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
Retrieves the XData associated with this object for a given application ID.
Extended Entity Data (XData) allows applications to attach arbitrary, application-specific data to an AcDbObject. Each XData entry is identified by a registered application name (AppId) and stored as an AcDbResultBuffer.
This method is conceptually equivalent to AcDbObject::xData() in ObjectARX,
but simplified to return the entire result buffer for the specified AppId.
The application ID (registered AppId name) that owns the XData
The AcDbResultBuffer associated with the AppId, or undefined
if no XData exists for that AppId
Removes the XData associated with the specified application ID.
After removal, calls to getXData() for the same AppId will return undefined.
If no XData exists for the given AppId, this method has no effect.
This mirrors the behavior of clearing XData for a specific application in ObjectARX rather than removing all XData from the object.
The application ID whose XData should be removed
Sets the value of an attribute.
The name of the attribute to set
Optionalval: AcDbObjectAttrs[A]The value to assign to the attribute
Attaches or replaces XData for this object.
If XData already exists for the given AppId, it is replaced by the provided AcDbResultBuffer. The caller is responsible for ensuring that:
This method is conceptually similar to AcDbObject::setXData() in ObjectARX.
The result buffer containing the XData to attach
Represents the nongraphical MLEADERSTYLE object.
This class mirrors the core ObjectARX
AcDbMLeaderStyleget/set API by exposing equivalent TypeScript properties.