@Crass wrote:
Do you know of any resources (training videos, forum threads, white papers, etc.) that walks you through this? I can do some internet searching on my own as well.
There are some out there but I'd have to search as well.
One method I use is to create a LISP function/file (I'll call it the Initialization.lsp file) stored in a network folder that users can drag/drop onto an open AutoCad drawing, which only needs to happen once.
Setting up the folder structure first is key, with folders named such as LISP, Blocks, Data, etc., then the Initialization.lsp LISP function sets the Support File Search Paths and Trusted Paths to those folders. Within that folder structure is an acaddoc.lsp file that loads and sets all necessary functionality when each drawing is opened.
By default, when AutoCad opens each drawing it looks for an acaddoc.lsp, then loads the contents of that file into the drawing at startup. Setting the SFSP's and having that acaddoc.lsp located within that folder structure ensures that every user that has drag/dropped the Initialization.lsp file into an open drawing has the same environment and functionality.
A good resource and starting point would be here: https://www.lee-mac.com/envvarfunctions.html
@Crass wrote:
With this method, would the dwg_cleanup.lsp file need to be in the Startup Suite of APPLOAD? It would be fine either way. We are not a huge company. I'm just trying to understand if I'd need to set this up individually on each machine.
No, it doesn't have to be in the Startup Suite, it just needs to reside in the folder specified in the text string "S:\\AutoCad_Support\\LISP\\dwg_cleanup" (notice the use of double back slashes. Thats so LISP can read the back slashes literally, otherwise a back slash gets treated as a control character).
Hard coding the path ensures that it gets loaded before calling the function. The LISP string could be adjusted to check and see if the dwg_cleanup.lsp is already loaded, but it's a minimal impact so not absolutely necessary.
If each user has that button on a Tool Palette and access to the folder specified, then that's all you need to do.
AutoCad 2018 (full)
Win 11 Pro