How to retrieve column cross section angle to BasisX or BasisY

How to retrieve column cross section angle to BasisX or BasisY

Anonymous
Not applicable
619 Views
2 Replies
Message 1 of 3

How to retrieve column cross section angle to BasisX or BasisY

Anonymous
Not applicable

I'm trying to place a family instance that line up with the rotated columns.

but how can I retrieve column cross section angle to the BasisX? and I don't want to change the column to slanted

any suggestions? Thanks

 

0 Likes
620 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

As far as I know, the column always has a valid location.

 

Possibly, it is a location point for a vertical column and a location line when not vertical.

 

In either case, you can easily calculate the angle from that data: 90 degrees for a point location, and using the location line start and end points in the other case.



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks for your tips.

I eventually figure this out by using the Revit Lookup.

 

LocationPointloPoint = fi.Location as LocationPoint;
double poRota = loPoint.Rotation;

 

This returns exactly what i need.

 

 

0 Likes