Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12 from speckleworks/column-rotation-hotfix
Browse files Browse the repository at this point in the history
hotifx column rotations
  • Loading branch information
didimitrie authored Nov 4, 2019
2 parents 3713ca8 + 027058b commit 06cd30e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SpeckleElementsRevit/ConversionRoutines/Column.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ public static SpeckleObject ColumnToSpeckle( Autodesk.Revit.DB.FamilyInstance my
}
else if ( myFamily.Location is LocationCurve )
{
var myAngle = myFamily.get_Parameter( BuiltInParameter.STRUCTURAL_BEND_DIR_ANGLE ).AsDouble(); // Stands for cross-section rotation!
var rads = UnitUtils.ConvertFromInternalUnits( myAngle, DisplayUnitType.DUT_RADIANS );
myColumn.Properties[ "__rotation" ] = rads;

// TODO: Figure this column rotation shit out.
// For now... Do nothing??
//var t = myFamily.GetTotalTransform();
Expand Down

0 comments on commit 06cd30e

Please sign in to comment.