AddObjectContextMenu Method (IApplication) Send Feedback
See Also 
ContextMenuItem[out]
Context-sensitive menu for ObjectType
ApiUuid
UUID of the add-in or non add-in application
ItemType
Type of menu item as defined in dsMenuItemType_e
ItemName
Name of the menu item
UserCmdID
User-defined command ID when ItemType is dsMenuItemType_e.dsMenuItemType_UserCommand
ObjectType
Type of object with which to associate this context-sensitive menu item as defined in dsObjectType_e
Adds a menu item to the specified object type's context-sensitive menu.

Syntax

Visual Basic 
Function AddObjectContextMenu( _
   ByVal ApiUuid As System.String, _
   ByVal ItemType As dsMenuItemType_e, _
   ByVal ItemName As System.String, _
   ByVal UserCmdID As System.String, _
   ByVal ObjectType As dsObjectType_e _
) As ContextMenuItem
C# 
ContextMenuItem AddObjectContextMenu( 
   System.string ApiUuid,
   dsMenuItemType_e ItemType,
   System.string ItemName,
   System.string UserCmdID,
   dsObjectType_e ObjectType
)
JavaScript 
AddObjectContextMenu( 
   ApiUuid : String,
   ItemType : String,
   ItemName : String,
   UserCmdID : String,
   ObjectType : String
) : dsContextMenuItem
COM native C++ 
HRESULT AddObjectContextMenu( 
   BSTR ApiUuid,
   dsMenuItemType_e ItemType,
   BSTR ItemName,
   BSTR UserCmdID,
   dsObjectType_e ObjectType,
   IContextMenuItem** ContextMenuItem
) 
C++ 
DSRESULT AddObjectContextMenu( 
   const dsString& ApiUuid,
   dsMenuItemType_e ItemType,
   const dsString& ItemName,
   const dsString& UserCmdID,
   dsObjectType_e ObjectType,
   dsContextMenuItem** ContextMenuItem
) 

Parameters

ApiUuid
UUID of the add-in or non add-in application
ItemType
Type of menu item as defined in dsMenuItemType_e
ItemName
Name of the menu item
UserCmdID
User-defined command ID when ItemType is dsMenuItemType_e.dsMenuItemType_UserCommand
ObjectType
Type of object with which to associate this context-sensitive menu item as defined in dsObjectType_e
ContextMenuItem[out] or Return Value
Context-sensitive menu for ObjectType
 

See Also

Availability

DraftSight V1R5.0