I am trying to use a piece of the snip it add-on ffrom previous threads on the acad2014doc.lsp as shown below. it works but it keeps adding the same path every time I open a new session. I all I want it to add it once. Any ideas.
Code:
; Say you want to make sure your users all have a certain tool palette.
(setq tooldir "p:\\test\\1111\\4444"
toolpaths (vlax-get-property (vlax-get-property (vlax-get-property (vlax-get-acad-object) 'Preferences) 'Files) 'ToolPalettePath)
)
(if (not (vl-string-search tooldir toolpaths))
(vlax-put-property
(vlax-get-property (vlax-get-property (vlax-get-acad-object) 'Preferences) 'Files)
'ToolPalettePath
(strcat (vl-string-right-trim ";" toolpaths) ";" tooldir)
)
)
(setq tooldir nil toolpaths nil)