Run list of lisps in folder by another lisp

Run list of lisps in folder by another lisp

cool.stuff
Collaborator Collaborator
965 Views
2 Replies
Message 1 of 3

Run list of lisps in folder by another lisp

cool.stuff
Collaborator
Collaborator

Hi!!!

 

I have a list of lisp routines that I would like to load from another lisp.

 

The list is:

 

flat.lsp

offsetfmp.lsp

clline.lsp

 

These are a few lisp routines that I have in a folder.

It is possible to create a lisp named "drawLISP.lsp" that would load these at once please?

 

Many thanks in advance 🙂

0 Likes
Accepted solutions (1)
966 Views
2 Replies
Replies (2)
Message 3 of 3

Kent1Cooper
Consultant
Consultant
Accepted solution

Rather than the Startup approach, it sounds like you don't necessarily want them loaded in every drawing.  For a routine to load them on demand, I would make drawLISP.lsp and include in it simply:

 

(load "flat")

(load "offsetfmp")

(load "clline")

 

You don't even need to include the .lsp filetype endings.  Then APPLOAD drawLISP.lsp to have it load the others.

 

If you want them loaded in every drawing whenever you open it, rather than on demand, you can just include those same lines in acaddoc.lsp.

 

This all assumes that those .lsp files are in a folder where AutoCAD knows to look.  Otherwise, filepaths would need to be added.

Kent Cooper, AIA