Creating the COM Object

AutoCAD implements a set of interfaces for all database-resident objects that have corresponding Automation components. The Automation API is responsible for creating the appropriate COM object for a given database-resident object.

Many of the AutoCAD interfaces are implemented for your AcDbObject-derived or AcDbEntity-derived class if you use the ATL-based templates provided.