============================================================================ ###### ###### # # #### # # # # #### # # ## #### # # # # # # ## # # # # # # # # # # # # ###### # # # # # # # #### ###### # # # #### # # # # # # # # # # # ###### # # # # # # # # ## # # # # # # # # # # # ###### #### # # #### #### # # # #### # # ============================================================================ pixmap - An XPM-pixmap file editor of AutoCAD icon files. Usage: XPM icon files for AutoCAD R12 may be constructed and/or modified as follows: - Load the Pixmap editor application: > pixmap <-f filename> Some caveats to keep in mind when creating/modifying AutoCAD R13 icons: 1. Size limitations: Size: 16x16 and 32x32 pixels. Default directories: 16x16: /opt/acad13/support/icons/16 32x32: /opt/acad13/support/icons/32 2. Color limitations: Colors: AutoCAD colors 0-8 (too eliminate flashing, with X/Motif). In order to avoid color palette conflicts with the Autodesk-supplied Motif display driver, you should restrict the icon colors to the following set: X Color Specification Color AutoCAD Color Index --------------------- ----- ------------------- black Black ACI-0 #ff0000 Red ACI-1 #ffff00 Yellow ACI-2 #00ff00 Green ACI-3 #00ffff Cyan ACI-4 #0000ff Blue ACI-5 #ff00ff Magenta ACI-6 #ffffff White ACI-7 gray75 Gray ACI-8 3. Format of toolbar.cfg file: Icon file pathname Prompt AutoCAD command --------------------------- ----- --------------- ../support/icons/16/new.xpm New "^C^C_new " Note: You'll need to create a 16x16 and 32x32 version of the toolbar.cfg file if you wish to support both icon sizes. There is usually files named toolbar.32 and toolbar.16 that specify the two sizes and you can switch between them by copying or linking one of them to the toolbar.cfg file. Some caveats to keep in mind when creating/modifying AutoCAD R12 icons: 1. The icon files in the "acad/support/ricons" directory use a "reduced" color set in order to avoid color changes during 2D-rendering operations with the Autodesk-supplied Motif driver. Since the IrisGL driver runs in True-color mode, this is not a consideration. 2. Size and color limitations: Size: 26x26 pixels. Colors: AutoCAD colors 0-8 (too eliminate flashing, see #1 above). In order to avoid color palette conflicts with the Autodesk-supplied Motif display driver, you should restrict the icon colors to the following set: X Color Specification Color AutoCAD Color Index --------------------- ----- ------------------- black Black ACI-0 #ff0000 Red ACI-1 #ffff00 Yellow ACI-2 #00ff00 Green ACI-3 #00ffff Cyan ACI-4 #0000ff Blue ACI-5 #ff00ff Magenta ACI-6 #ffffff White ACI-7 gray75 Gray ACI-8 3. There are a few other limitations to be aware of when building a custom toolbar: - The maximum number of buttons in the toolbar is 64. - The maximum length of a line in the "toolbar.cfg" file is 256 characters. - The icon files must be referenced by full, absolute path names. 4. For iconic menus, there is a further limitation: - The "icons" directory must be directly below the directory of the current menu. If you would like to view these colors, you can use the "colorview" program by entering the following commands in a text window: colorview -text - << _END_ black #ff0000 #ffff00 #00ff00 #00ffff #0000ff #ff00ff #ffffff gray75 _END_ You'll then be presented with a color viewing window and the list of icon colors to choose from. For further information, consult the "AutoCAD Interface, Installation and Performance Guide" from Autodesk.