I have a couple of LISP routines that will error out when I try to use them in the second or later drawing for an AutoCAD session. These programs have been used for many years, and I have only noticed this since AutoCAD 2022 & 2023. However I did go back and reinstall 2021 and I still have the same issue. This has been a problem since my system was upgraded last year and I started with a fresh install of AutoCAD 2022. Other installations in the office of 2022 & 2023 work as they should.
When I first open AutoCAD and load an existing drawing or start a new drawing, the list routine runs perfectly. When I open another drawing or start a new drawing; the program errors out. I can still go back into the first drawing and use the LISP routine in that drawing, but it never works in drawings opened later. If I save that first drawing and try to re-open it later it will not work unless it is the first drawing of a new AutoCAD session.
Any help is greatly appreciated
Brad