Manufacturing > The Customize Dialog Box > Inserting CL Commands > To Create a User-defined Syntax Menu
To Create a User-defined Syntax Menu
1. Open the text editor of your choice, for example, Notepad.
2. Create a new menu definition file by adding the required menu definition commands to customize the User-defined Syntax menu.
3. Save this file with a .def extension.
4. Type pro_mcs_comp <filename>.def at the command prompt to compile the menu definition files and generate syntax files. The syntax files have the .syn extension. <filename>.def is the name of a definition file.
* 
The pro_mcs_comp command is located in the obj subdirectory of the machine-specific directory under the Creo Parametric loadpoint, for example, creo/sun4/obj/pro_mcs_comp.
You can use the following options with pro_mcs_comp command:
-p
Print the results. The menu tree of the compiled file is displayed. If the compiler encounters any errors, they are reported, else a message -"Finish (reading) NO ERRORS" is displayed before the menu tree is created.
-i
Specify a file name, if you want to use a different name for the syntax file. For example, pro_mcs_comp -i <filename.def>. The compiler creates the corresponding syntax file in the current directory.
5. Include the syntax files in the cmdsyn.ndxindex file.
* 
The index file cmdsyn.ndx must contain the names (including the extension) of all the .syn files created in step 2. This file defines the contents of the indexcmd edit menu. The first entries of the files included in the cmdsyn.ndx file will appear as options in the index cmd edit menu, and as you select an option, the appropriate second-level cmd edit menu is displayed.
Was this helpful?