acad.lsp and Support file search path help needed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need some assistance with a custom acad.lsp file that a prior employee set up and was using to control the SFSP. We are using AutoCAD Architecture (2018 currently). The issue with the lsp that has been implemented is that it seems to overwrite the SFSP entries with the ones in the lsp file. Thus many of the ACA paths are now missing when ACA is loaded. I want to update the custom paths, but I don't want to lose all the default Acad and ACA paths that need to be there. In my searches, every post I find seems to do this a different way.
A specific example of one missing path is the SFSP to the ACA hatch patterns located at:
C:\Users\%username%\AppData\Roaming\Autodesk\ACA 2018\enu\Support\pats
I have tried adding it to the acadloc lines, but it always goes to:
C:\Program Files\Autodesk\AutoCAD 2018\pats
Here is the current code:
(vl-load-com) (setq acadloc (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-product-key)) "ACADLOCATION") ) (setq *files* (vla-get-files (vla-get-preferences (vlax-get-acad-object)) )) (setq sfsp (strcat "O:\\autodesk\\autolisp;" "O:\\autodesk\\autolisp\\bitmap;" "O:\\autodesk\\autolisp\\blocks;" "O:\\autodesk\\autolisp\\script;" "O:\\autodesk\\autolisp\\simpson\\menu;" "O:\\autodesk\\standards & templates;" "O:\\autodesk\\hatch-line types;" "O:\\fonts;" "O:\\Autodesk\\Standards & Templates\\Tool Catalogs;" "O:\\Autodesk\\Standards & Templates\\Styles;" (getvar "ROAMABLEROOTPREFIX") "SUPPORT;" (getvar "LOCALROOTPREFIX") "SUPPORT;" acadloc "\\support;" acadloc "\\pats;" acadloc "\\support\\en-US;" acadloc "\\EXPRESS;" acadloc "\\help;" acadloc "\\support\\Color;" acadloc "\\ACA;" acadloc "\\ApplicationPlugins\\AcWorkflow.bundle\\Contents\\Win64;" acadloc "\\ApplicationPlugins\SBD.bundle\Contents\AALSBin;" ) ) (vla-put-SupportPath *files* sfsp) (vla-put-TemplateDwgPath *files* "O:\\autodesk\\standards & templates") (vla-put-PrinterStyleSheetPath *files* "C:\\ProgramData\\Autodesk\\ACA 2019\\enu\\Plotters\\Plot Styles") (vla-put-QnewTemplateFile *files* "O:\\autodesk\\standards & templates\\dkc-modelspace.dwt") (vla-put-EnterpriseMenuFile *files* "O:\\autodesk\\standards & templates\\dkc-cui.cuix") (vlax-release-object *files*)
So my goal is to modify or replace this code with something that will keep the default ACA and ACAD paths, wile allowing me to ADD the custom paths that I need in SFSP and the various Plotter paths.
I'm also trying to find any documentation on this if anyone knows where to point me, it would be appreciated.
Thank you for your help.