AssocAction Class

This .NET class wraps the OdDbAssocAction class.

Every object that needs to show associative behavior, i.e. when objects that rely on change are automatically evaluated by the associative mechanism, must be derived from an AssocActionBody class and owned by a parent AssocAction entity. The action body is owned by its parent action, for example when the parent action is deleted, it also erases the action body that is owned.

The AssocAction class does not have virtual methods that can be overridden, therefore it should be done internally when there is no chance that objects of the derived action classes can become proxies.

Inheritance Hierarchy
Namespace:  Teigha.DatabaseServices
Assembly:  TD_MgdDbConstraints (in TD_MgdDbConstraints.dll) Version: 0.0.0.0
Syntax
public class AssocAction : DBObject

The AssocAction type exposes the following members.

Constructors
  Name Description
Public method AssocAction
Default constructor for the AssocAction class. Wraps the result of the corresponding C++ createObject() method call.
Top
Properties
  Name Description
Public property AcadObject (Inherited from DBObject.)
Public property ActionBody
Public property Annotative (Inherited from DBObject.)
Public property AutoDelete (Inherited from DisposableWrapper.)
Public property Bounds (Inherited from Drawable.)
Public property ClassID (Inherited from DBObject.)
Public property Database (Inherited from DBObject.)
Public property Drawable (Inherited from DBObject.)
Public property DrawableType (Inherited from Drawable.)
Public property ExtensionDictionary (Inherited from DBObject.)
Public property Handle (Inherited from DBObject.)
Public property HasFields (Inherited from DBObject.)
Public property HasSaveVersionOverride (Inherited from DBObject.)
Public property Id (Inherited from DBObject.)
Public property IsActionBodyAProxy
Public property IsActionEvaluationInProgress
Public property IsAProxy (Inherited from DBObject.)
Public property IsCancelling (Inherited from DBObject.)
Public property IsDisposed (Inherited from DisposableWrapper.)
Public property IsErased (Inherited from DBObject.)
Public property IsEraseStatusToggled (Inherited from DBObject.)
Public property IsModified (Inherited from DBObject.)
Public property IsModifiedGraphics (Inherited from DBObject.)
Public property IsModifiedXData (Inherited from DBObject.)
Public property IsNewObject (Inherited from DBObject.)
Public property IsNotifyEnabled (Inherited from DBObject.)
Public property IsNotifying (Inherited from DBObject.)
Public property IsObjectIdsInFlux (Inherited from DBObject.)
Public property IsPersistent (Inherited from DBObject.)
Public property IsReadEnabled (Inherited from DBObject.)
Public property IsReallyClosing (Inherited from DBObject.)
Public property IsTransactionResident (Inherited from DBObject.)
Public property IsUndoing (Inherited from DBObject.)
Public property IsWriteEnabled (Inherited from DBObject.)
Public property MergeStyle (Inherited from DBObject.)
Public property ObjectBirthVersion (Inherited from DBObject.)
Public property ObjectId (Inherited from DBObject.)
Public property OwnerId (Inherited from DBObject.)
Public property OwningNetwork
Public property PaperOrientation (Inherited from DBObject.)
Public property Status
Public property UndoFiler (Inherited from DBObject.)
Public property UnmanagedObject (Inherited from DisposableWrapper.)
Public property XData (Inherited from DBObject.)
Top
Methods
  Name Description
