Autodesk.AutoCAD.DatabaseServices Namespace > AssocGeomDependency Class
AssocGeomDependency Class   
Description

This class represents a dependency on a subentity (face/edge/vertex) of a geometric entity. It keeps an AssocPersSubentId that persistently identitfies the subentity and provides new protocol to set the referenced subentity and get/set the subentity geometry. 

This class may also optionally cache the geometry of the referenced subentity that then allows to filter-out irrelevant change notifications that do no affect the referenced subentity. The caching is controlled by the IsCachingSubentityGeometry property. 

By default the dependency does not cache the geometry of the referenced subentity. The IsRelevantChange property uses the base class implementation that calls AssocAction.IsRelevantDependencyChange() of the owning action, letting the action that owns the dependency decide, such as by caching the geometry of the referenced subentity and comparing it with the current subentity geometry. 

When the dependency caches the geometry of the referenced subentity, the IsRelevantChange property indicates whether the geometry of the referenced subentity is the same as the cached geometry. This is how the dependency can filter-out irrelevant change notifications when the referenced subentity geometry does not really change when something else changes.

Class Hierarchy
Visual Basic
Public Class AssocGeomDependency
Inherits AssocDependency
C#
public class AssocGeomDependency : AssocDependency;
Links
   Comments?