Not sure about 2026, but this works for 2018 as a LISP function:
(command "*_toolpalettepath" "yourpath" "toolpalettes")
Here's an example of how this can work in a network environment...
I have the following LISP commands defined in a acaddoc.lsp:
This sets the network palette:
(defun c:NetPalette () (command "*_toolpalettepath" "N:\\AutoCAD Support\\Tool Palettes" "toolpalettes"))
This will set the AutoCAD default palette:
(defun c:StdPalette () (command "*_toolpalettepath" "C:\\Users\\%USERNAME%\\AppData\\Roaming\\Autodesk\\AutoCAD 2018\\R22.0\\enu\\Support\\ToolPalette" "toolpalettes"))
This sets a local palette, which allows me to work on changes locally, then copy paste any new tools or changes to the Network Palette (using Ctrl+A, Ctrl+C, Ctrl+V, etc.):
(defun c:LocalPalette () (command "*_toolpalettepath" "C:\\Users\\%USERNAME%\\AppData\\Roaming\\Autodesk\\AutoCAD 2018\\R22.0\\enu\\Support\\ToolPalette_2" "toolpalettes"))
Notes:
- If all users are pointed to the same acaddoc.lsp, then those users will have access to the above network and local palettes using the provided commands defined in that acaddoc.lsp, which should be saved in a SFSP (Support File Search Path) folder on your network.
- Make sure only the tool palette author has Read/Write permissions on that network folder holding the network tool palette to avoid any issues.
AutoCad 2018 (full)
Win 11 Pro