Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Automatically loading Lisp Routines

13 REPLIES 13
Reply
Message 1 of 14
joelrob
731 Views, 13 Replies

Automatically loading Lisp Routines

I have several routines that i use on a regular basis, and it seems the first few minutes of each autocad session are spent in the Appload dialog box. Is there a way to automatically load the routines I most commonly use on startup?

A big thanks to all of you out there developing these routines, many of them have saved me untold hours of work.
13 REPLIES 13
Message 2 of 14
Anonymous
in reply to: joelrob

A2K+ ?

 

Within the APPLOAD box add them to your Starup
Suite at the bottom.

 

-Jason

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
have several routines that i use on a regular basis, and it seems the first
few minutes of each autocad session are spent in the Appload dialog box. Is
there a way to automatically load the routines I most commonly use on startup?

A big thanks to all of you out there developing these routines, many of
them have saved me untold hours of work.

Message 3 of 14
joelrob
in reply to: joelrob

Sorry, it's AutoCAD R14. Should have included that in my original post.
Message 4 of 14
Anonymous
in reply to: joelrob

If you're starting the app off a menu, make the menu read:
[NAME]^C^C(if (not c:LISP)(load "LISP"))LISP
My menu has dozens of these. Then the lisp isn't autoloaded every session,
only on demand.
-doug
(LISP being the name of the "LISP.LSP" file)

"joelrob" wrote in message
news:f0819c2.1@WebX.maYIadrTaRb...
Sorry, it's AutoCAD R14. Should have included that in my original post.
Message 5 of 14
joelrob
in reply to: joelrob

right now i'm loading them individually with the appload command. i want them to load automatically with each session.
Message 6 of 14
Jtrostad
in reply to: joelrob

Why don't you make a ACAD.lsp file? You can then add as many (load "LISP.LSP) lines as you want to it. If you stick it in the support file search path, it will automatically load & run when AutoCAD starts.

Just my $0.03
-J-
Message 7 of 14
joelrob
in reply to: joelrob

worked perfectly, thanks
Message 8 of 14
Anonymous
in reply to: joelrob

Putting (load ) statements into your acad.lsp will load the
file whether you ever use it or not. This isn't a problem for most, but as
your library grows you may want to load the files only if the function is
called. You can do this by using (autoload '("func1"
"func2")) calls instead of (load ...) in your acad.lsp file.
--
Cliff

"joelrob" wrote in message
news:f0819c2.5@WebX.maYIadrTaRb...
| worked perfectly, thanks
|
Message 9 of 14
Anonymous
in reply to: joelrob

I have used this for some time now with great success on my single user
machine, but when I tried the same approach on multiple machines on a
network with lisp files on a network drive it doesn't seem to work.
I have added the path to the support file search list in "options" which
works fine to insert blocks etc but doesn't seem to work for (autoload)
Anyone got an answer?
cheers
Steve

Cliff Middleton wrote in message
news:D39E8DC896E6B7A2D5B62BC151D3AADC@in.WebX.maYIadrTaRb...
> Putting (load ) statements into your acad.lsp will load the
> file whether you ever use it or not. This isn't a problem for most, but
as
> your library grows you may want to load the files only if the function is
> called. You can do this by using (autoload '("func1"
> "func2")) calls instead of (load ...) in your acad.lsp file.
> --
> Cliff
Message 10 of 14
Anonymous
in reply to: joelrob

I use autoload in our company menus on the server and they all work fine.

Scribble wrote in message
news:6BE6689AEDACB86887145F90FDED138B@in.WebX.maYIadrTaRb...
> I have used this for some time now with great success on my single user
> machine, but when I tried the same approach on multiple machines on a
> network with lisp files on a network drive it doesn't seem to work.
> I have added the path to the support file search list in "options" which
> works fine to insert blocks etc but doesn't seem to work for (autoload)
> Anyone got an answer?
> cheers
> Steve
>
> Cliff Middleton wrote in message
> news:D39E8DC896E6B7A2D5B62BC151D3AADC@in.WebX.maYIadrTaRb...
> > Putting (load ) statements into your acad.lsp will load
the
> > file whether you ever use it or not. This isn't a problem for most, but
> as
> > your library grows you may want to load the files only if the function
is
> > called. You can do this by using (autoload '("func1"
> > "func2")) calls instead of (load ...) in your acad.lsp file.
> > --
> > Cliff
>
>
>
Message 11 of 14
Anonymous
in reply to: joelrob

If on the network you simply get the "Unknown command" message I would guess
that the file containing the autoload calls is not being loaded.
If autoload can't find the file you will get a message something like, "The
file (.lsp/.exe/.arx) was not found in your search path folders.
Check the installation of the support files and try again".
--
Cliff

"Scribble" wrote in message
news:6BE6689AEDACB86887145F90FDED138B@in.WebX.maYIadrTaRb...
| I have used this for some time now with great success on my single user
| machine, but when I tried the same approach on multiple machines on a
| network with lisp files on a network drive it doesn't seem to work.
| I have added the path to the support file search list in "options" which
| works fine to insert blocks etc but doesn't seem to work for (autoload)
| Anyone got an answer?
| cheers
| Steve
|
| Cliff Middleton wrote in message
| news:D39E8DC896E6B7A2D5B62BC151D3AADC@in.WebX.maYIadrTaRb...
| > Putting (load ) statements into your acad.lsp will load
the
| > file whether you ever use it or not. This isn't a problem for most, but
| as
| > your library grows you may want to load the files only if the function
is
| > called. You can do this by using (autoload '("func1"
| > "func2")) calls instead of (load ...) in your acad.lsp file.
| > --
| > Cliff
|
|
|
Message 12 of 14
Anonymous
in reply to: joelrob

I have the autoloads in the mnl file of my partial menu. The menu seems to
load OK as I have a "Loaded.." type prompt at it's end.
If I copy all the lisp files to a local folder it works fine but if the are
in a network folder they don't.

"Cliff Middleton" wrote in message
news:6C67F7CD4E11FBDF8BDF8D5FBE3BE322@in.WebX.maYIadrTaRb...
> If on the network you simply get the "Unknown command" message I would
guess
> that the file containing the autoload calls is not being loaded.
> If autoload can't find the file you will get a message something like,
"The
> file (.lsp/.exe/.arx) was not found in your search path
folders.
> Check the installation of the support files and try again".
> --
Message 13 of 14
Anonymous
in reply to: joelrob

What message do you get when you try to run the commands for the lisp
programs? Do the users have "read" privileges in the network directory?
Message 14 of 14
Anonymous
in reply to: joelrob

Thanks Cliff, users had full priveleges but muggins me wasn't reading fully
the meaning of the error messages.
Seems I had a load function in the mnl file that was failing, causing full
loading of the mnl to fail.
I have fixed that and miraculously all works well now.
cheers
Steve

Cliff Middleton wrote in message
news:8046B36AC4A5935E7992626067F33E28@in.WebX.maYIadrTaRb...
> What message do you get when you try to run the commands for the lisp
> programs? Do the users have "read" privileges in the network directory?
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost