03.01.2013 Views

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Main label or alias<br />

You can also insert a menu with the Pn= syntax. The following macro inserts<br />

a menu after the P5 menu.<br />

If you use this method to insert a menu, remember that you cannot rely on<br />

its being inserted at the P6 menu location as you might expect. There are two<br />

reasons that this may not be the case.<br />

■ If the current menu bar has only three menus, inserting a menu after menu<br />

P5 results in the new menu's location being P4.<br />

■ If the user inserts or removes a customization file with the CUILOAD<br />

command or when another application inserts or removes customization<br />

files, menu numbering can get out of sync.<br />

This is the syntax for removing a menu:<br />

Gcustomizationgroup.menuname=-<br />

The following shows how to remove the menu NEW3 that is a member of the<br />

MyMenu group.<br />

$Gmymenu.new3=-"<br />

As you might expect, the preceding format is preferable to the Pn= format<br />

because it removes only the specified menu. The following shows how to<br />

remove the menu at the P4 location (whatever it is).<br />

$P4=-<br />

Control Toolbars Across Partial CUIx Files<br />

To control toolbars across partial CUIx files, use the following syntax at the<br />

Enter toolbar name or [ALL]: prompt of the -TOOLBAR command.<br />

menugroup.subsection-name<br />

This syntax accesses the toolbar identified by menugroup.menuname and allows<br />

you to use the full spectrum of -TOOLBAR command options on that toolbar.<br />

If the menu group is left out of any of these commands and functions, the<br />

program defaults to the main CUIx file.<br />

You should be aware of the following:<br />

■ Image tile menus cannot be swapped from external customization files.<br />

232 | Chapter 4 User Interface <strong>Customization</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!