Customize the Data Standard MenuDefinitions.xml File
Add additional Data Standard menu items to the Vault Client interface or suppress certain commands with the MenuDefinitions.xml file.
Default Data Standard Menu Options
After Autodesk Vault Data Standard is installed, additional menu commands become available after restarting the Vault Client.
- New Standard File
- New Standard Folder
- About Autodesk Vault Data Standard (under the Help menu)
All Data Standard menu customization in the Vault Client is defined in the MenuDefinitions.xml file located at %programdata%\Autodesk\<Vault version>\Extensions\DataStandard\Vault.
File Elements
The definition files are in XML format. Use a text editor or an XML editor to modify element values in the file.
The MenuDefinitions.xml file has three top level components:
- Menu items (
menuitem
) - Command Sites (
commandsite
) - Suppressed Menu Items (
suppressmenuitems
)
Command Sites
Contains one or more <command site name>
elements.
Specify through the command sites in which menu the defined menu commands appear. A command site can be defined with a site component.
Sample for file context menu:
<CommandSite>
<FileContext Label="myMenu" DeployAsPullDown="False" Location="FileContextMenu">
<Item Name="NewFile"></Item>
<Item Name="EditFile"></Item>
</FileContext>
<FolderContex Label="myMenu" DeployAsPullDown="False" Location="FolderContextMenu">
<Item Name="NewFile"></Item>
<Item Name="NewFolder"></Item>
<Item Name="EditFolder"></Item>
</FolderContex>
<StandardToolbar Label="myMenu" DeployAsPullDown="False" Location="StandardToolbar">
<Item Name="NewFile"></Item>
<Item Name="EditFile"></Item>
</StandardToolbar>
<ToolsMenu Label="myMenu" DeployAsPullDown="False" Location="ToolsMenu">
<Item Name="ShowLog"></Item>
</ToolsMenu>
<HelpMenu Label="myMenu" DeployAsPullDown="False" Location="HelpMenu">
<Item Name="AboutDialog"></Item>
</HelpMenu>
<Task Label="Task" DeployAsPullDown="False" Location="Task">
<Item Name="NewTask"></Item>
<Item Name="EditTask"></Item>
</Task>
</CommandSite>
The available attributes for CommandSite <command site name> element are shown in the following table.
Attribute | Required | Valid Values | Description |
Label | No | Characters and Numbers | Text displayed in the pulldown menu. If it doesn’t exists then ‘mymenu’ is used. |
DeployAsPullDown | No | True or False | If True, pull down menu is created on the context menu with label defined above. |
Location | Yes | Characters and Numbers | Text representing the tooltip for the command. |
The CommandSite element contains one or more
The only attribute for the
Attribute | Required | Valid Values | Description |
Name | Yes | Name of the element defined in the MenuItem elements. | Name of the element defined in the MenuItem elements |
Suppressed Menu Items
By default, the New Folder command is removed from the file and right-click menus when Data Standard is installed. Administrators can remove additional default commands from the Vault user interface by modifying the suppressmenuitems
section in the MenuDefinitions.xml file.
<SuppressMenuItems>
NewFolder,NewFolderGroupMenu,NewFolderGroupButton,NewFolderForContextMenus
</SuppressMenuItems>
The command names are separated by a comma.
Example:
To suppress the New Library Folder command, add these two commands to the
SuppressMenuItems
list:NewLibraryFolder
,NewLibraryFolderForContextMenus
.To suppress Rename Folder, add this command:
Folder.Rename
.Undo Suppress Commands:
- To stop suppressing a command, remove the command name(s) from the
suppressMenuItems
section. - Restart Vault to see your changes.
- To stop suppressing a command, remove the command name(s) from the