<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
IEdmAddInDrawButton5 Interface
See Also Members

Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++/CLI

EPDM.Interop.epdm Namespace : IEdmAddInDrawButton5 Interface

Visual Basic
C#
C++/CLI

Allows you to dynamically draw an add-in toolbar button.

NOTE: Click the Members link, located near the top of the topic, to see this interface's methods and properties.

# Syntax

Visual Basic |
--- | ---

    Public Interface IEdmAddInDrawButton5

C# |
--- | ---

    public interface IEdmAddInDrawButton5

C++/CLI |
--- | ---

    public interface class IEdmAddInDrawButton5

# Remarks

This interface inherits from IUnknown. See Using and Implementing IUnknown (COM).

To dynamically draw a toolbar button:

1. Create a class that implements both IEdmAddIn5 and IEdmAddInDrawButton5.
2. Implement IEdmAddIn5::GetAddInInfo, calling IEdmCmdMgr5::AddCmd with lEdmMenuFlags setting the EdmMenuFlags.EdmMenu_OwnerDrawToolbarButton flag.
3. Implement IEdmAddInDrawButton5::DrawToolbarButton to draw a toolbar button when called by SOLIDWORKS PDM Professional.

To draw a fixed toolbar button:

1. Call IEdmCmdMgr5::AddToolbarImage.
2. Call IEdmCmdMgr5::AddCmd, passing in the toolbar button image ID used in IEdmCmdMgr5::AddToolbarImage.

# See Also

####

IEdmAddInDrawButton5 Members
EPDM.Interop.epdm Namespace