JoeyG_77 Posted February 18, 2020 Share Posted February 18, 2020 Hey guys, I wanted to know if there is a way to run a lisp automatically once you open a drawing. I want to be able to click the open file command and with the open dialog box find the file and open it, but when the drawing is loaded it would run a specific lisp function without typing anything. Thanks for help Joey G Quote Link to comment Share on other sites More sharing options...
marko_ribar Posted February 18, 2020 Share Posted February 18, 2020 Consider creating custom acaddoc.lsp for this tasks only placed in SFSP... Programming should be made inside acaddoc.lsp... Also when finished with jobs with your DWGs, plase replace acaddoc.lsp with original (I suppose you have this file already - perhaps for autoloading other lisps from your custom support folder)... 2 Quote Link to comment Share on other sites More sharing options...
JoeyG_77 Posted February 18, 2020 Author Share Posted February 18, 2020 Thanks for the reply Marko ... I get what you're saying, but im not a programmer to even attempt that inside the acaddoc.lsp Quote Link to comment Share on other sites More sharing options...
BIGAL Posted February 18, 2020 Share Posted February 18, 2020 Have a look at this https://forums.autodesk.com/t5/autocad-land-desktop-read-only/auto-run-a-command-on-drawing-open/td-p/1349950 1 Quote Link to comment Share on other sites More sharing options...
JoeyG_77 Posted February 19, 2020 Author Share Posted February 19, 2020 BigAl .. Thanks for the reply and that link sent me in the right direction. I added the lisp into the Acaddoc.lsp & at the end of the lisp I added (c:LISPNAME) before the (princ). Then made sure the ACADLSPASDOC was set to 0. Thanks Again Quote Link to comment Share on other sites More sharing options...
BIGAL Posted February 19, 2020 Share Posted February 19, 2020 Not a problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.