lisp to set tool pallete paths

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to make a lisp that will set tool palette paths and use it easily for multiple computers.
I tried to follow the following post from 2007 with no luck... I get the error "error: malformed list on input"
This is what I have so far:
;;TOOLPATHTRANS-acad.LSP - (c)
;;
;; Sets path for tool palettes
;; displays the result in an AutoCAD Alert Window.
;;
(defun C:TLP1 ()
(command
"*_TOOLPALETTEPATH"
"S:/Office/Transportation/CAD Standards/ERI CAD Standards/Templates/Tool Palettes/Build (Write)")
)
(defun C:TLP2 ()
(vla-put-ToolPalettePath (vla-get-Files (vla-get-Preferences (vlax-get-acad-object))) (strcat (getvar "ROAMABLEROOTPREFIX") "Support/ToolPalette"))
We are using civil 3d. so we need a path to our network for shared acad items and a path to the default location for the Civil 3d assemblies.
Some users only use acad so they would only need the path to the shared location.
Thank you,
-John