From 04ba618851c4fc0eb3541096dbf29f57cc199b50 Mon Sep 17 00:00:00 2001 From: Elcin Date: Thu, 4 Jun 2015 12:19:20 -0400 Subject: [PATCH] #90 Skylight Support --- ...orDynamo_ex1b_CreateEnergyModelAndSetSurfaceParams.dyn | 4 ++-- ...isForDynamo_ex1c_CreateEnergyModelAndSetZoneParams.dyn | 8 ++++---- src/EnergyAnalysisForDynamo/PrepareEnergyModel.cs | 4 +++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/exampleFiles/EnergyAnalysisForDynamo_ex1b_CreateEnergyModelAndSetSurfaceParams.dyn b/exampleFiles/EnergyAnalysisForDynamo_ex1b_CreateEnergyModelAndSetSurfaceParams.dyn index 5757212..b19e09c 100644 --- a/exampleFiles/EnergyAnalysisForDynamo_ex1b_CreateEnergyModelAndSetSurfaceParams.dyn +++ b/exampleFiles/EnergyAnalysisForDynamo_ex1b_CreateEnergyModelAndSetSurfaceParams.dyn @@ -1,4 +1,4 @@ - + @@ -28,7 +28,7 @@ - + diff --git a/exampleFiles/EnergyAnalysisForDynamo_ex1c_CreateEnergyModelAndSetZoneParams.dyn b/exampleFiles/EnergyAnalysisForDynamo_ex1c_CreateEnergyModelAndSetZoneParams.dyn index f161dd3..0f09d02 100644 --- a/exampleFiles/EnergyAnalysisForDynamo_ex1c_CreateEnergyModelAndSetZoneParams.dyn +++ b/exampleFiles/EnergyAnalysisForDynamo_ex1c_CreateEnergyModelAndSetZoneParams.dyn @@ -1,4 +1,4 @@ - + @@ -11,15 +11,15 @@ - + - - + + diff --git a/src/EnergyAnalysisForDynamo/PrepareEnergyModel.cs b/src/EnergyAnalysisForDynamo/PrepareEnergyModel.cs index 8f620d5..a9b87a3 100644 --- a/src/EnergyAnalysisForDynamo/PrepareEnergyModel.cs +++ b/src/EnergyAnalysisForDynamo/PrepareEnergyModel.cs @@ -277,7 +277,7 @@ public static Dictionary CreateByMass(AbstractFamilyInstance Mas /// /// The ElementId of the zone to inspect. Get this from the PrepareEnergyModel > CreateFrom* > ZoneIds output list /// - [MultiReturn("WallSurfaceIds", "IntWallSurfaceIds", "GlazingSurfaceIds", "FloorSurfaceIds", "RoofSurfaceIds", "SpaceType", "conditionType")] + [MultiReturn("WallSurfaceIds", "IntWallSurfaceIds", "GlazingSurfaceIds", "FloorSurfaceIds", "RoofSurfaceIds", "SkylightSurfaceIds", "SpaceType", "conditionType")] public static Dictionary DecomposeZone(ElementId ZoneId) { // local variables @@ -304,6 +304,7 @@ public static Dictionary DecomposeZone(ElementId ZoneId) List outGlazingSurfaceIds = Helper.GetSurfaceIdsFromZoneBasedOnType(zone, "Mass Glazing"); List outFloorSurfaceIds = Helper.GetSurfaceIdsFromZoneBasedOnType(zone, "Mass Floor"); List outRoofSurfaceIds = Helper.GetSurfaceIdsFromZoneBasedOnType(zone, "Mass Roof"); + List outSkylightSurfaceIds = Helper.GetSurfaceIdsFromZoneBasedOnType(zone, "Mass Skylight"); // Revit consider both floor and ceiling and floor so this one is out! // List outCeilingSurfaceIds = Helper.GetSurfaceIdsFromZoneBasedOnType(zone, "Mass Interior Ceiling"); @@ -321,6 +322,7 @@ public static Dictionary DecomposeZone(ElementId ZoneId) {"GlazingSurfaceIds", outGlazingSurfaceIds}, {"FloorSurfaceIds", outFloorSurfaceIds}, {"RoofSurfaceIds", outRoofSurfaceIds}, + {"SkylightSurfaceIds", outSkylightSurfaceIds}, {"SpaceType", spaceType}, {"conditionType", conditionType} };