Skip to content

Commit

Permalink
implemented GetSortedLevels
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Nov 19, 2014
1 parent 6ef5769 commit 44f1f4c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions BuildingCoder/BuildingCoder/CmdCollectorPerformance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,16 @@ class CmdCollectorPerformance : IExternalCommand
{
Document _doc;

#region Retrieve a sorted list of all levels
IOrderedEnumerable<Level> GetSortedLevels( Document doc )
{
return new FilteredElementCollector( doc )
.OfClass( typeof( Level ) )
.Cast<Level>()
.OrderBy( lev => lev.Elevation );
}
#endregion // Filter for detail curves

#region Filter for concrete ramps
IEnumerable<Element> findConcreteRamps( Document doc )
{
Expand Down
5 changes: 3 additions & 2 deletions BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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" )]

0 comments on commit 44f1f4c

Please sign in to comment.