From 44f1f4c75465aa4a86672345724367013aac3f77 Mon Sep 17 00:00:00 2001 From: Jeremy Tammik Date: Wed, 19 Nov 2014 12:47:50 +0100 Subject: [PATCH] implemented GetSortedLevels --- BuildingCoder/BuildingCoder/CmdCollectorPerformance.cs | 10 ++++++++++ BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) 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" )]