Jump to content

How to auto load LISP files?


azman

Recommended Posts

Irneb thanks for the advice. You mean to create a LISP inside the folder where we keep the other LISPs?
When acad opens a DWG it searches for a file named ACADDOC.LSP. If it finds that it loads it and runs all codes inside. So you need to create that file and place it somewhere that acad can find it.

 

Best place is inside one of the folders listed in acad's Support Paths (i.e. Options dialog, Files tab, Support File Search Path). You can edit that list to include any folder you like - so effectively you can place it anywhere.

 

The simplest way I've seen is to make a folder of your own (you can place it anywhere you want - even on a network share), place all your lisps (and your own acaddoc.lsp with lines to load your other LSP files) inside that and add it to the support path. If you later have an upgrade, all you need to do is add that folder to the new acad's support paths. If you want to install your lisps on another PC, copy the folder (or if the folder is shared across the network just link to it) and add it to that PC's Acad's support paths. No matter how many lisps you've got, the same thing happens - just that one change in acad and everything's setup.

 

With the "Trusted Paths" thingy which adesk added to 2014 (and 2013-SP1) there's one more place where you now have to add that folder. Otherwise acad will disallow any LSP/FAS/VLX/ARX/DLL file from being loaded if it's contained inside that folder. This is a bit painful, but at least only one extra thing. Also in the Options dialog, Files tab - there's now a Trusted Paths group which works the same as the Support Paths - so you need to add your folder to both of these.

Link to comment
Share on other sites

  • Replies 21
  • Created
  • Last Reply

Top Posters In This Topic

  • irneb

    5

  • Dj_T_Rex2002

    5

  • azman

    2

  • nod684

    2

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