menu customization

menu customization

Anonymous
Not applicable
1,011 Views
4 Replies
Message 1 of 5

menu customization

Anonymous
Not applicable
Is there a way that I can add a custom menu item to the Vault tree menu. For example the "Item Master" menu item when right clicked has the two menu options "New Item" and "Create ShortCut". Can I add my own menu item here, and if so, how?
0 Likes
1,012 Views
4 Replies
Replies (4)
Message 2 of 5

Redmond.D
Autodesk
Autodesk

I'm, assuming you mean you want to program your own commands and display them on the Item context menu.  First, take a look at the SDK, which comes with your Vault client or server (look in the SDK folder under your install path).  Next have a look at these quick videos.

 

Just last week I did a more in depth webinar on this topic.  I'll be posting it to my blog in the next few days.



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi Doug. Thanks for your quick response. I guess I should have been clearer with my initial post. I have written an extension in C# that provides me a number of useful utilities. I access Item cards, BOM's, files etc... I have several menu items added to the ItemContextMenu,the FileContextMenu and the AdvancedMenu. We use an 8 digit code to represent a part number. How this code is formatted depends on the type of part being created. This menu selection is currently attached to the Advanced Dropdown menu. A Dialog box pops up with a list of "categories" that allows the user to identify the part group to use and the next available part number. The application then creates an Item card with that part number, populates the information as per the user specifications, and even links an Inventor part/assembly. What I was looking for was a way (through the public IEnumerable CommandSites()) method to add a menu item to the (Tree View Menu? .. not sure what it's called).

0 Likes
Message 4 of 5

Anonymous
Not applicable

Sorry .. I hit return and posted before I finished writing.

 

We are using Vault 2012 Professional and we have a section for creating / editing item cards. I would like to be able to add my own menu to the "Item Master". Right now when you select it and do a right click the popup menu allows for two options. "New Item" and "Create Shortcut".

 

Is it possible to have "New Item" run my code, or if I can't override it add my own menu option here?

0 Likes
Message 5 of 5

Redmond.D
Autodesk
Autodesk

I see, you want to put your commands on the context menu for selections in the navigation tree on the left.

 

No, you can't do that.  Sorry.

 

Thanks for the suggestion however.  I'll keep it in mind for the future.



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes