Hi,
Can you guys tell me where I can access matrix3dzero and all the other matrix functions in dotNET?
Are these functions detailed in vba help still the best way to manipulate matrices?
Thanks
Sorry to trouble you with what is probably a dumb question, but how is it implemented?
If I have:
BCOM.Matrix3d rotation = BCOM.Application.Matrix3dZero(); app.CreateTextElement1(null, "hello", ref originPt, ref rotation);
the error is:
An object reference is required for the non-static field, method, or property. 'Bentley.Interop.MicroStationDGN.Application.Matrix3dZero()'
I'm sure this is fundamental C# but I can't find a solution. Matrix3dZero() returns a zero value of type Matrix3D, so how do I assign that to rotation?
Steve: Matrix3dZero() returns a zero value of type Matrix3D …
Matrix3dZero() returns a zero value of type Matrix3D …
Matrix3d is a User-Defined Type (UDT); in other words, pure data. Matrix3dZero() returns a Matrix3d with all elements zero, which is of little practical use.
For a zero rotation, you need to pass an identity matrix, provided by method Matrix3dIdentity.
Regards, Jon Summers LA Solutions
Hi Jon,
Thanks, I didn't realise that.
Steve