Hide Table of Contents
dsApplicationEvent_id_e Enumeration

Types of DraftSight application events.

.NET Syntax

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

Members

MemberDescription
dsApplication_ActiveDocumentChangedNotify_id5 = ActiveDocumentChangedNotify
dsApplication_ApplicationOptionBoolChangeNotify_id9 = ApplicationOptionBoolChangeNotify
dsApplication_ApplicationOptionDoubleChangeNotify_id12 = ApplicationOptionDoubleChangeNotify
dsApplication_ApplicationOptionInt16ChangeNotify_id10 = ApplicationOptionInt16ChangeNotify
dsApplication_ApplicationOptionInt32ChangeNotify_id11 = ApplicationOptionInt32ChangeNotify
dsApplication_ApplicationOptionStringChangeNotify_id13 = ApplicationOptionStringChangeNotify
dsApplication_CommandCancelNotify_id8 = CommandCancelNotify
dsApplication_CommandPostNotify_id7 = CommandPostNotify
dsApplication_CommandPreNotify_id6 = CommandPreNotify
dsApplication_CurrentProfileResetPostNotify_id18 = CurrentProfileResetPostNotify
dsApplication_CurrentProfileResetPreNotify_id17 = CurrentProfileResetPreNotify
dsApplication_DestroyNotify_id4 = DestroyNotify
dsApplication_FileNewNotify_id1 = FileNewNotify
dsApplication_FileOpenPostNotify_id3 = FileOpenPostNotify
dsApplication_FileOpenPreNotify_id2 = FileOpenPreNotify
dsApplication_OnIdleNotify_id14 = OnIdleNotify
dsApplication_PrintPostNotify_id16 = PrintPostNotify
dsApplication_PrintPreNotify_id15 = PrintPreNotify

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(CDsAddinConnection)

SINK_ENTRY_EX(IDC_DSAPPLICATIONEVENT, DIID__IApplicationEvents, dsApplication_FileNewNotify_id, OnFileNewNotify)

SINK_ENTRY_EX(IDC_DSAPPLICATIONEVENT, DIID__IApplicationEvents, dsApplication_FileOpenPreNotify_id, OnFileOpenPreNotify)

SINK_ENTRY_EX(IDC_DSAPPLICATIONEVENT, DIID__IApplicationEvents, dsApplication_FileOpenPostNotify_id, OnFileOpenPostNotify) 

SINK_ENTRY_EX(IDC_DSAPPLICATIONEVENT, DIID__IApplicationEvents, dsApplication_ActiveDocumentChangedNotify_id, OnActiveDocumentChangedNotify)

END_SINK_MAP()

myApplication(dsApplication_c *dsApp) : m_dsApp(dsApp) {

RegisterApplicationFileNewNotifyHook(m_dsApp);

RegisterApplicationFileOpenPreNotifyHook(m_dsApp);

...

}

 

~myApplication() {

UnRegisterApplicationFileNewNotifyHook(m_dsApp);

UnRegisterApplicationFileOpenPreNotifyHook(m_dsApp);

...

}

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:   dsApplicationEvent_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) 2020 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.