Author Topic: Loading lisp dialog box with description of lisp function  (Read 5452 times)

0 Members and 1 Guest are viewing this topic.

TJAM51

  • Guest
Loading lisp dialog box with description of lisp function
« on: September 03, 2004, 07:51:28 AM »
I came across a dialog box for loading lisp routines that had a column that described what the lisp routine would do. It was constructed differently from the appload dialog box found in Autocad. I am using release 2000+. Has anyone ever come across this routine or another similar to it?



Thanks

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Loading lisp dialog box with description of lisp function
« Reply #1 on: September 03, 2004, 08:41:55 AM »
Perhaps if you posted an example of the code.
I for one am not sure what you are asking or what
part you consider different.

CAB
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.

TJAM51

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #2 on: September 03, 2004, 08:53:31 AM »
I came across a routine that had a dialog box. The cad user would go and compile all the routines he or she had located on their hard drive. One the routines had been compiled there was a place where the function or what the routine would actually do next to the name of the lisp routine.


     Routine                                Function                Load
 
     Balloon                            creates a balloon       (   )
                                            callout  

The routines would be in alphbetical order. If a user did not wish to load all their routines at one time to save memory especially when there was numerous routines then this box could be prompted and used to laod the routines. The nice thing about this box was 1. once the location was stored you never had to go back through several levels of directories such as the appload box does and 2. you had a description of what each routine does. This would be good for new people learning what routines the company might have.

daron

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #3 on: September 03, 2004, 08:59:02 AM »
Don't know it, but I once wrote a routine that took all the lisps I listed in a txt file, went through each line of each lisp and when it found a (defun c:, it wrote the following characters until it found a space to another txt file. At the same time it would write the name of each lisp file before it would write the lisps name. That way I knew where to find any that I questioned. No instructions though.

TJAM51

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #4 on: September 03, 2004, 09:00:50 AM »
The routine that I am talking about actually loads the routines. Sorry I may not have made myself clear. Basically it would replace the appload box.

daron

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #5 on: September 03, 2004, 09:03:00 AM »
I can't imagine using any pre-2000 appload box. I like the one that's currently in autocad, but if you find the other one you're talking about, I would like to see it.

TJAM51

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #6 on: September 03, 2004, 09:05:18 AM »
I hate it when I come across a file, look at it, think its cool, and at the time not have a need for it and then one day need it......AHHHHH. I need to keep better notes on files I come across

daron

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #7 on: September 03, 2004, 09:09:03 AM »
BTDT! (Been There, Done That)

TJAM51

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #8 on: September 03, 2004, 09:10:44 AM »
I have tons of routines that I have saved to disk and never used them believing that YES one day I will use them...but those you have a real need for in the future I never save ha ha :lol:

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Loading lisp dialog box with description of lisp function
« Reply #9 on: September 03, 2004, 09:42:32 AM »
This is the closest I have to a LISP file cataloger.
I would be interedted in yours daron .

Seems like you need a special description line for the routine to pick up.
Something like ;*; and the routine would capture the comment and the file
name & location. Maybe more than one ;*; line at the header location.


You may want to create a routine to add the comment line if it doesn't exist
based on the (defun c:  found in the file?

Just thinking aloud here. :)



Code: [Select]
;Finds all lisp files, sorts and writes first two lines to screen.
;Type SCANLSP2.
;******************************************************************************
;  "SCANLSP2"                       Public Domain,   by Ron W. Lloyd    11/7/89
;  This is version 2.0 of SCANLISP, a lisp files manager.
;  This routine writes the names of all .LSP files in a given directory to
;  the screen with two lines of comments for each file. The comments are the
;  first two lines of the file, assuming that most files are briefly
;  commented there. If not, you can add your own as above.  The files are
;  alphabetized and you are given the opportunity to load, delete, or read
;  any file or exit the routine.
;
;  Note: Routine redefines *error*. You may wish to reset it later by typing
;  (setq *error* #err) at your command prompt, if you abort this routine.
;******************************************************************************
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.

TJAM51

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #10 on: September 03, 2004, 11:36:31 AM »
I receive an error reading


; error: An error has occurred inside the *error* functionbad argument type:
streamp nil

daron

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #11 on: September 03, 2004, 01:20:16 PM »
I remember modifying mine back before I moved, so I'm not sure it'll work right, but I do intend to update it so all I have to do his tell it which folder to read from, so I don't have to create a text file first. I'll see if I can dig up the original version sometime this weekend on my home computer.

PDJ

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #12 on: September 03, 2004, 01:23:30 PM »
w00h00!!! I FOUND it!!

I think I have just the file you're looking for.  Try this: http://theswamp.org/lilly.pond/PDJ/lib.lsp

TJAM51

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #13 on: September 07, 2004, 10:27:30 AM »

PDJ

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #14 on: September 07, 2004, 01:56:20 PM »
Did the one I found work for you or what?

TJAM51

  • Guest
Loading lisp dialog box with description of lisp function
« Reply #15 on: September 07, 2004, 03:01:17 PM »
Yes it did thanks