How to combine 3 separate lisps into one dynamic lisp?

How to combine 3 separate lisps into one dynamic lisp?

fabi_rm94
Enthusiast Enthusiast
410 Views
3 Replies
Message 1 of 4

How to combine 3 separate lisps into one dynamic lisp?

fabi_rm94
Enthusiast
Enthusiast

Hello!

 

I have a request on how to combine the uploaded 3 lisps into one dynamic lisp. For example, I want users to be able to type "stdgen" and have one section of the code run, or if they type "kohlergen" or "extgen" instead, another section of the lisp would run, but all of the code lives within one file. 

 

Thanks!

0 Likes
411 Views
3 Replies
Replies (3)
Message 2 of 4

Kent1Cooper
Consultant
Consultant

Just paste the code from each file into a new .lsp file, one after another.  [You can omit the (vl-load-com) from the beginning of all but the first one you put in, and any of the sub-routines that are common to more than one command can be included only once, though if it's easier, you can leave all those duplications in.]  Load that one file that contains all three command definitions, and all three commands will be available.

Kent Cooper, AIA
0 Likes
Message 3 of 4

Sea-Haven
Mentor
Mentor

A POP menu example one lisp 3 tasks.

[Single Line Text]^c^c(load "XXX text") (C:XXXtextstyle)
[Multi Line Text]^c^c(load "XXX text") (C:XXXmtextstyle)
[Add Dimensions to Objects]^c^c(load "XXX text") (C:XXXdimstyle)

 

0 Likes
Message 4 of 4

komondormrex
Mentor
Mentor

hey,

untested joined version. based on initial kword asking and setting corresponding variables.

 

0 Likes