Does anyone here know a way to add new locations to the support file search path via lisp? We use a few network locations for support files and occasionally the network connection is lost. If a user opens cad without that connection, the entry in the support file path list is lost also.
Was hoping to make a lisp to add them back easily.
We use a local "acad.lsp" (located in \Program Files\Autodesk\AutoCAD 2019\Support), which loads the network version of "acad.lsp".
The network copy in turn sets the support file search paths (SFSP), and the network location of this "acad.lsp" gets put at the top of the list, forcing this same "acad.lsp" to load the next time.
If, by chance, the network resource is not available at ACAD startup time, then the local "acad.lsp" fires, and informs the user that the network resource is N/A.
So at this point, like you say, those network paths are dropped from the SFSP.
Say the network resource comes back online, and the user restarts ACAD.
The local "Acad.lsp" fires again, this time finding the network "acad.lsp", which loads, and voila, everything is back to normal, with no human intervention.