Combine .NET API and LISP routines

Combine .NET API and LISP routines

BestFriendCZ
Advocate Advocate
567 Views
2 Replies
Message 1 of 3

Combine .NET API and LISP routines

BestFriendCZ
Advocate
Advocate

I have question for experienced programmers. i think i know answer but i have to know for sure😊 Is there any way how to use lisp routines without active window. We have large project which uses lots of .NET API.

 

We prefer to do all operations without open document (db.ReadDwgFile…). On another side our users uses lots of lisp routines and they want to use this routines in some our functions. So... is there any way? or we have to rewrite all lisp routines to .NET API?

Thank you for your opinion

...
0 Likes
Accepted solutions (1)
568 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant
Accepted solution

Hi,

 

As far as I know, you cannot run a LISP in a "side database". LISP only works in document context.

In any case, calling LISP from .NET is rarely a good solution, it often brings more problems than it helps. Porting the LISP routines to .NET should be a better choice.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3

BestFriendCZ
Advocate
Advocate

thanks you for information _gile

...
0 Likes