Author Topic: Loading numerous lisp files without slowing CAD down  (Read 2474 times)

0 Members and 1 Guest are viewing this topic.

hyposmurf

  • Guest
Loading numerous lisp files without slowing CAD down
« on: May 15, 2005, 08:59:21 AM »
Whats the best way to go about having a number of lisps loading in AutoCAD.I realise that you can have a lisp file fire up at start up time with a collection of all your favourate lisps.This however can make slow CAD up. There is another way where you can have them sitting in the background awaiting foir the command to be called and then they load themselves ready to carry out that command.This way saves memory, I saw the method on a website but cant for the life of me find where it was.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Crank

  • Water Moccasin
  • Posts: 1503
Loading numerous lisp files without slowing CAD down
« Reply #2 on: May 15, 2005, 09:30:26 AM »
Autoload or:
Code: [Select]

^c^c^p(if (not c:program)(load "program")) ^Pprogram
Vault Professional 2023     +     AEC Collection

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Loading numerous lisp files without slowing CAD down
« Reply #3 on: May 15, 2005, 09:44:05 AM »
You're probably thinking of Autoload .. defined and demonstrated in the Acad200xDoc.lsp file.

essentially it just makes a placeholder function with load instructions untill the initial definition is run, which loads the full definition and runs it.

like this ?
(autoload "3darray" '("3darray"))

You may want to update the  AI_ffile function though ..
Code: [Select]

(defun ai_ffile (app)
  (or (findfile (strcat app ".lsp"))
      (findfile (strcat app ".fas")) ; added kwb
      (findfile (strcat app ".vlx")) ; added kwb
      (findfile (strcat app ".exp"))
      (findfile (strcat app ".exe"))
      (findfile (strcat app ".arx"))
      (findfile app)
  )
)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Loading numerous lisp files without slowing CAD down
« Reply #4 on: May 15, 2005, 09:45:50 AM »
heh, I should preview before I post, or speed up a little ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

hyposmurf

  • Guest
Loading numerous lisp files without slowing CAD down
« Reply #5 on: May 15, 2005, 10:18:00 AM »
I hear autoload maybe  what I want. :lol: Thanks

nivuahc

  • Guest
Loading numerous lisp files without slowing CAD down
« Reply #6 on: May 15, 2005, 11:28:29 AM »
You should try Autoload

There's some info about it somewhere around here... :D

ronjonp

  • Needs a day job
  • Posts: 7531
Loading numerous lisp files without slowing CAD down
« Reply #7 on: May 16, 2005, 09:33:36 AM »
You might wanna use this to create the autoload lines if you have many to do.

http://www.theswamp.org/phpBB2/viewtopic.php?p=52244#52244

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Crank

  • Water Moccasin
  • Posts: 1503
Loading numerous lisp files without slowing CAD down
« Reply #8 on: May 16, 2005, 09:44:51 AM »
Here is also some info about whitch goes where to optimize the booting of Autocad.
Vault Professional 2023     +     AEC Collection