Lisp Routine Locations

Discussion in 'AutoCAD' started by chall73, Apr 4, 2005.

  1. chall73

    chall73 Guest

    Question.
    What is the best way to set up the location for lisp files? Currently the trend in my small company is to put all lisp routines in one file. I just started to learn about lisp routines and this seemed fine at first because everything was together but now when I try to incorporate stuff that I write it messes it up.

    Thoughts
     
    chall73, Apr 4, 2005
    #1
  2. chall73

    Bob Quinn Guest

    definately split up and put into directories, this will help you organize.
    Use a common library file that loads each file on demand to save on
    memory.....


    trend in my small company is to put all lisp routines in one file. I just
    started to learn about lisp routines and this seemed fine at first because
    everything was together but now when I try to incorporate stuff that I write
    it messes it up.
     
    Bob Quinn, Apr 5, 2005
    #2
  3. chall73

    Warren Trost Guest

    I would recommend making the folder outside of AutoCAD so they don't get
    deleted in an upgrade or uninstall. I recommend using C:\CLISP for custom
    lisp. I use C:\WLT\LISP14A, 14B, 15, 16 as I have approx 1500+ in the first
    two and my DOS file manager doesn't like more than that. Yes, I still like
    DOS for some types of useage. I also put all of my stuff under my initials
    as it is much easier to erase my stuff if I change companies.


    trend in my small company is to put all lisp routines in one file. I just
    started to learn about lisp routines and this seemed fine at first because
    everything was together but now when I try to incorporate stuff that I write
    it messes it up.
     
    Warren Trost, Apr 5, 2005
    #3
  4. chall73

    Tim Decker Guest

    Here is a sample from our acaddoc.lsp, that we have located in a directory
    far far away...

    (defun C:ATR ()
    (load "ATR")
    (C:ATR)
    )
    (defun C:RV ()
    (load "RV")
    (C:RV)
    )
    (defun C:HOOK ()
    (load "HOOK")
    (C:HOOK)
    )

    these functions allow us to keep all of our lisp in their own separate
    files, and load them on demand, as you can see, very simple coding.
     
    Tim Decker, Apr 5, 2005
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.