.NET

.NET

Reply
Distinguished Contributor
matt_1ca
Posts: 374
Registered: ‎09-29-2000
Message 1 of 3 (181 Views)

Using a point created by Lisp inside my .NET program

181 Views, 2 Replies
04-18-2010 11:35 PM
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
*Tony Tanzillo
Message 2 of 3 (181 Views)

Re: Using a point created by Lisp inside my .NET program

04-19-2010 04:36 PM 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
Distinguished Contributor
matt_1ca
Posts: 374
Registered: ‎09-29-2000
Message 3 of 3 (181 Views)

Re: Using a point created by Lisp inside my .NET program

04-22-2010 06:24 AM 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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.