Vault Data Standard Custom Command Location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I know it's possible to add custom commands to the Vault Professional UI via the Vault Data Standard. This is done via modifying the MenuDefinitions.xml. The CommandSite element allows you to specify which menu element(s) (FileContextMenu, StandardToolbar, etc) should carry the custom command, like so:
<CommandSite>
<FileContext Label="myMenu" DeployAsPullDown="False" Location="FileContextMenu">
<Item Name="NewFile"></Item>
<Item Name="EditFile"></Item>
<Item Name="AssignToProject"></Item>
<Item Name="CreateBidPackage"></Item>
</FileContext>
</CommandSite>
My question: Is it possible to specify *where* on a Context Menu my custom command(s) will be located?
For example, if I wanted them all added at the very bottom of the context menu? I've added a lot of commands this way in various environments, and I never paid much attention to where they go. IIRC they are always near the top of the context menu.
If this is not possible via Vault Data Standard customization, can command location within a Context Menu be specified via the Vault API directly? Even in the API documentation I see as a location only an existing menu element, with no way to specify a location. Via the API a custom ID is provided, though, so I thought maybe commands are sorted based on this ID.
Compare that to the Autodesk Inventor API, which allows you to specify the location of a new command based on adding it before or after an existing command. I don't see anything like that in the Vault API, but I wonder if I'm missing something.
