DBObjectFromAcadObject Method

Returns the ID of an ACAD database object.

Namespace: Teigha.DatabaseServices
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 27.3.0.0
Syntax
public static ObjectId FromAcadObject(
        Object acadObj
)

Parameters

acadObj  Object
[in] ACAD object from which to get the ID.

Return Value

ObjectId
Object ID of the ACAD database object.
Remarks
This method throws the 'ArgumentNullException' exception if the passed argument is null.
See Also