MLeader label
= new MLeader
();MText mText
= new MText
();//...
label.MText = mText;
//...
// rotate the mtext to UCS
Vector3d xdir = (Point3d)Application.GetSystemVariable("UCSXDIR") - Point3d.Origin;
double ucsRotation = Vector3d.XAxis.GetAngleTo(xdir, Vector3d.ZAxis);// this seems to be returning the correct angle
// none of these work :(
mText.Rotation = ucsRotation; // nope
mText.TransformBy(Matrix3d.Rotation(ucsRotation, Vector3d.ZAxis, textPoint)); // nada
int idx = label.AddLeaderLine(leaderPoint);
label.SetDogleg(idx,xdir); // nothing