<?xml version="1.0" ?> <menus xmlns="x-schema:user_menu.xsd"> <usermenu value="user_menu"> <menupage label="This is the Title"> <spacer/> <button label="Button Label" command="SOME POWERMILL COMMAND"/> </menupage> </usermenu> </menus>
The first three lines and the last three lines are compulsory.
For example, to create this sample user menu:
the user_menu.xml contains:
<?xml version="1.0" ?> <menus xmlns="x-schema:user_menu.xsd"> <usermenu value="user_menu"> <menupage label="My menu"><button label="Block dialog" command = "Form Block"/> <button label="Block dialog" command = "Form Block"/> <button label="3D Offset Finishing dialog" command = "IMPORT TEMPLATE ENTITY TOOLPATH TMPLTSELECTORGUI'Finishing\3D-Offset-Finishing.ptf'"/> <spacer/> <button label="Create Pattern" command = "CREATE PATTERN"/> <button label="Curve Editor toolbar" command = "CREATE PATTERN ; EDIT PATTERN ; CURVEEDITOR START"/> </menupage> </usermenu> </menus>