Tool palettes provide instant access to a complete inventory of AutoCAD Architecture toolset tools—such as walls, doors, and windows—in one consistent user interface. Highly visual, tool palettes include previews of styles. You can create custom tool palettes that address your specific design needs. 

The basic information about tool palettes can be found in the Autodesk knowledge base,address%20your%20specific%20design%20needs.

Specifically for creating tool palettes with tsl functions the following information could be used.

Create a new Tool palett category

First step is to go to the Content Browser.

Right click on blank area & select Add Catalog.

Select the option Create a new catalog and fill in your catalogue name. Click OK and your catalog has been created.

You need to browse before typing the name otherwise it doesn‘t creating a directory.

Double click on your new catalog, and in the following dialog click on the Create a new Category icon in the bottom left. Give the new category a name.

In this example we have created 2 catalogs named hsbOpenings and hsbWalls

Create Tool palett in category

Now double click on your new catalog to go into the catalog. The next step is to create a new palette in the selected catalog. To do this click on the grey sheet icon in the bottom left of your screen.

Click the most right grey sheet icon to create a new palette
Fill in the name and description for your new palette

Now if you go back one step and hover over the catalog you get the option to add the catalogue to Tool Palette.

Adding a catalog to your toolpalette

Drag and drop functions on tool palett

When you right click on the tool palett and select properties, you able of turning on or of the refresh function. If you want to edit the tool palett you need to turn “Refresh from” of.

For putting hsb or AutoCAD functions on the tool palett, you need to type “cui”. This will open the Customize User Interface

You can drag and drop functions on the tool palett. To put a new tool palett to your “Content Browser”, drag and drop the palett in the “Content Browser”

Create new tsl in tool palett

To put new functions on a existing palett in the “Content Browser”, drag and drop the function on the palett in the “Content Browser”. To put a tsl on a tool palett you need to use the macro search in the existing paletts.

Search for macro’s

Select the Command Tool with Properties.

Copy and paste Command Tool with Properties to your tool palett in the Content Browser. Turn on Refresh from in your tool palett in AutoCAD. The new tool will appear.

After this turn off Refresh from in your tool palett in autoCAD to be able to change the settings Right click on new tool and select properties.

In the command string you need to fill in the lisp line explained.

Fill in the information required:
The lisp command “Hsb_ScriptInsert” can be used to customize a toolbar. When executing the autocad command.

(Hsb_ScriptInsert “aa” 0 “key”)
(Hsb_ScriptInsert “aa” )
(Hsb_ScriptInsert “aa” “key”)
(Hsb_ScriptInsert “aa” 0)

An instance of the TSL named “aa” is added with the option 0. The option 0 means multiple instances can be inserted. If the option is 1, only one instance will be inserted at a time.
The 0/1 is optional.

The second string value in the argument list is recognized and will be send to the script as _kExecuteKey. The “key” is optional.

If the script named “aa” does not exist at that time, an attempt is made to load the script from the file system. If the complete file path was specified as argument, that file will be loaded.
If not found, the install folders of hsbcad are searched. Then the Company/Tsl folder is searched, including its sub folders.

The general settings are not used for tsl insertion.
To change the picture, you need to right click and select change picture.
Now you can browse to the correct picture.
This picture is copied to the toolpalett map and changed to a png file.
To get the new function in the existing palett in the “Content Browser”, drag and drop from the tool palett in AutoCAD to the tool palett in the “Content Browser”.
This will also copy the picture.

Using Design Center to create a Tool palette

Open the design center from your Ribbon. Insert\Content Browser.

Locate the drawing you are in, in the Tree View and right click on the drawing name.
From the shortcut menu Create Tool Palette.
This action should have automatically created a new Tool palette named after your drawing and populated it with all the blocks contained in the drawing.

Updated on 20/11/2020

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support