Esempio n. 1
0
        public List <IBHoMObject> ReadSpaceSimulationResults()
        {
            List <IBHoMObject> spaceResults = new List <IBHoMObject>();

            int zoneIndex = 1;

            TSD.ZoneData zoneData = null;

            while ((zoneData = tsdDocument.SimulationData.GetBuildingData().GetZoneData(zoneIndex)) != null)
            {
                spaceResults.Add(BH.Engine.Adapters.TAS.Convert.FromTAS(zoneData, ProfileResultUnits, ProfileResultType, Hour, Day));
                zoneIndex++;
            }

            return(spaceResults);
        }
Esempio n. 2
0
        public List <IBHoMObject> ReadBuildingElementResults(List <string> ids = null)
        {
            List <IBHoMObject> buildingElementResults = new List <IBHoMObject>();

            int zoneIndex = 1;

            TSD.ZoneData zoneData = null;

            while ((zoneData = tsdDocument.SimulationData.GetBuildingData().GetZoneData(zoneIndex)) != null)
            {
                int             srfIndex = 1;
                TSD.SurfaceData srfData  = null;
                while ((srfData = zoneData.GetSurfaceData(srfIndex)) != null)
                {
                    buildingElementResults.Add(BH.Engine.Adapters.TAS.Convert.FromTAS(srfData, ProfileResultUnits, ProfileResultType, Hour, Day));
                    srfIndex++;
                }
                zoneIndex++;
            }

            return(buildingElementResults);
        }