Share

AcDbAssocPersSubentId Class

Class Hierarchy

AcRxObject
    AcDbAssocPersSubentId
        AcDbAssocEdgePersSubentId
        AcDbAssocIndexPersSubentId
        AcDbAssocSimplePersSubentId
        AcDbAssocSingleEdgePersSubentId

C++

class AcDbAssocPersSubentId : public AcRxObject;

File

AcDbAssocPersSubentId.h

Description

Abstract base class used to persistently identify an AcDbSubentId of an AcDbEntity. Unlike AcDbSubentId that is transient and may change when the entity is modified, reevaluated, or similar, the AcDbAssocPersSubentId identifies the subentity in such a way that it is always possible to obtain the corresponding subentities (if they still exist), even after the entity has been edited or reevaluated any number of times.

The base AcDbAssocPersSubentId class is a pure virtual base class. Concrete AcDbEntity classes need their own way of representing a persistent identification of their subentities. Therefore, there are derived AcDbAssocPersSubentId classes that keep the persistent identification of the subentities of particular entity types. The simplest one is the AcDbAssocSimplePersSubentId derived class that just keeps the AcDbSubentId for the case it can be relied on not to change.

The AcRx protocol extension classes derived from AcDbAssocPersSubentIdPE base class provide mapping from transient AcDbSubentId to the persistent AcDbAssocPersSubentId. They allow the creation of new AcDbAssocPersSubentIds from given AcDbSubentIds. The AcDbAssocPersSubentId provides mapping in the opposite direction, from AcDbAssocPersSubentIds to AcDbSubentIds.

Links

AcDbAssocPersSubentId Methods

Was this information helpful?