|
Menu Codes - Toolbar If you are ambitious (or curious) you can view the code behind the Circle toolbar and the flyout. Toolbars customizations made within AutoCAD are stored in the *.MNS file. You should be able to find this in the \Support folder where AutoCAD is installed. You can edit it with a text editor like Notepad or Wordpad. First, let's look at the code for a single toolbar button.
Button Codes [_Button("Circle Center Diameter", "ICON_16_CIRDIA", "ICON_16_CIRDIA")]^C^C_circle \_d
Circle Center Diameter the name of the button
ICON_16_CIRDIA name of the small icon
ICON_16_CIRDIA name of the large icon
^C^C_circle \_d the macro executed when the button is selected
Flyout Codes [_Flyout("User Defined Flyout", ICON_16_BLANK, ICON_16_BLANK, _OtherIcon, ACAD.CIRCLE)]
User Defined Flyout the name of the button
ICON_16_BLANK name of the small icon, if OwnIcon is specified
ICON_16_BLANK name of the large icon, if OwnIcon is specified
ACAD.CIRCLE name of the toolbar used by the flyout.
OtherIcon indicates the last selected button is displayed. If this is set to OwnIcon, then the icon designated in the flyout is displayed. In the example below, the ICON_16_CIRCLE icon would be displayed, regarldless of the last icon selected.
[_Flyout("User Defined Flyout", ICON_16_CIRCLE, ICON_16_CIRCLE, _OwnIcon, ACAD.CIRCLE)]
You can find out more about the button and flyout code in the Customization section of AutoCAD Help file.
That's it for this month's Tip Sheet. I'll continue with the topic of toolbar customization next month, focusing on User Defined buttons, creating icons and an introduction to developing macros.
|
|