Customizing a .cui file using an editor

A .cui file is an XML file format, which can be edited using any ASCII or Unicode text editor. However, it is best to edit .cui files using an XML editor such as Visual Studio or Notepad++. If you are developing with progeCAD, you already have Visual Studio.

Use caution when manually editing a .cui file and use the following tips about the format of the file:

    Content of .cui/.cuix files is case-sensitive. For example, the following is correct; no errors will be shown but ID attribute will be ignored:

<ToolTip id="123">Help</ToolTip>

The following is also correct; ID will be equal to 123:

<ToolTip ID="123">Help</ToolTip>

    Content of .cui files contains special symbols, similar to an .xml file: & (ampersand), ' (quote), and more. Replace these special symbols with corresponding escape sequence or use XML CDATA structure instead. For example, the following is not correct:

<ToolTip id="123">&Help</ToolTip>

Correct:

<ToolTip ID="123">&amp;Help</ToolTip>

Not correct:

<Command>'_HELP</Command>

Correct:

<Command><![CDATA['_HELP]]></Command>

    Properties of several entity types can be described in both node-style and attribute-style. For example, the following two toolbar buttons are the same:

<ToolbarButton UID="unique-id" IsSeparator="true

="CUI_LEV_ALL,CUI_MDI_OPN,CUI_OLE_SEM"

Entity="RCM_ENT_ACS,RCM_ENT_MUL"/>

 

<ToolbarButton UID="unique-id">

<IsSeparator>true</IsSeparator>

<>CUI_LEV_ALL,CUI_MDI_OPN,CUI_OLE_SEM</>

<Entity>RCM_ENT_ACS,RCM_ENT_MUL</Entity>

</ToolbarButton>

To customize a .cui/.cuix file using an editor

   1   Do one of the following to choose Customize UI ():

    On the ribbon, choose Tools > Customize UI (in Manage).

    On the menu, choose Tools > Customize UI.

    Type cui and then press Enter.

   2   Click the Menus tab, then click Export.

   3   Specify the directory and file name you want to use to save the menu file.

   4   In Save as Type, select CUI Customizations file (.cui).

   5   Click Save, then Close.

   6   In any ASCII or Unicode text editor, open the .cui file and make changes according to the following format.

There are many editors, but if you are developing with progeCAD, you already have Visual Studio, which is a good XML editor for .cui files.