Hi Dan,
I've been pulling my hair out wondering why I can't get this finished
then I started looking at what I was passing around, I removed all the managed params and it worked fine so I looked a bit closer at what the conversion macros provided in the sdk were doing and I was getting mixed results.
Anyway, I've decided to do these conversions myself so I started with the snippet above but it errors out with 'UnManagedObject is not a member of .....blah blah'
Here's what I have
AcGePoint3d* p1 = reinterpret_cast<AcGePoint3d*>(pnt1->UnmanagedObject.ToPointer());
where pnt1 is passed in as Point3d^
the macro from adsk is -
#define GETPOINT3D(point3d) (*reinterpret_cast<AcGePoint3d*>(&(point3d)))
If I pass it a straight Point3d it spits out 0,0,0 regardless of point data, if I use a Point3d^ it spits out something like 33568899003 (a memory address or garbage??).
So, how is the best way to convert it to native, thanks.