Tuesday, March 3, 2015

Rotation Angle Indicator by Dynamo

Most of the families in Revit can be easily rotated from each placement. But Revit can't track each rotation angle. Basically, you have to measure each of them if necessary.

I know there are a few suggestions about this issue. Here is mine.

Rotation Angle Indicator

This dyn finds the rotation angles of each instance of selected family type based on a selected standard one.

Watch how it works

Approach Concept

1. Find a same horizontal(parallel to xy-plane) curve(line) from each of instances.
2. Convert them as vectors.
3. Normalize the vectors and convert them to points
4. Create Arcs using each of points with origin as a center point.
5. Query each angle of created arcs.
6. Find reverse rotation angle and convert them to the same direction angles.
   (Sweep angles of arcs from above step can't be bigger than 180˚. So need other way to find reverse direction cases.)
7. Convert them to Radians.
8. Apply Radians to shared parameters of family instances.

You can download the dyn here as usual.

Enjoy. :)

No comments:

Post a Comment