_IApplicationEvents_CommandPreNotifyEventHandler Delegate

_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

Insert Splines (C#)
Insert Splines (VB.NET)
Insert Splines (VBA)

# 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

####

_IApplicationEvents_CommandPreNotifyEventHandler Members
Interop.dsAutomation Namespace
IApplication Event CommandCancelNotify
IApplication Event CommandPostNotify

# Availability

DraftSight V1R3.0