Hide Table of Contents
dsDocumentEvent_id_e Enumeration

Types of document events.

.NET Syntax

Visual Basic (Declaration) 
Public Enum dsDocumentEvent_id_e 
   Inherits System.Enum
C# 
public enum dsDocumentEvent_id_e : System.Enum 
JavaScript 
dsDocumentEvent_id_e : String
COM native C++ 
enum dsDocumentEvent_id_e
C++ 
enum dsDocumentEvent_id_e

Members

MemberDescription
dsDocument_ActiveSheetChangeNotify_id15 = ActiveSheetChangeNotify
dsDocument_CommandOptionBoolChangeNotify_id11 = CommandOptionBoolChangeNotify
dsDocument_CommandOptionDoubleChangeNotify_id16 = CommandOptionDoubleChangeNotify
dsDocument_CommandOptionInt16ChangeNotify_id9 = CommandOptionInt16ChangeNotify
dsDocument_CommandOptionInt32ChangeNotify_id10 = CommandOptionInt32ChangeNotify
dsDocument_CommandOptionInt8ChangeNotify_id8 = CommandOptionInt8ChangeNotify
dsDocument_CommandOptionPoint2DChangeNotify_id13 = CommandOptionPoint2DChangeNotify
dsDocument_CommandOptionPoint3DChangeNotify_id14 = CommandOptionPoint3DChangeNotify
dsDocument_CommandOptionStringChangeNotify_id12 = CommandOptionStringChangeNotify
dsDocument_DestroyNotify_id1 = DestroyNotify
dsDocument_DestroyPreNotify_id17 = DestroyPreNotify
dsDocument_FileSavePostNotify_id3 = Obsolete
dsDocument_FileSavePostNotify2_id18 = FileSavePostNotify2
dsDocument_FileSavePreNotify_id2 = FileSavePreNotify
dsDocument_ModifyNotify_id4 = ModifyNotify
dsDocument_ObjectAppendNotify_id7 = ObjectAppendNotify
dsDocument_ObjectEraseNotify_id6 = ObjectEraseNotify
dsDocument_ObjectModifyNotify_id5 = ObjectModfiyNotify

Remarks

To receive notifications, a DLL application must register for the notifications by object type. This registration must be done for each instance of a particular object.

For example, the file:

BEGIN_SINK_MAP(CDsAddinDocument)
    SINK_ENTRY_EX( IDC_DSAPPLICATIONEVENT, DIID__IDocumentEvents, dsDocument_DestroyNotify_id, OnDestroyNotify )
    SINK_ENTRY_EX( IDC_DSAPPLICATIONEVENT, DIID__IDocumentEvents, dsDocument_FileSavePostNotify_id, OnFileSavePostNotify )
    SINK_ENTRY_EX( IDC_DSAPPLICATIONEVENT, DIID__IDocumentEvents, dsDocument_ModifyNotify_id, OnModifyNotify )
END_SINK_MAP()

 

DsAddinDocument(dsDocument_c *dsDoc) : m_dsDoc(dsDoc) {

RegisterDocumentDestroyNotifyHook(m_dsDoc);

RegisterDocumentFileSavePostNotifyHook(m_dsDoc);

RegisterDocumentModifyNotifyHook(m_dsDoc);

}

~DsAddinDocument() {

UnRegisterDocumentDestroyNotifyHook(m_dsDoc);

UnRegisterDocumentFileSavePostNotifyHook(m_dsDoc);

UnRegisterDocumentModifyNotifyHook(m_dsDoc);

}

See Also



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   dsDocumentEvent_id_e Enumeration
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2019 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.