You can now with the Tool Palette Extension create and manage and even switch palette groups easier than ever.
In the below image you see the Customize dialog you get after installing the extension then right-click on the Tool Palette and select "customize".
You can switch the current palette groups as simple as right-click menu on the Tool Palette as seen in the below image.
Below is a closer view of the Customize dialog where you can create, rename and export palettes and groups.
Are you aware you can even switch multiple Tool Palettes without the Tool Palette extension?
It is not as nice and easy as having the extension but here are the details:
Thanks to my fellow deskers Misha and Elango for this great explanation .
You can set the sysvar using setvar command or directly typing *_TOOLPALETTEPATH
in the command line. You must create your Tool Pallete files in separate directories for this method.
Programmatically, you can set the tool palette path in the following ways:
1. Using VBASTMT command and entering the following VBA statement:
AcadApplication.Preferences.Files.ToolPalettePath = "c:\temp\Palettes"
2. Using VBA macro:
Sub test()
Dim objPref As AcadPreferencesFiles
Set objPref = AcadApplication.Preferences.Files
objPref.ToolPalettePath = "c:\temp\palettes"
End Sub
2. Using Lisp as below:
(vl-load-com)
(vla-put-ToolPalettePath (vla-get-Files (vla-get-preferences (vlax-get-acad-object))) "c:\temp\Palettes" )
Please note that switching may be slow because it saves the current
palette and reloads the new palettes.
The extension is definitly the way to go!
Cheers,
-Shaan