Convert slide libraries/image tile menus and tablet menus to tool palettes
By Ellen Finkelstein
(For Releases 2004 and 2005)
If you have custom menus that you have been using for inserting blocks, you know that creating and maintaining these menus is a major project.
If you have a digitizing tablet, you may be using the Tablet 1 section of the tablet menu. If you change a block, you need to edit the menu, create a new image, edit tablet.dwg, and finally replot tablet.dwg to place the new version on your digitizing tablet.
Or you may have created a slide library with slides of your blocks and your customized commands. You may have put the slide library images in an image-tile menu that you display from a pull-down menu item that you have created. Making changes involves editing the menu, recreating the slide, editing the slide list, and recompiling the slide library from the command line.
In both scenarios, you needed to reload the new menu.
Did you find this tip helpful? Don't miss new tips!
Plus get a free Dynamic Blocks tutorial
Enter your name and email below
A simpler method is to use tool palettes. A reader, Ronald E. Walker, asked me several questions about the new tool palettes and together we worked out the following procedure. He has used slide libraries in the past and is converting them to tool palettes. First I explain the steps for AutoCAD 2005. Afterwards, I explain what you need to do in 2004.
Steps for 2005
In the drawing containing the block, type PNGOUT. (This command creates a PNG file, one of the file types that the tool palettes uses to create the icons. It creates small, accurate files.)
In the Create Raster File dialog box, name the file and choose a location in your support file search path. Click Save.
At the Select objects: prompt, select the block.
Right click in an open area of a tool palette and choose New Tool Palette to create a new tab.
Right-click an open area of the new tab and choose Customize. In the Customize dialog box, click the Commands tab.
Click and drag any command from the Commands area on the right side of the dialog box to the Tool Palette. (The exact command is not important, because you will edit it.)
In the Tool Palette, right click the command tool and choose Properties. The Tool Properties dialog box opens, shown here.
In the Command String item, enter your command string. You can copy and paste from your menu.
Change the name and description in the appropriate text boxes.
Right click the image in the upper left corner of the dialog box, as shown here, and choose Specify Image. (You may just see a square.)
Navigate to the PNG file you saved earlier and click OK.
Click OK to close the Customize dialog box.
Note, if you don’t see the image clearly, you may need to crop it in an image editor.
Editing the tool palette is easy. Just edit the Command String to change the macro. However, if you change the block, you need to update the image. This process is not automatic. The easiest method is to right-click the tool, choose Properties, and right-click the image. Choose Select Image, choose a different image, and click OK. Then repeat the process with the correct image to update the image.
Steps for 2004
In 2004, you need to work directly with the .atc files that create the tools. To find their location, choose Tools>Options and click the Files tab, and double-click Tool Palettes File Locations. In that folder you’ll find a Palettes folder containing the .atc files plus an Images folder that contains the images used by the icons.
The .atc file is a text file that you can modify. It has many codes that I certainly can’t figure out, but for a command tool palette, the important parts are the tool name, image file, and the macro that executes the command. Here is an example of a command tool palette that simply executes the line command.