Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I load a lisp file?

1 view
Skip to first unread message

Jason Piercey

unread,
Mar 13, 2002, 9:11:21 AM3/13/02
to
I would store custom lisp routines in separate folder outside of AutoCAD's
native path structure. Then add that path to the search paths in AutoCAD.

You can have lisp files automatically load in several ways, one would be to
place and (autoload) statement in your .mnl file. Another way would be to
use the APPLOAD command, then browse to the file you want to load and then
select load. Within that dialog box there is a button to add a routine to
the Startup Suite, if you add lisp files there they will be loaded every
time you start AutoCAD. Once you have loaded the routine just type in the
name of the command.

Generally speaking the name of the command is the name of the file, not
always true but for the most part it is. You can check this by opening the
file and looking for (defun C:YourCommandNameHere ( ), anything defined with
(defun C: ......) can be accessed from the command line by typing that
command.

Hope this helps.

--
-Jason

Member of the Autodesk Discussion Forum Moderator Program


> Can someone tell me where to store a lisp
> file, how to load it, and how to access it once
> running ac 2000?

Dave Jones

unread,
Mar 14, 2002, 8:31:01 PM3/14/02
to
Jamie,
fyi, this is not good advice. Any customizations should be done to an
acaddoc.lsp file as the acad2000doc.lsp file is subject to replacement when
Acad is upgraded or patches are applied. Not a good thing :) And, autoload
statements in a partial menu, or even using StartUp Suite would be better
than pasting whole lisp routines into the acaddoc.lsp file.
--
Dave Jones

Member of the Autodesk Discussion Forum Moderator Program

"Jamie Duncan" <jdu...@eol.ca> wrote in message
news:72651C2F1A5F3649...@in.WebX.maYIadrTaRb...
> you can copy and paste the entire lisp file into your acad2000doc.lsp file
which is in acad2000\support
> The lisp command will be loaded with every drawing and always accesible
>
> Jamie Duncan
> "jvanmetre" <jimva...@royalpromo.com> wrote in message
news:f0c45...@WebX.maYIadrTaRb...


> Can someone tell me where to store a lisp
> file, how to load it, and how to access it once
> running ac 2000?

> Thanks
>
> JVM
>
>


Dave Jones

unread,
Mar 14, 2002, 8:32:37 PM3/14/02
to
nothing...it's still used in R13/14, but has become acaddoc.lsp in 2000+.
You can still use load or autoload statements in either file...
--
Dave Jones

Member of the Autodesk Discussion Forum Moderator Program

"btlsp" <bt_...@hotmail.com> wrote in message
news:f0c4...@WebX.maYIadrTaRb...
> What happened to acad.lsp?
>


Jason Piercey

unread,
Mar 15, 2002, 8:56:37 AM3/15/02
to
1. the sytnax is the same for the .mnl file.

2. I have no idea

--
-Jason

Member of the Autodesk Discussion Forum Moderator Program


> is the code formatted differently? IE in acaddoc.lsp
> (autoload "lispfile" '(lispfile command))

> Why did Autodesk make the ACAD.LSP into ACADDOC.LSP in R2000?

R. Robert Bell

unread,
Mar 15, 2002, 10:16:14 AM3/15/02
to
#2: Acad.lsp to load functions once for the drawing session, AcadDoc.lsp to
load functions for each drawing during the session.

--
R. Robert Bell, MCSE
www.AcadX.com


"Jason Piercey" <Jason@AtrEngDOTcom> wrote in message
news:E00447EBC51E41A0...@in.WebX.maYIadrTaRb...

Jason Piercey

unread,
Mar 15, 2002, 11:44:42 AM3/15/02
to
Thanks, Robert. I don't use either, put them all in the .mnl.

--
-Jason

Member of the Autodesk Discussion Forum Moderator Program

0 new messages