(setq PathToAdd ";L:;L:\\_VLISP;L:\\_VLISP\\KDUB_SUPPORT"
NewSupportPath (strcat (getenv "ACAD") PathToAdd)
)
(setenv "ACAD" NewSupportPath)
;;; Check to make sure ..
(getenv "ACAD")
(vl-load-com)
(defun addpaths (/ files expaths newpath)
(setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object)))
expaths (vla-get-supportpath files)
)
(setq newpath (strcat
expaths
";"
"C:\\Path1"
";"
"C:\\Path2"
";"
"C:\\Path3"
";"
"C:\\Path4"
";"
"C:\\Path5"
)
)
(vla-put-supportpath files newpath)
(princ)
)
(defun c:ctb (/ files expaths newpath)
(vl-load-com)
(setq files (vla-get-files (vla-get-preferences (vlax-get-acad-object)))
expaths (vla-get-supportpath files)
)
(setq newpath
(strcat
expaths
";"
"M:paths"
)
)
(vla-put-printerstylesheetpath files newpath)
(princ)
)
(defun c:ctb ()
(vl-load-com)
(setq prefs(vla-get-preferences (vlax-get-acad-object))
filePrefs (vla-get-files prefs)
)
(vla-put-printerstylesheetpath filePrefs "M:path")
(vla-refreshplotdeviceinfo
(vla-get-activelayout
(vla-get-activedocument
(vlax-get-acad-object))))
(princ)
)
(defun c:CTB ()
(setenv "PrinterStyleSheetDir" "M:\\_Cad Support\\AutoCAD 2004\\Autodesk\\Autodesk Architectural Desktop 2004\\R16.0\\enu\\AHL_CTB")
(princ)
)
If it shows a path...this should work:This changed the search path but AutoCAD is not reading it.
(vla-put-printerstylesheetpath (vla-get-files (vla-get-preferences (vlax-get-acad-object)))"M:\\")
...
AutoCAD reads support paths when you open the program, but will not read substituted or added paths in a current session.
(defun c:ctb ()
(vl-load-com)
(setq prefs(vla-get-preferences (vlax-get-acad-object))
filePrefs (vla-get-files prefs)
)
(vla-put-printerstylesheetpath filePrefs "C:\\AutoCAD 2004\\Plot Styles")
(vla-refreshplotdeviceinfo
(vla-get-activelayout
(vla-get-activedocument
(vlax-get-acad-object))))
(princ)
)
this changes the ctb path but doesn't set it current. The ctb will show in the plot dialog box, but their not being read.options
files
printer support file path
plot style table search path
this will change the path but it won't be read untill you hit Sorry Chuck,
Its just not working for me.
What a great idea! You can just fly me over (no need for a return ticket)the cost of living here is so high..and the pay is very low.
a 1,000 sf condo, mid end, is currently starting @ $500,000 - $600,000. Starting
I know this is an old thread, I am looking to change model & paperspace background colors witht he same type of function, no luck...