Subject: Creating customized toolbar files manually



With CADdirect, the easiest way to share toolbars is to create a new .cui file using the Customize UI command and share that file with other CADdirect users. For more details, see Creating a new .cui file and copying settings.

You can also manually create toolbars that you can share by creating or modifying an .mnu file manually.

To manually create a toolbar that you can share

   1   Open any ASCII or Unicode text editor.

   2   Use the following toolbar syntax to type the toolbar definitions:

***MENUGROUP=group_name

***TOOLBARS
**toolbar_name
ID_toolbar_name
[_Toolbar ("toolbar_name", orient, visible, xval, yval, rows)]
ID_button_name [_Button ("button_name", id_small, id_large)]command

***HELPSTRINGS
ID_button_name [help_string]

Toolbar syntax and explanations

Item

Explanation

group_name

Menu group name.

toolbar_name

Toolbar name.

orient

Orientation. Select Floating, Top, Bottom, Left, and Right (not case sensitive).

visible

. Select Show or Hide (not case sensitive).

xval

x coordinate, designated in pixels from left edge of screen. Suggested value: 200.

yval

y coordinate, designated in pixels from top edge of screen. Suggested value: 200.

rows

Number of rows

button_name

Tool name. Appears as a ToolTip when user places cursor over button.

id_small

Name of small (16 x 16 pixels) icon bitmap (BMP) file. This file must be located in the CADdirect folder specified in Tools > Options > Paths.

id_large

Name of large (32 x 32 pixels) icon bitmap (BMP) file. This file must be located in the CADdirect folder specified in Tools > Options > Paths.

command

Command string (Example: ^C^C_LINE).

help_string

Help string. Appears in the status bar when cursor passes over the button.

   3   Save the file to the CADdirect folder with a *.mnu extension.

Example Toolbar File Contents

***MENUGROUP=example

***TOOLBARS
**NewDraw
ID_ NewDraw [_Toolbar("NewDraw ", _Bottom, _Show, 200, 200, 1)]
ID_Line_0 [_Button("Line", Iline.bmp, IL_line.bmp)]^C^C_line
ID_Hatch [_Button("Hatch", Ihatch.bmp, IL_hatch.bmp)]^C^C_hatch
ID_Dtext [_Button("Dtext", Idtext.bmp, IL_dtext.bmp)]^C^C_dtext
ID__0 [_Button("Circle Rad", Icirad.bmp, IL_cirad.bmp)]^C^Ccircle;
ID_Erase [_Button("Erase", Ierase.bmp, IL_erase.bmp)]^C^Cerase;

***HELPSTRINGS
ID_Line_0 [Creates straight line segments]
ID_Hatch [Fills an enclosed area with a nonassociative hatch pattern]
ID_Dtext [Displays text on screen as it is entered]
ID__0 [Allows user to draw a circle with a radius value]
ID_Erase [Removes objects from a drawing]

To open the file on another computer

   1   Copy the toolbar (.mnu) file and all related custom bitmap (*.bmp) files to the CADdirect folder on the other computer.

   2   Open CADdirect.

   3   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 press Enter.

   4   Click the Transfer tab.

   5   On the left, click Open.

   6   Select the new toolbar file, then click Open.

   7   Click OK.

Creating_customized_toolbar_files_manually
© Copyright 2022. BackToCAD Technologies LLC. All rights reserved. Kazmierczak® is a registered trademark of Kazmierczak Software GmbH. Print2CAD, CADdirect, CAD.direct, CAD Direct, CAD.bot, CAD Bot, are Trademarks of BackToCAD Technologies LLC. DWG is the name of Autodesk’s proprietary file format and technology used in AutoCAD® software and related products. Autodesk, the Autodesk logo, AutoCAD, DWG are registered trademarks or trademarks of Autodesk, Inc. All other brand names, product names, or trademarks belong to their respective holders. This website is independent of Autodesk, Inc., and is not authorized by, endorsed by, sponsored by, affiliated with, or otherwise approved by Autodesk, Inc. The material and software have been placed on this Internet site under the authority of the copyright owner for the sole purpose of viewing of the materials by users of this site. Users, press or journalists are not authorized to reproduce any of the materials in any form or by any means, electronic or mechanical, including data storage and retrieval systems, recording, printing or photocopying.