Author Topic: Lisp routine loader with slides  (Read 17724 times)

0 Members and 1 Guest are viewing this topic.

TJAM51

  • Guest
Lisp routine loader with slides
« on: September 15, 2004, 12:55:01 PM »
I am seeking some way and I realize it may require work of being able to pick from several slides and run a lisp routine. I do not wish to load any additional menus.  The following site has a outside routine that allows the insertion of blocks. I was wondering if the same principal could be applied to lisp routines....



http://www.jefferypsanders.com/autolisp_library.html

CADaver

  • Guest
Lisp routine loader with slides
« Reply #1 on: September 15, 2004, 12:56:32 PM »
I'm not real sure I understand what it is you're after, but will APPLOAD help?

M-dub

  • Guest
Lisp routine loader with slides
« Reply #2 on: September 15, 2004, 12:59:04 PM »
I'm pretty sure we talked about this before...

Someone else will have to confirm this, but I don't know if it's possible to have a slide library WITHOUT modifying the menu...


Anyone???

TJAM51

  • Guest
Lisp routine loader with slides
« Reply #3 on: September 15, 2004, 01:20:36 PM »
What I seek is the ability to load lisp routines from a set of slides representing the lisp rotuine. It would require a dcl file and some form of slide library similar to the site mentioned earlier in this post. Does this make sense. I am attempting to avoid any and all menu loading

TJAM51

  • Guest
Lisp routine loader with slides
« Reply #4 on: September 15, 2004, 01:29:00 PM »
http://www.jefferypsanders.com/autolisp_library.html


Go to this site. You will see that these are lba files (slide library) files that operate independently from the menu

M-dub

  • Guest
Lisp routine loader with slides
« Reply #5 on: September 15, 2004, 01:42:33 PM »
As far as I know, the code behind the Insert Block button would be something like:
^C^C-INSERT C:/Directory/drawing.dwg;
So yes, I think what you're after is possible.

TJAM51

  • Guest
Lisp routine loader with slides
« Reply #6 on: September 15, 2004, 01:45:14 PM »
So all that would need to be done is to replace it with (load c:\xxx.lsp) for the lisp routine

TJAM51

  • Guest
Lisp routine loader with slides
« Reply #7 on: September 15, 2004, 01:49:41 PM »
I am going contract. Companies hate to have their menus modififed or have another menu loaded on top or on the side of the orginal. This way all I have to do is maintain a directory with the slide libraries and the lisp rotuines. Easy to load and no way to step on anything else.

M-dub

  • Guest
Lisp routine loader with slides
« Reply #8 on: September 15, 2004, 01:53:48 PM »
> So all that would need to be done is to replace it with (load c:\xxx.lsp) for the lisp routine

As far as I know...This works for me...
Code: [Select]
^C^C(load"O:/Drawings/Menus-Blocks/LISP/MCR.lsp") COPROT;

>Easy to load and no way to step on anything else.

Done properly, a partial menu is just as easy, but I know I'm not going to be able to convince you to do that, so I'll stop now...  ;)

TJAM51

  • Guest
Lisp routine loader with slides
« Reply #9 on: September 15, 2004, 01:58:38 PM »
But would that not only apply to one lisp routine. The blocks that are listed in the *. LBA files have a path for the block as well as the slide. This information is picked up by the rest of the routines. This allows many many blocks to be inserted by selecting the appropriate slide. What I am hoping is to have the ability to load numerous routines without having numerous dcl files. Does this make sense?

M-dub

  • Guest
Lisp routine loader with slides
« Reply #10 on: September 15, 2004, 02:14:29 PM »
This might require a phone call...But, yes, I'm pretty sure that's possible....if I understand you correctly.  I don't have anything set up like you're talking about, but I have essentially the same thing in a toolbar flyout (which I've only recently started).  Here's my toolbar and below are the macros behind each button.  The macro is what you'd put behind each slide instead of inserting a block.  Imagine the slide as a bigger, highly detailed toolbar button.

LispRoutines

^C^C(load"O:/Drawings/Menus-Blocks/LISP/CASE.lsp") CASE;\\;u;;
^C^C(load"O:/Drawings/Menus-Blocks/LISP/MCR.lsp") COPROT;
^C^C(load"O:/Drawings/Menus-Blocks/LISP/MCR.lsp") MOVROT;
^C^C(load"O:/Drawings/Menus-Blocks/LISP/SL.lsp") SL;
^C^CAPPLOAD;

TJAM51

  • Guest
Lisp routine loader with slides
« Reply #11 on: September 15, 2004, 02:19:48 PM »
I have used many toolbars and I have plenty running right now. My serach is a way to have the same method without ever modifying or loading an additional menu. For whatever reason despite the fact the menu loading is named correctly I have always had some problem or another. When I came across this routine about insreting blocks I was seeking the same method but being able to use lisp routines as well. The nice thing about this method is that it requires outside loading with no interference with any menu.

TJAM51

  • Guest
Lisp routine loader with slides
« Reply #12 on: September 15, 2004, 02:22:05 PM »
One more really weird thing was that one company I worked for wanted all screens to look alike. So when I placed my toolbars in place I was throughly scolded for being non standard. With this method I can secretly load what I need without being chewed out.

M-dub

  • Guest
Lisp routine loader with slides
« Reply #13 on: September 15, 2004, 02:23:13 PM »
Agreed...
All you should have to do is replace the code that inserts the block with code that loads the lisp routine.

TJAM51

  • Guest
Lisp routine loader with slides
« Reply #14 on: September 15, 2004, 02:26:01 PM »
I understand that but if I did that with the name of the lisp routine would that not call up that routine no matter what slide I was on and this would require a separate file for every lisp routine I have. Maybe I am not understanding fully