Author Topic: appload button help  (Read 5269 times)

0 Members and 1 Guest are viewing this topic.

ELOQUINTET

  • Guest
appload button help
« Reply #15 on: October 19, 2004, 11:20:46 AM »
well i just changed the folder name so everything in my startup suite has a path that no longer exists. this is really more for one time loading of a lisp i want appload to open to the directory where all of my lisps are not the last folder i had open makes sense to me. I also don't like the fact that you can't add more than 50 files at a time.

CADaver

  • Guest
appload button help
« Reply #16 on: October 19, 2004, 11:24:45 AM »
Quote from: SMadsen
Quote from: SMadsen
LOAD evaluates everything in a file and many things can go wrong.

Of course, one could use the AUTOLOAD function and delay any problems with lisp files until the command is being issued. Requires the presence and knowledge of commands, though.
I have a great long list of AUTOLOAD functions tacked on the end of my MNL.  That way they're not loaded til I need 'em, but when I need 'em they get loaded.

ELOQUINTET

  • Guest
appload button help
« Reply #17 on: October 19, 2004, 11:44:26 AM »
mmm not quite sure i follow you cadaver can you post me an example of your .mnl?

CADaver

  • Guest
appload button help
« Reply #18 on: October 19, 2004, 02:19:55 PM »
In the example below entering CLDR or CLDH will load lisp CLD.LSP then execute the command.  If I never enter those commands, the function is never loaded.

Code: [Select]
;;;     CSA-2002.MNL
;;;     Copyright (C) 1986 - 2004 by Falcon Design Services, Inc.
;;;

;;;;… <big load of stuff removed>

(autoload "E:/Programs/AC2002/Menus/csa/Lisp/cld" '("cldr" "cldh"))
(autoload "E:/Programs/AC2002/Menus/csa/chtext" '("ct" "cx"))
(autoload "e:/programs/ac2002/menus/csa/PLOTTABS.lsp" '("PLOTTABS"))
(autoload "e:/programs/ac2002/menus/csa/lisp/viewimp.vlx" '("viewimport"))
(autoload "e:/programs/ac2002/menus/csa/lisp/xrbg.lsp" '("xrbg"))

;;;;… <another big load of stuff removed>



(princ "\n      =================================================================")
(setvar "xedit" 0)
(setvar "gripblock" 0)
(terpri) (terpri)
(princ "... Done.")
(princ)


The VIEWIMP.VLX is not loaded until I enter the command, and so on.

ELOQUINTET

  • Guest
appload button help
« Reply #19 on: October 19, 2004, 02:49:12 PM »
thanks cadaver that helpful i'm just trying to find all the options.

CADaver

  • Guest
appload button help
« Reply #20 on: October 19, 2004, 03:27:24 PM »
Quote from: eloquintet
thanks cadaver that helpful i'm just trying to find all the options.
Glad to have been of service.