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

Using a point created by Lisp inside my .NET program

2 REPLIES 2
Reply
Message 1 of 3
matt_1ca
284 Views, 2 Replies

Using a point created by Lisp inside my .NET program

Wondering what is the easiest way to grab a point that a lisp code generated and use it from inside the .NET program I am building?

I have inherited a legacy system wherein somewhere deep in its execution it does a call to select an entity and grab the point of selection like this:

(setq ptData (cadr (entsel)))

I need to grab ptData and put it into a point3d which I have declared inside .NET so that I can use it in my program ... is it possible?

Thank you so much for all the help you could give on this matter.

Gratefully,
Matt
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: matt_1ca

You can use the LispFunction attribute to define a
method in a .NET class, that can be called from LISP
and passed arguments.

There is plenty already written about doing that here,
and in the online docs.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6375292@discussion.autodesk.com...
Wondering what is the easiest way to grab a point that a lisp code generated and
use it from inside the .NET program I am building?

I have inherited a legacy system wherein somewhere deep in its execution it does
a call to select an entity and grab the point of selection like this:

(setq ptData (cadr (entsel)))

I need to grab ptData and put it into a point3d which I have declared inside
.NET so that I can use it in my program ... is it possible?

Thank you so much for all the help you could give on this matter.

Gratefully,
Matt
Message 3 of 3
matt_1ca
in reply to: matt_1ca

Hello Tony,

Looks like the integration of the two languages is not as bad as I first thought ...

This LispFunction looks really promising and potentially could help me alot with
our legacy system.

Thanks,
Matt

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