Jump to content

Run a LISP last when opening a drawing


Steven P

Recommended Posts

Good morning,

 

I hope the title says it all. How do you force a LISP routine to run last when a drawing is opened?

 

I have a LISP with a few commands in it which run when the drawing opens - things like personalising my workspace (I'll get to that in a minute). The company has written an interface with AutoCAD to another piece of software and that puts in what they consider to be the ideal set up.

 

So when the drawing loads my bit runs, it sets up my CAD as I want it, then their interface loads and sets it all up as they want it. I then have to reset it to how I want it again....

 

What I want to do is change the order around at AutoCAD start up - their set up and then run my LISP. Is there an easy way to specify "Run this bit last"

 

 

 

Our company has 'agile working' - I could be on any machine anywhere if needed. I think using a LISP routine is the quickest way to set things up how I want each morning if I am not at my usual desk (Appload - select file - run lisp - job done )

 

 

Thanks.

Link to comment
Share on other sites

Your looking at implementing something like the following as far as I can tell. This will live in your acaddoc file.

 


(Defun s::startup (/)
;Your lisp here
)
[/Code]

 

 

 

Sent from my Pixel XL using Tapatalk

Link to comment
Share on other sites

Depends on how well you get along with your admin... it would be possible to have a lisp file with your own preferences in it and in the company acad.lsp or acaddoc file , via s::startup check for user login name and load user preferences. Or , have your own acad(doc).lsp file and put it first in your search or support path. But this can only work if you can edit your profile. Or create a shortcut to start autocad with /p option and place your lisp files in your network / mydocuments folder.

 

 

gr. rlx

Edited by rlx
Link to comment
Share on other sites

Thanks so far,

 

I'll try the s:startup thing and see how that goes - I have tried some of the other ideas so will give that a go. Thanks

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