Originally Posted by
CCDWAE
I'm trying to change the tool palette file location system variable with a button macro. I need to include the %username% variable so that I can roll this out to my whole user base via a partial CUI. I'm using this button to get around the problems with networked tool palettes. I have one button for switching to network / shared palettes and one button for local palettes.
Local Button Macro Syntax:
^C^C*_toolpalettepath "C:/Documents and Settings/%username%/Application Data/Autodesk/ADT 2006/enu/Support/WorkspaceCatalog (Imperial)/Palettes"
This macro is not working...any thoughts? Maybe LISP would be better suited to this...
Thank
Jas
Truthfully, I would work around this by making a folder on the C:\ drive called Custom and a folder called Tool Palettes underneath it, then point the *TOOLPALETTEPATH to that location...That keeps all "Windows" user specific files to one location...
Now, if you have multiple users use the same machine, maybe that way will not work...If you absolutely have to have it like that, I would use a LISP function...I am not good with Macros, so I have to default to LISP...I am not sure, but the system variable LOCALROOTPREFIX is in AutoCAD and leads you right to the ...\enu\ folder in the documents & settings folder...
Code:
(defun c:TPLOCAL ( / cmdecho)
(setq cmdecho (getvar "CMDECHO"))
(setvar "CMDEACHO" 0)
(command "*_TOOLPALETTEPATH"
(strcat (getvar "LOCALROOTPREFIX") "Support/WorkspaceCatalog (Imperial)/Palettes")
);command
(setvar "CMDECHO" cmdecho)
(princ)
);defun
I hope this helps you...