Load Lisp through .net at Startup

Load Lisp through .net at Startup

Anonymous
Not applicable
2,566 Views
10 Replies
Message 1 of 11

Load Lisp through .net at Startup

Anonymous
Not applicable
Dear Members,

I have wrote some routine in AutoLISP/ VisualLISP. I would like to distribute it to my colleagues in a form of setup.

I humbly request to please share some code in vb/c# .net which contains this AutoLISP syntax (progn (vl-load-com) (vl-load-all "lisppath")).

And also I will be trying to make a setup file which will add registry values for the above assembly for demand loading at starup which will load the lisp file.

Any help would be highly appreciated.

Best Regards
0 Likes
Accepted solutions (1)
2,567 Views
10 Replies
Replies (10)
Message 3 of 11

Anonymous
Not applicable
Thanks for your Reply but will it work on AutoCAD 2008-2009? As my company has old versions too.

Is there any link relates the code to load lisp in .net.

Regards
0 Likes
Message 4 of 11

Ajilal.Vijayan
Advisor
Advisor

No, the auto loader will not work with 2008-2009 series.

It will work from 2012 series.

0 Likes
Message 5 of 11

Anonymous
Not applicable

Hi

 

I have found this code which is similar to my requirement but it requires TLOD command to run and what my requirement is to load the lisp without running the command TLOD.

 

http://forums.autodesk.com/t5/NET/load-and-run-lsp-from-C/td-p/2547034

 

Please guide me someone.

 

Thanks

0 Likes
Message 6 of 11

dgorsman
Consultant
Consultant

Far, far easier to load and manage LISP through LISP, and call LISP functions defined in dotNET.  Try to call "down" from dotNET to LISP is usually better avoided in favor of rebuilding the LISP content as dotNET.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
Message 7 of 11

Anonymous
Not applicable
Is it not at all possible to just load file into autocad via .net.
I found about SendStringtoExecute() but not sure how to use it.

I agree it should be avoided but for a single line or two should not be that difficult for .net

Thanks
0 Likes
Message 8 of 11

dgorsman
Consultant
Consultant

A single line or two is one of the few areas where LISP shines over dotNET.  If all you want is a couple of function calls like (vl-load-com) they can be stuffed into the acaddoc.lsp file without needing to build, demand-load, modify the registry, or anything.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
Message 9 of 11

Anonymous
Not applicable
Is it possible to edit acaddoc.lsp file or acad.lsp file through setup programs like installshield. If so can you give some links.
0 Likes
Message 10 of 11

owenwengerd
Advisor
Advisor
Accepted solution

Perhaps this will be of interest:

Building a commercial grade lisp plugin installer in 5 easy steps

 

--
Owen Wengerd
ManuSoft
Message 11 of 11

Anonymous
Not applicable
Thats really great. Thanks a bunch to you Mr. owenwengerd.
0 Likes