_IApplicationEvents CommandPreNotify Event Send Feedback
See Also  Example
CommandName
Name of command about to execute
Document
Document in which command is about to execute (see Remarks)
Pre-notifies an application before a command executes.

Syntax

Visual Basic 
Public Delegate Sub _IApplicationEvents_CommandPreNotifyEventHandler( _
) 
C# 
public delegate void _IApplicationEvents_CommandPreNotifyEventHandler( 
)
JavaScript 
Event Not Supported 
)
COM native C++ 
CommandPreNotify( 
    CommandName,
    Document
)
C++ 
CommandPreNotify( 
)

Parameters

CommandName
Name of command about to execute
Document
Document in which command is about to execute (see Remarks)

Example

Remarks

If developing a C++ application, then use dsApplication_CommandPreNotify_id to register for this notification. See Getting Started for more information about C++ interface add-in template callback functions.

Document is 0 for commands exectued without an open document (i.e., NEW).

See Also

Availability

DraftSight V1R3.0