Message 1 of 3
Unable to align tags with accurate angle in elevations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am able to align tags in floors and sections with accurate angle but not able to align tags with accurate angle in elevations(Revit 2020).
double yValue;
int Angle = 60; //To align tag with 60 degrees.
XYZ elboworigin = uiApp.ActiveUIDocument.Selection.PickPoint("Pick the Elbow");
XYZ leaderEndValue = tag.LeaderEnd;
yValue = (elboworigin.Z - leaderEndValue.Z)/(Angle + leaderEndValue.Y) //To find y value for elbow position
XYZ ElbowPosition = new XYZ(0, yValue, elboworigin.Z);
tag.LeaderElbow = ElbowPosition;
XYZ headerPnt = new XYZ(0, yValue, elboworigin.Z);
tag.TagHeadPosition = headerPnt;
for all floors and sections above code is working fine but when comes to elevations angle is not matching.