Jump to content

Open File & Auto Run Lisp


JoeyG_77

Recommended Posts

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

Link to comment
Share on other sites

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)...

  • Thanks 2
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...