Public method AddContext (Inherited from DBObject.)
Public method AddDependency
Adds the specified dependency to this action.
Public method AddMoreObjectsToDeepClone
Adds more objects to be deep cloned. Call just before the end of the main deep-cloning loop, when the objects are already cloned but their identifiers aren't translated yet.
Public method AddPersistentReactor (Inherited from DBObject.)
Public method ApplyPartialUndo (Inherited from DBObject.)
Public method AreDependenciesEqual
Checks whether the specified dependencies are equal.
Public method AreDependenciesOnTheSameThing
Checks whether the specified dependencies are dependent on the same "thing."
Protected method AssertNotifyEnabled (Inherited from DBObject.)
Protected method AssertReadEnabled (Inherited from DBObject.)
Protected method AssertWriteEnabled (Inherited from DBObject.)
Public method Audit (Inherited from DBObject.)
Public method Cancel Obsolete. (Inherited from DBObject.)
Public method Clone (Inherited from RXObject.)
Public method Close Obsolete. (Inherited from DBObject.)
Public method CloseAndPage Obsolete. (Inherited from DBObject.)
Public method CompareTo (Inherited from RXObject.)
Public method CopyFrom (Inherited from RXObject.)
Public method CreateExtensionDictionary (Inherited from DBObject.)
Public method CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public method DecomposeForSave (Inherited from DBObject.)
Public method DeepClone (Inherited from DBObject.)
Protected method DeleteUnmanagedObject (Inherited from DBObject.)
Public method DependentObjectCloned
Notifies the owning action that an object, that the action has a dependency on, is cloned. All cloning types are accepted (shallow, deep or wblock).
Public method DisableUndoRecording (Inherited from DBObject.)
Public method Dispose (Inherited from DisposableWrapper.)
Protected method Dispose(Boolean) (Inherited from DBObject.)
Public method DowngradeOpen (Inherited from DBObject.)
Public method DowngradeToNotify (Inherited from DBObject.)
Public method DragStatus
Notifies the action when there is a drag operation in progress for objects that the action depends on.
Public method DwgIn (Inherited from DBObject.)
Protected method DwgInFields (Inherited from DBObject.)
Public method DwgOut (Inherited from DBObject.)
Protected method DwgOutFields (Inherited from DBObject.)
Public method DxfIn (Inherited from DBObject.)
Protected method DxfInFields (Inherited from DBObject.)
Public method DxfOut (Inherited from DBObject.)
Protected method DxfOutFields (Inherited from DBObject.)
Public method Equals (Inherited from DisposableWrapper.)
Public method Erase (Inherited from DBObject.)
Public method Erase(Boolean) (Inherited from DBObject.)
Public method EvaluateDependencies
Should be called from the client code via the evaluateOverride() method, usually after analyzing dependencies, detecting changes, determining which are on erased objects, etc.
Public method EvaluateDependency
Allows the owner action to do the work instead of the dependency itself.
Public method EvaluationPriority
Determines the evaluation priority of this action.
Protected method Finalize (Inherited from DisposableWrapper.)
Public methodStatic member GetActionBody
Retrieves the object identifier of the action body. Currently not implemented.
Public methodStatic member GetActionsDependentOnObject(DBObject, Boolean, Boolean)
Retrieves the actions depending on the specified database object.
Public methodStatic member GetActionsDependentOnObject(DBObject, Boolean, Boolean, ObjectIdCollection)
Retrieves the actions depending on the specified database object.
Public method GetDependencies
Retrieves dependencies of this action.
Public method GetDependentObjects
Retrieves objects that this action depends on or modifies.
Public method GetEventExtender (Inherited from DBObject.)
Public method GetField (Inherited from DBObject.)
Public method GetField(String) (Inherited from DBObject.)
Public method GetHashCode (Inherited from DisposableWrapper.)
Public method GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method GetObjectSaveVersion(DwgFiler) (Inherited from DBObject.)
Public method GetObjectSaveVersion(DxfFiler) (Inherited from DBObject.)
Public method GetPersistentReactorIds (Inherited from DBObject.)
Public method GetReactors Obsolete. (Inherited from DBObject.)
Public method GetRXClass (Inherited from RXObject.)
Public method GetTransientReactors (Inherited from DBObject.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GetXDataForApplication (Inherited from DBObject.)
Public method HandOverTo (Inherited from DBObject.)
Public method HasContext (Inherited from DBObject.)
Public method HasDependencyCachedValue
Checks whether the specified dependency has a cached value.
Public method HasPersistentReactor (Inherited from DBObject.)
Public method InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method IsEqualTo
Checks whether the specified action is equal to this action. Does nothing in the current implementation.
Public method IsExternalDependency
Checks whether the specified dependency, which is owned by this action, depends on the database object that is not this action and is not owned by this action. If the dependency doesn't depend on any object, it's also assumed external.
Public method IsOwnedDependency
Checks whether the specified dependency is owned by this action.
Public method IsRelevantDependencyChange
Allows the owning action, instead of the dependency, to determine whether the object change is relevant to the specified dependency.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method MemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public method ObjectThatOwnsNetworkInstance
Searches for the object that owns the network instance, i.e. finds the database object for which the GetInstanceFromObject() method returns the AssocNetwork.
Public method OwnedDependencyStatusChanged
Informs the dependency-owning action that the dependency status is modified. Usually called from the AssocDependency.SetStatus() method.
Public method PostProcessAfterDeepClone
Informs the source actions that they are cloned, so that they can update the clones or perform other tasks if needed. Usually called from the reactor notification method.
Public method PostProcessAfterDeepCloneCancel
Cancels the post processing of the cloned action after deep cloning.
Public method QueryX (Inherited from RXObject.)
Public method ReleaseExtensionDictionary (Inherited from DBObject.)
Public methodStatic member RemoveActionsControllingObject(ObjectId)
Detaches the write dependencies of the specified object. The dependencies are detached in reverse order, starting from the object's last write dependency and finishing with the first. Currently not implemented.
Public methodStatic member RemoveActionsControllingObject(ObjectId, Int32)
Detaches the write dependencies of the specified object. The dependencies are detached in reverse order, starting from the object's last write dependency and finishing with the first. Currently not implemented.
Public methodStatic member RemoveActionsControllingObject(ObjectId, Int32, ObjectId)
Detaches the write dependencies of the specified object. The dependencies are detached in reverse order, starting from the object's last write dependency and finishing with the first. Currently not implemented.
Public method RemoveAllDependencies
Removes all dependencies associated with this action.
Public method RemoveContext (Inherited from DBObject.)
Public method RemoveDependency
Removes the specified dependency associated with this action.
Public method RemoveField (Inherited from DBObject.)
Public method RemoveField(String) (Inherited from DBObject.)
Public method RemoveField(ObjectId) (Inherited from DBObject.)
Public method RemovePersistentReactor (Inherited from DBObject.)
Public method ResetScaleDependentProperties (Inherited from DBObject.)
Public method SetAttributes (Inherited from Drawable.)
Public method SetField(Field) (Inherited from DBObject.)
Public method SetField(String, Field) (Inherited from DBObject.)
Public method SetFromStyle (Inherited from DBObject.)
Public method SetObjectIdsInFlux (Inherited from DBObject.)
Public method SetOwningNetwork
Sets the owning network for this action. Should not be called directly, instead it is called from the AssocNetwork.AddAction() and AssocNetwork.RemoveAction() methods.
Public method SetPaperOrientation (Inherited from DBObject.)
Public method SetStatus
Sets the status for this action.
Protected method SubSetAttributes (Inherited from DBObject.)
Protected method SubViewportDraw (Inherited from DBObject.)
Protected method SubViewportDrawLogicalFlags (Inherited from DBObject.)
Protected method SubWorldDraw (Inherited from DBObject.)
Public method SupportsCollection (Inherited from DBObject.)
Public method SwapIdWith (Inherited from DBObject.)
Public method SwapReferences (Inherited from DBObject.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method TransformActionBy
Notifes the action that the owner of the action is transformed.
Public method UpgradeFromNotify (Inherited from DBObject.)
Public method UpgradeOpen (Inherited from DBObject.)
Public method ViewportDraw (Inherited from Drawable.)
Public method ViewportDrawLogicalFlags (Inherited from Drawable.)
Public method WblockClone (Inherited from DBObject.)
Public method WorldDraw (Inherited from Drawable.)
Public method X (Inherited from RXObject.)
Public method XDataTransformBy (Inherited from DBObject.)
Top
Events
  Name Description
Public event Cancelled (Inherited from DBObject.)
Public event Copied (Inherited from DBObject.)
Public event Erased (Inherited from DBObject.)
Public event Goodbye (Inherited from DBObject.)
Public event Modified (Inherited from DBObject.)
Public event ModifiedXData (Inherited from DBObject.)
Public event ModifyUndone (Inherited from DBObject.)
Public event ObjectClosed (Inherited from DBObject.)
Public event OpenedForModify (Inherited from DBObject.)
Public event Reappended (Inherited from DBObject.)
Public event SubObjectModified (Inherited from DBObject.)
Public event Unappended (Inherited from DBObject.)
Top
See Also

©  Bricsys NV. All rights reserved.