diff --git a/BuildingCoder/BuildingCoder/CmdCollectorPerformance.cs b/BuildingCoder/BuildingCoder/CmdCollectorPerformance.cs index 773e3e0e..b88deeec 100644 --- a/BuildingCoder/BuildingCoder/CmdCollectorPerformance.cs +++ b/BuildingCoder/BuildingCoder/CmdCollectorPerformance.cs @@ -287,6 +287,16 @@ class CmdCollectorPerformance : IExternalCommand { Document _doc; + #region Retrieve a sorted list of all levels + IOrderedEnumerable GetSortedLevels( Document doc ) + { + return new FilteredElementCollector( doc ) + .OfClass( typeof( Level ) ) + .Cast() + .OrderBy( lev => lev.Elevation ); + } + #endregion // Filter for detail curves + #region Filter for concrete ramps IEnumerable findConcreteRamps( Document doc ) { diff --git a/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs b/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs index b989e55f..50fc648b 100644 --- a/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs +++ b/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs @@ -63,6 +63,7 @@ // 2014-11-14 2015.0.116.5 implemented GetInstancesIntersectingElement // 2014-11-14 2015.0.116.5 radical rewrite of SelectSingleElement, GetSingleSelectedElement, GetSelectedElementsOrAll to clean up and eliminate obsolete API usage // 2014-11-14 2015.0.116.5 radical rewrite of HasRequestedType, which probably never previously worked as intended +// 2014-11-19 2015.0.116.6 implemented GetSortedLevels // -[assembly: AssemblyVersion( "2015.0.116.5" )] -[assembly: AssemblyFileVersion( "2015.0.116.5" )] +[assembly: AssemblyVersion( "2015.0.116.6" )] +[assembly: AssemblyFileVersion( "2015.0.116.6" )]