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

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.

Note: You must reset the Vault toolbars after restarting the Vault Client for the first time after Data Standard has been installed, or after modifiying theMenuDefinitions.xml file.

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:

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 <Item> which corresponds to the elements defined in the MenuItem elements.

The only attribute for the <Item> element is Name.

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: