• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Autodesk Vault Customization

    Reply
    Contributor
    Posts: 12
    Registered: 04-28-2007

    menu customization

    89 Views, 4 Replies
    02-15-2012 10:22 AM
    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?
    Employee
    Posts: 414
    Registered: 12-12-2006

    Re: menu customization

    02-15-2012 12:18 PM in reply to: desidubajic

    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.
    http://justonesandzeros.typepad.com/

    Contributor
    Posts: 12
    Registered: 04-28-2007

    Re: menu customization

    02-15-2012 07:29 PM in reply to: desidubajic

    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).

    Contributor
    Posts: 12
    Registered: 04-28-2007

    Re: menu customization

    02-15-2012 07:39 PM in reply to: desidubajic

    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?

    Employee
    Posts: 414
    Registered: 12-12-2006

    Re: menu customization

    02-16-2012 12:57 PM in reply to: desidubajic

    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.
    http://justonesandzeros.typepad.com/