Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Routine to APPLOAD lisp file..

Status
Not open for further replies.

basepointdesignz

Programmer
Jul 23, 2002
566
GB
Hi,

Does anyone know the best way to write a command or lisp or vba module that will perform the same function as the AppLoad command, so i can automatically load a LSP file back into autocad. Basically, i have a tools.lsp file which has lots of commands and lisp routines for our everyday office needs etc and everytime i update the file, i have to go around and re-load it into everyone's cad, which is a right pain. What i need is a simple command which allows everyone to load it themselves with a simple click of a menu button or keyboard shortcut..

Any ideas?



Cheers,

Paul
basepointdesignzltd..
P4 3.0Ghz / 2GB RAM
XP Pro SP2
Sapphire X1950 512MB Dual-DVi Graphics Card..
 
One of the "appload" options is to add the file to the "Startup suite" (suitcase icon). From then on the routine loads upon opening any drawing.
 
Hi CarlAK,

Yeah I know it has and i have everyone's start-up suite with that file in it, but sometimes i might need them to load it on demand not when a drawing is open or first thing in the morning. Mainly its for me really, as i update the tools.lsp file with extar bits pieces and want to try things out, i don't want to have to keep doing the appload command and searching for the file and loading it etc, i just want to load it with a simple button click or keyboard shortcut


Cheers,

Paul
basepointdesignzltd..
P4 3.0Ghz / 2GB RAM
XP Pro SP2
Sapphire X1950 512MB Dual-DVi Graphics Card..
 
Ok maybe a button:

^C^C(load "tools.lsp");

Assuming file is on the search path that should work, otherwise include path:

^C^C(load "c:\\path1\\path2\\tools.lsp");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top