Hide Table of Contents
CreatePluginMenu2 Method (IEdmVault12)

Inserts into a menu with the specified handle all of the menu commands registered by the SOLIDWORKS PDM Professional add-ins.


Visual Basic (Declaration) 
Function CreatePluginMenu2( _
   ByVal hMenu As System.Integer, _
   ByVal lInsertPosition As System.Integer, _
   ByRef plStartID As System.Integer, _
   ByVal poSelObjects As IEdmSelectionList6, _
   ByVal lCreateMenuFlags As System.Integer, _
   ByRef plItemCount As System.Integer _
) As IEdmMenu7
IEdmMenu7 CreatePluginMenu2( 
   System.int hMenu,
   System.int lInsertPosition,
   out System.int plStartID,
   IEdmSelectionList6 poSelObjects,
   System.int lCreateMenuFlags,
   out System.int plItemCount
IEdmMenu7^ CreatePluginMenu2( 
&   System.int hMenu,
&   System.int lInsertPosition,
&   [Out] System.int plStartID,
&   IEdmSelectionList6^ poSelObjects,
&   System.int lCreateMenuFlags,
&   [Out] System.int plItemCount


Handle of menu in which to insert command items
Zero-based index of position in menu where new items are inserted; -1 to append new menu items to the bottom of the menu
Menu command ID to assign new commands when this method is called; next available menu command ID after this method returns
IEdmSelectionList6; selected objects for which to display the menu
Combination of CreateMenuFlags bits
Number of menu command items added

Return Value

IEdmMenu7 (see Remarks)



This method supersedes IEdmVault5::CreatePluginMenu by adding the ability to insert a menu for object types other than files and folders (e.g., items).

Use the returned interface to call IEdmMenu7::OnMenuItem2 when the user selects one of the command items added by this method.

Return codes: 

  • S_OK: The method successfully executed.

See Also


SOLIDWORKS PDM Professional 2011

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

Subject:   Feedback on Help Topics
Page:   CreatePluginMenu2 Method (IEdmVault12)
*   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:


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

Web Help Content Version: API Help (English only) 2018 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.