Click or drag to resize

DocumentHandler Class

Specific implementation of document handler which exposes document lifecycle events
Inheritance Hierarchy
SystemObject
  CodeStack.SwEx.AddIn.CoreDocumentHandler

Namespace:  CodeStack.SwEx.AddIn.Core
Assembly:  CodeStack.SwEx.AddIn (in CodeStack.SwEx.AddIn.dll) Version: 0.8.1.0 (0.8.1.0)
Syntax
public class DocumentHandler : IDocumentHandler, 
	IDisposable

The DocumentHandler type exposes the following members.

Constructors
  NameDescription
Public methodDocumentHandler
Initializes a new instance of the DocumentHandler class
Top
Properties
  NameDescription
Public propertyApp
Pointer to the SOLIDWORKS application
Public propertyModel
Pointer to the model of this handler
Top
Methods
  NameDescription
Public methodDispose
Releases all resources used by the DocumentHandler
Public methodOnActivate
Override to handle the activation of the document (when it is opened in its own window)
Public methodOnDestroy
Override to dispose the resources
Public methodOnInit
Override to handle the initialization of the document
Top
Events
  NameDescription
Public eventAccess3rdPartyData
Raised when 3rd party storage and stream are ready for access (reading or writing)
Public eventActivated
Raised when model window is activated
Public eventConfigurationChange
Raised when configuration is changed in part or assembly or sheet is activated in the drawing
Public eventCustomPropertyModify
Raised when custom properties modified (added, removed or changed) from the UI or API
Public eventDestroyed
Raised when document is closed
Public eventDimensionChange
Raised when dimension value is changed in the model
Public eventInitialized
Raised when document is initialized
Public eventItemModify
Raised when item (e.g. feature, configuration) is modified in the Feature Manager Tree (e.g. renamed, added or removed)
Public eventRebuild
Raised when model is regenerated either as force regeneration or parametric regeneration or after rollback
Public eventSave
Raised when document is saving or saved (including auto saving)
Public eventSelection
Raised when object is selected in SOLIDWORKS (either by the user or API)
Top
See Also