DocumentEvents Object


Description

The DocumentEvents object provides notification of events that take place at the document level, such as activating, closing and saving particular documents.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
Parent Gets the parent object from whom this object can logically be reached.
Type Returns an ObjectTypeEnum indicating this object's type.

Events

Name Description
OnActivate The OnActivate event notifies a client when the document is activated.
OnChange Fires when this document changes, supplying the reasons for change and the context in which this action is being taken.
OnChangeSelectSet The OnChangeSelectSet event notifies a client when the contents of the select set have changed.
OnClose The Onclose event notifies a client when the document is closed.
OnDeactivate The OnDeactivate event notifies a client when the document is being deactivated.
OnDelete The OnDelete event notifies a client when an entity is deleted.
OnSave The OnSave event notifies a client whenever the document is saved.

Accessed From

AssemblyDocument.DocumentEvents, Document.DocumentEvents, DrawingDocument.DocumentEvents, PartDocument.DocumentEvents, PresentationDocument.DocumentEvents

Version

Introduced in version 4