diff --git a/BuildingCoder/BuildingCoder/CmdUnrotateNorth.cs b/BuildingCoder/BuildingCoder/CmdUnrotateNorth.cs index 716baa8c..7b626003 100644 --- a/BuildingCoder/BuildingCoder/CmdUnrotateNorth.cs +++ b/BuildingCoder/BuildingCoder/CmdUnrotateNorth.cs @@ -69,6 +69,27 @@ public Result Execute( UIDocument uidoc = app.ActiveUIDocument; Document doc = uidoc.Document; + #region Determine true north rotation + + Element projectInfoElement + = new FilteredElementCollector(doc) + .OfCategory(BuiltInCategory.OST_ProjectBasePoint) + .FirstElement(); + + BuiltInParameter bipAtn + = BuiltInParameter.BASEPOINT_ANGLETON_PARAM; + + Parameter patn = projectInfoElement.get_Parameter( + bipAtn ); + + double atn = patn.AsDouble(); + + Debug.Print( + "Angle to north from project info: {0}", + Util.AngleString( atn ) ); + + #endregion // Determine true north rotation + ElementSet els = uidoc.Selection.Elements; if( 1 != els.Size ) diff --git a/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs b/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs index 207e35ae..4603e33c 100644 --- a/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs +++ b/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs @@ -36,6 +36,7 @@ // 2014-05-14 2015.0.110.0 CmdViewsShowingElements // 2014-07-21 2015.0.110.1 AddFaceBasedFamilyToLinks // 2014-08-19 2015.0.110.2 removed obsolete API usage: reduced warning count from 71 to 67 +// 2014-08-20 2015.0.110.3 added code in CmdUnrotateNorth to determine angle to north from project base point // -[assembly: AssemblyVersion( "2015.0.110.2" )] -[assembly: AssemblyFileVersion( "2015.0.110.2" )] +[assembly: AssemblyVersion( "2015.0.110.3" )] +[assembly: AssemblyFileVersion( "2015.0.110.3" )]