Hi,
I'm having trouble getting the angle of 2 selected points when the UCS is different from the World.
//Angle à partir des 2 points
Matrix3d ucsmtx = doc.Editor.CurrentUserCoordinateSystem;
CoordinateSystem3d ucs = ucsmtx.CoordinateSystem3d;
Plane ucsplane = new Plane(ucs.Origin, ucs.Xaxis, ucs.Yaxis);
Vector3d vec = pntFin - selPnt;
double selAngle = vec.AngleOnPlane(ucsplane);
This is the part of the code that give me the angle, it's working fine with UCS World.
I rarely work with Matrix3d, Plane, Vector3D... maybe it's not difficult, I'm just not used to it.
Thanks for any help !