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