How to find orientation of a column?

How to find orientation of a column?

Anonymous
Not applicable
1,577 Views
3 Replies
Message 1 of 4

How to find orientation of a column?

Anonymous
Not applicable
How is the rotation angle for a skewed framing member accessed?

For example if a W shaped beam is to be placed in a floor system with weak axis loaded, i.e. rotated 90 degrees, how is that rotation angle retrieved from the API data?
0 Likes
1,578 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
To get the rotation angle for a column, get the Location from the FamilyInstance, which will be a LocationPoint for columns. From the LocationPoint, you can get the Rotation (which is in radians).

I'm not sure how to do it for beams, whose Location will be LocationCurve.
0 Likes
Message 3 of 4

Anonymous
Not applicable

Exactly. To be precise check out following code:

 

FilteredElementCollector collector = new FilteredElementCollector(Global.doc()).WhereElementIsNotElementType().OfCategory(BuiltInCategory.OST_StructuralColumns); // select all structural columns
List<Element> allcolumnList = collector.ToList(); // select all structural columns as a List
LocationPoint locPoint;
locPoint = columnList[i].Location as LocationPoint;
rotation = locPoint.Rotation;
0 Likes
Message 4 of 4

jlpgy
Advocate
Advocate

Hi:

FamilyInstance.GetTransform() can return a Transform which stands for the transformation from Family coordinate system to .rvt project coordinate system.

LocationPoint.Rotation is not always what you really want. For example, strctural columns, which are not necessarily vertical. Besides, structural columns has Location property as <LocationCurve>, which has not Rotation property.

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com
0 Likes