.NET

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

Using a point created by Lisp inside my .NET program

178 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 (178 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
Posts: 374
Registered: ‎09-29-2000
Message 3 of 3 (178 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community