AcDbEntity is the base class for all database objects having a graphical representation.
AcDbEntity is derived from
AcDbObject. Creating a custom entity involves the following steps.
To create a custom entity
- Derive a custom class from
AcDbEntity.
- Override all of the necessary
AcDbObject functions. (See
Deriving from AcDbObject for specifics.)
- Override the required
AcDbEntity functions. (See
AcDbEntity Functions to Override for specifics.)
- Override other functions as needed to support your custom functionality.
- If you want to support the MATCHPROP command, implement
AcDbMatchProperties as a protocol extension.
- If you want to create a custom drag sequence for your entity, implement your own version of
AcEdJig.
The following sections discuss these topics in more detail.