Share

AcAx Classes (WIN)

Classes

Class Description
AcAxDocLock This class provides document locking for custom objects that implement COM wrappers.In order to properly append and display entities to a database from the session context, AutoCAD requires the following:
  1. The document for a database needs to be locked before any write operation is performed.
  2. The document context must be current.

AutoCAD stores graphics information on a per-document basis. The document context for the database must be current during appending new entities to the database to ensure that the graphics are updated correctly. Document activation is disabled to prevent the user from activating another document while a local COM... more

AcAxMatrix3d Used to read and set Automation data types with AcGeMatrix3d data.
AcAxObjectRef This class abstracts a reference to an AcDbObject. An instance of this class can manage either an AcDbObjectId or a pointer to a non-database-resident AcDbObject instance.Objects are attached to an AcAxObjectRef and can be detached to obtain the reference. The lifetime of a non-resident-database object is bound to the lifetime of the AcAxObjectRef instance to which it is attached. If necessary, detach it from the AcAxObjectRef before the AcAxObjectRef instance goes out of scope and is destroyed. When wrapping a non-resident AcDbObject instance, the AcAxObjectRef owns the object and the pointer. Callers should not cache references to non-resident... more
AcAxOleLinkManagerAcAxOleLinkManager maintains the link between a database-resident object and its COM wrapper.To obtain an AcAxOleLinkManager pointer, use the global function AcAxGetOleLinkManager().
AcAxPoint2d Used to facilitate conversion of AcGePoint2d data into Automation-compatible types.
AcAxPoint2dArray Used to facilitate conversion of AcGePoint2dArray data into Automation-compatible types.
AcAxPoint3d Used to facilitate conversion of AcGePoint3d data to and from Automation-compatible types.
AcAxPoint3dArray Used to facilitate conversion of AcGePoint3dArray data to and from Automation-compatible data types.

Templates

Template Description
AcAxObjectRefPtr The AcAxObjectRefPtr template class extends the AcDbObjectPointer template class, providing smart-pointer support for database-resident and non-database-resident objects. Database-resident objects are maintained in an open state for the lifetime of the AcAxObjectRefPtr instance, unless the pointer is released from the instance.The AcAxObjectRefPtr class uses the AcAxObjectRef class to abstract the actual object reference. Internally, the AcAxObjectRefPtr class determines whether the object represented by an AcAxObjectRef instance is database-resident or non-database-resident and makes calls to open or close the object as necessary.AcAxObjectRef instances are detached from the underlying object for the lifetime of the AcAxObjectRefPtr instance and re-attached by the... more

Was this information helpful?