diff --git a/src/Honeybee_Honeybee.py b/src/Honeybee_Honeybee.py index 0b335ff2..4e551c81 100644 --- a/src/Honeybee_Honeybee.py +++ b/src/Honeybee_Honeybee.py @@ -47,7 +47,7 @@ ghenv.Component.Name = "Honeybee_Honeybee" ghenv.Component.NickName = 'Honeybee' -ghenv.Component.Message = 'VER 0.0.61\nFEB_05_2017' +ghenv.Component.Message = 'VER 0.0.61\nFEB_16_2017' ghenv.Component.IconDisplayMode = ghenv.Component.IconDisplayMode.icon ghenv.Component.Category = "Honeybee" ghenv.Component.SubCategory = "00 | Honeybee" @@ -1690,9 +1690,10 @@ def writeRADAndMaterialFiles(self, originalHBObjects, subWorkingDir, radFileName if srf.hasChild: # collect the custom material informations for childSrf in srf.childSrfs: + if childSrf.RadMaterial!=None: customRADMat, customMixFunRadMat = self.hb_RADMaterialAUX.addRADMatToDocumentDict(childSrf, customRADMat, customMixFunRadMat) - + if not srf.isPlanar or len(srf.childSrfs) > 1: geoRadFile.write(self.RADNonPlanarChildSurface(srf)) @@ -2396,6 +2397,7 @@ def shiftList(self, list, number = 1): def getsurfaceStr(self, surface, count, coordinates): if surface.RadMaterial != None: surface.construction = surface.RadMaterial + elif not hasattr(surface, 'construction'): if not hasattr(surface, 'type'): @@ -2439,7 +2441,7 @@ def RADSurface(self, surface): glzCoordinateLists = surface.extractGlzPoints(True) for glzCount, glzCoorList in enumerate(glzCoordinateLists): # glazingStr - fullStr = fullStr + self.getsurfaceStr(surface.childSrfs[0], glzCount, glzCoorList) + fullStr = fullStr + self.getsurfaceStr(surface.childSrfs[glzCount], glzCount, glzCoorList) # shift glazing list glzCoorList = self.shiftList(glzCoorList) @@ -2491,7 +2493,7 @@ def RADNonPlanarChildSurface(self, surface): coordinatesList = [coordinatesList] for glzCount, glzCoorList in enumerate(coordinatesList): # glazingStr - fullStr = fullStr + self.getsurfaceStr(surface.childSrfs[0], glzCount, glzCoorList) + fullStr = fullStr + self.getsurfaceStr(surface.childSrfs[glzCount], glzCount, glzCoorList) return fullStr class hb_WriteRADAUX(object): diff --git a/userObjects/Honeybee_Honeybee.ghuser b/userObjects/Honeybee_Honeybee.ghuser index 08e4a856..29a09745 100644 Binary files a/userObjects/Honeybee_Honeybee.ghuser and b/userObjects/Honeybee_Honeybee.ghuser differ