Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Slanted text Note

0 REPLIES 0
Reply
Message 1 of 1
sanjaymann
357 Views, 0 Replies

Slanted text Note

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.

 

textnote.png

 

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community