[Autocad Scripts] Project-wide script hangs on first drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to run a script on a project in Autocad Electrical 2025. The script loads an .LSP file. The .LSP file imports wire layers from a .DFT file into the drawing. It works normally when doing an active drawing, but when I try to run the script project-wide, it hangs. I've pasted the whole script text below.
;script to load all the MCS wire layers into the current drawing
;cmdecho 1
(load "C:\\_MCS_ENG_Vault\\ACADE_Shared\\AeData\\MCS-UPD-CLAY.LSP")
MCS-UPD-CLAY
MCS-STANDARD
E
When I try to run the script through the Project-Wide Utilities button, it prints out the results on the console more than once and it never ends up running the command. Sometimes it crashes. See Photo
I want to get this figured out because it would be a huge help to my team and myself.