.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Load Lisp through .net at Startup

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
Faisal.Cadd
1962 Views, 10 Replies

Load Lisp through .net at Startup

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
10 REPLIES 10
Message 3 of 11

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
Message 4 of 11

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

It will work from 2012 series.

Message 5 of 11

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

Message 6 of 11
dgorsman
in reply to: Faisal.Cadd

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.


Message 7 of 11
Faisal.Cadd
in reply to: Faisal.Cadd

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
Message 8 of 11
dgorsman
in reply to: Faisal.Cadd

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.


Message 9 of 11
Faisal.Cadd
in reply to: Faisal.Cadd

Is it possible to edit acaddoc.lsp file or acad.lsp file through setup programs like installshield. If so can you give some links.
Message 10 of 11
owenwengerd
in reply to: Faisal.Cadd

Perhaps this will be of interest:

Building a commercial grade lisp plugin installer in 5 easy steps

 

--
Owen Wengerd
ManuSoft
Message 11 of 11
Faisal.Cadd
in reply to: Faisal.Cadd

Thats really great. Thanks a bunch to you Mr. owenwengerd.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost