Jump to content

Recommended Posts

Posted

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

Posted

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
Posted

Thanks for the reply Marko ... I get what you're saying, but im not a programmer to even attempt that inside the acaddoc.lsp

Posted

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

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