Hi,
I am creating a text note :
XYZ origin = curve.get_EndPoint(0);
XYZ baseVec = XYZ.BasisX;
XYZ upVec = XYZ.BasisZ;
double textSize = curve.Length / 10;
double lineWidth = curve.Length / 50;
TextAlignFlags textAlign = TextAlignFlags.TEF_ALIGN_TOP;
TextNote text = doc.Create.NewTextNote(view, origin1, baseVec, upVec, lineWidth, textAlign, strText);
Leader noteLeader = text.AddLeader(TextNoteLeaderTypes.TNLT_STRAIGHT_R);
noteLeader.Elbow = new XYZ(midpoint.X, noteLeader.Elbow.Y, midpoint.Z);
noteLeader.End = midpoint;
But the text note comes as slanted whereas I want it to come as straight.