How to add your knowledge

Designing Queryable Custom Objects Details

    Table of contents
    No headers

    Observe the following guidelines:

    • Subclass each custom object class from the appropriate ARX parent class, as detailed below.
    • Ensure that each custom object instance in a drawing is added to the Model Space section of the drawing's Block table.

    To support SQL or Data queries, the parent class doesn't matter.

    To support location queries, a custom class must derive from AcDbEntity and overload the methods getGeomExtents, intersectWith, getStretchPoints, and transformBy.

    To support property queries, custom class requirements depend on the properties to be queried:

    Queryable PropertyClass to Derive FromMethods to Overload
    AreaAcDbCurvegetArea
    Block NameAcDbBlockReferenceNone
    ElevationNot supported.  
    Object TypeAcDbEntityNone
    LengthAcDbCurvegetEndParam getDistAtParam
    Text StyleAcDbTextNone
    Text ValueAcDbTextNone
    ThicknessNot supported.  
    ColorAcDbEntityNone
    GroupAcDbEntityNone
    LayerAcDbEntityNone
    LinetypeAcDbEntityNone

    Note Object Type name specified via special MACRO, such as ACRX_DXF_DEFINE_MEMBERS.