# Problems with HBZone and AddGlazing component - GrizzlyBear

**URL:** <https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122>\
**Category:** old forum\
**Created:** [July 21, 2014, 9:10am UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122 "2014-07-21T09:10:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnderGortazarBalerdi](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/andergortazarbalerdi/32/261_2.png) [@AnderGortazarBalerdi](https://discourse.ladybug.tools/u/AnderGortazarBalerdi)\
**Post date:** [July 21, 2014, 9:10am UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/1 "2014-07-21T09:10:00Z")

</div>

[![](http://api.ning.com:80/files/v4Ts6wAJqDqhkND1egTOT92kZcAQjyNqCOLu0L83FHUOu8QG*qcTMr-xdhSlwZeQ-CSR19AWsn7g*TGcsY5t7UoT-BdDipuu/GrizzlyBear.PNG?width=750)](http://api.ning.com:80/files/v4Ts6wAJqDqhkND1egTOT92kZcAQjyNqCOLu0L83FHUOu8QG*qcTMr-xdhSlwZeQ-CSR19AWsn7g*TGcsY5t7UoT-BdDipuu/GrizzlyBear.PNG)Hi,

First of all, thanks Mostapha, Chien Si and all for this great work.  
   
 I achieved to create gbXML files with GrizzlyBear, but I am having constant problems when creating HBZones with manually input windows. I manage to have proper HBZones with RADMaterials and EPConstructions (I’ve run Daylight calculation on them successfully), but when I plug the zones to GrizzlyBear this error appears:

**Solution exception:‘EPZone’ object has no attribute 'getCurrentLoads’**

In addition, something similar happens when I plug these HBZones to the newest decomposeByType component, althought it works properly when plugged to the previous version of it. This is what the error says:

**Solution exception:‘hb\_EPZoneSurface’ object has no attribute 'BC’**

Same thing with SetEPZoneConstruction:

**Solution exception:‘hb\_EPZoneSurface’ object has no attribute 'BCObject’**

Any thought?

Ander

[gbXML trial 03.gh](https://discourse.ladybug.tools/uploads/default/original/2X/5/5243f4baf9bc3f724b53dc8ea7301e85de5d432c.gh) (295 KB)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 21, 2014, 12:21pm UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/2 "2014-07-21T12:21:00Z")

</div>

Hi Ander,

I can’t check your file right now but this is probably happening because you are using some components with a newer version than Honeybee\_Honeybee in your file. If you update all the components with the latest version you won’t get this issue. You can download the new userObjects from Github.

Mostapha

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 21, 2014, 7:34pm UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/3 "2014-07-21T19:34:00Z")

</div>

Hi again Ander, Check the attached file for an updated version. I’m surprised how you put it all together without an example file. Good job. I made couple of changes in your workflow. e.g. when you have zones already created then you don’t need to input any floor height. -Mostapha

[gbXMLtrial03\_msr.gh](https://discourse.ladybug.tools/uploads/default/original/2X/6/67dc70f434d6b3d3fdc0ef59b694fe954cfd05fb.gh) (311 KB)

---

<div class="post-metadata">

**Author:** ![AnderGortazarBalerdi](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/andergortazarbalerdi/32/261_2.png) [@AnderGortazarBalerdi](https://discourse.ladybug.tools/u/AnderGortazarBalerdi)\
**Post date:** [July 22, 2014, 12:44am UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/4 "2014-07-22T00:44:00Z")

</div>

Hi Mostapha,

It was as simple as that. It works perfectly now.

Thank you very much

---

<div class="post-metadata">

**Author:** ![AnderGortazarBalerdi](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/andergortazarbalerdi/32/261_2.png) [@AnderGortazarBalerdi](https://discourse.ladybug.tools/u/AnderGortazarBalerdi)\
**Post date:** [July 22, 2014, 4:50am UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/5 "2014-07-22T04:50:00Z")

</div>

Hi Mostapha.  
I found some issues when exporting the gbXML. Check these three images: the first building has rectangular walls and rectangular windows done manually, and it was exported correctly. the second one has a tilted façade (non rectangular walls) and glazing applied by percentage-ratio. it was exported correctly too.  
[![](http://api.ning.com:80/files/ea4x8ggFHeLqnyBh0A8-UURBpmgDAvRW9CacSZhODuN4oXQJVeyZ8O2S9jSUR6D3aOBSrNHFzu6pQkCDboXfjWJka6Ai*uBs/straightwallmanualwindows.PNG?width=250)](http://api.ning.com:80/files/ea4x8ggFHeLqnyBh0A8-UURBpmgDAvRW9CacSZhODuN4oXQJVeyZ8O2S9jSUR6D3aOBSrNHFzu6pQkCDboXfjWJka6Ai*uBs/straightwallmanualwindows.PNG) ![](http://api.ning.com:80/files/ea4x8ggFHeKAOuneQVHOLEyArSMf0j2ewfpYi6K5XFHP0gHucRxEMO4K7g5e89sp5YJsaANEzYWlMb5PCSPfrjvlz3elZdj1/tiltedwallglazingpercentage.PNG?width=250)

However, when I create non glazing manually in non-rectangular walls, the gbXML is not exported properly (but I can see it correctly in the last step in GH), as you can see in the last image. ![](http://api.ning.com:80/files/ea4x8ggFHeI8Id9Ogrc4c*hN7mhaEdx5mR3r8n6cpUnOIE4DYm6zTxcW-xlRO7Des7KPJTkUqcRZKOZf9y25PEVbrUw0t-Mb/tiltedwallmanualwindows.PNG?width=250)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 22, 2014, 6:05am UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/6 "2014-07-22T06:05:00Z")

</div>

Hi Ander, Thanks for reporting. Looks like the component misses a loop and just exports the first piece of glazing. Can you send me your last geometry?

---

<div class="post-metadata">

**Author:** ![AnderGortazarBalerdi](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/andergortazarbalerdi/32/261_2.png) [@AnderGortazarBalerdi](https://discourse.ladybug.tools/u/AnderGortazarBalerdi)\
**Post date:** [July 22, 2014, 6:12am UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/7 "2014-07-22T06:12:00Z")

</div>

here it is

[20140530 AGB 03\_SunPathMD9waw\_msr5.gh](https://discourse.ladybug.tools/uploads/default/original/2X/d/d91b52cdd82d2922596116e0de3cb3dcd2895606.gh) (417 KB)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 23, 2014, 11:41pm UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/8 "2014-07-23T23:41:00Z")

</div>

Hi Ander,

Just checked the file. This is a bug in the new Class that I wrote in Honeybee. It will happen for any planar surface which have non-rectangular glazing. I will try to get it fixed now but it may take longer. I will upload the new version once I figure it out. Thank you for reporting this.

-Mostapha

---

<div class="post-metadata">

**Author:** ![AnderGortazarBalerdi](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/andergortazarbalerdi/32/261_2.png) [@AnderGortazarBalerdi](https://discourse.ladybug.tools/u/AnderGortazarBalerdi)\
**Post date:** [July 24, 2014, 12:39am UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/9 "2014-07-24T00:39:00Z")

</div>

Thanks Mostapha. Happy to help.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 24, 2014, 2:45am UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/10 "2014-07-24T02:45:00Z")

</div>

So here is the updated file.I can see that it exports glazing surfaces however I don’t know how it will show up in DB.

I also made minor modifications to your file. Including removing wrong materials for interior walls. Let’s get them fixed one by one though. Let me know if geometry is fine and we can discuss differences between materials and constructions later.

[20140530AGB03\_SunPathMD9waw\_msr5.gh](https://discourse.ladybug.tools/uploads/default/original/2X/d/d885ceb0269beca4519a66ae644e7564cd758ca1.gh) (430 KB)

---

<div class="post-metadata">

**Author:** ![MichalDengusiak](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/michaldengusiak/32/15616_2.png) [@MichalDengusiak](https://discourse.ladybug.tools/u/MichalDengusiak)\
**Post date:** [July 30, 2014, 2:36pm UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/11 "2014-07-30T14:36:00Z")

</div>

Hi, I carry on with this file…overall it works very well (see import to TAS EDSL)…I could run it at one PC but when I tried on another PC I have following errors?

1…following errors, I think some of them are easy to fix and relate to library Grizzlybear not sure:

1. I have problem and do not know how to apply different construction Floors: to GroundFloor, exposed floor?

[![](http://api.ning.com:80/files/hXj4gw9-MpMNrGGYAObtIE63rrRu4Zy5R9L7N3yYwS4ttnlp2XVCGxhkIeodYCkkaa-8Iy3W-dFgIKs0JAdJ7yBfeMK0ANfw/Capture.PNG?width=721)](http://api.ning.com:80/files/hXj4gw9-MpMNrGGYAObtIE63rrRu4Zy5R9L7N3yYwS4ttnlp2XVCGxhkIeodYCkkaa-8Iy3W-dFgIKs0JAdJ7yBfeMK0ANfw/Capture.PNG)

[![](http://api.ning.com:80/files/hXj4gw9-MpOiNykp2E0Ra3D343Ta73xUHmSMbx9J3i5yH7H9*rDBzp-TVR6NDi3UnRrgLkzXWKAlXIUrAjMI3RzZhEe8kTD7/Capture1.png?width=721)](http://api.ning.com:80/files/hXj4gw9-MpOiNykp2E0Ra3D343Ta73xUHmSMbx9J3i5yH7H9*rDBzp-TVR6NDi3UnRrgLkzXWKAlXIUrAjMI3RzZhEe8kTD7/Capture1.png)

[![](http://api.ning.com:80/files/hXj4gw9-MpOx8A9e5zqA2Fdz1kjyiW-1eU8eZUz2-lK*qyPMM1EML*yOIHi7oesHKpuvs83tyTQgbcaxL7ljBWzFoAwm4TkG/Capture2.png?width=721)](http://api.ning.com:80/files/hXj4gw9-MpOx8A9e5zqA2Fdz1kjyiW-1eU8eZUz2-lK*qyPMM1EML*yOIHi7oesHKpuvs83tyTQgbcaxL7ljBWzFoAwm4TkG/Capture2.png)

[![](http://api.ning.com:80/files/hXj4gw9-MpMu1OD6NUc85C5T7iFwjOPMcKAkwp7*1WuBYh0aWpkugPXgr4pWQeSKMPEnfqGHDMbKhOYQRbfod6ZNaIYoOGaC/Capture3.png?width=721)](http://api.ning.com:80/files/hXj4gw9-MpMu1OD6NUc85C5T7iFwjOPMcKAkwp7*1WuBYh0aWpkugPXgr4pWQeSKMPEnfqGHDMbKhOYQRbfod6ZNaIYoOGaC/Capture3.png)

[![](http://api.ning.com:80/files/hXj4gw9-MpOtJs9AE7l6*lFvOyfyoJCk6e0OIAvLlee15F5eWlDNk-L8lReBUXrWVvaaDvBr444pi1fFFd65IMctP35oaaFk/Capture4.png)](http://api.ning.com:80/files/hXj4gw9-MpOtJs9AE7l6*lFvOyfyoJCk6e0OIAvLlee15F5eWlDNk-L8lReBUXrWVvaaDvBr444pi1fFFd65IMctP35oaaFk/Capture4.png)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 30, 2014, 7:18pm UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/12 "2014-07-30T19:18:00Z")

</div>

Hi Michal,

Thank you for reporting. Looks great and I like the visualization down there. pretty cool. I didn’t understand your question 1.

For question 2, all the errors that I see here are coming from an update. Update userObjects and then replace the components with new ones from the tab and they will be solved.

Back to error with GB looks like you are using old libraries. Copy attached files to c:\gbxml and try again.

Mostapha

[gbXMLSerializer.dll](https://discourse.ladybug.tools/uploads/default/original/2X/c/ced978302a2fedc6faeae7ead5389ccce6b370ba.dll) (99 KB)  
[VectorMath.dll](https://discourse.ladybug.tools/uploads/default/original/2X/4/4242840e42e3105aa1a8d1e43d4d9278f9f1f494.dll) (44 KB)

---

<div class="post-metadata">

**Author:** ![MichalDengusiak](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/michaldengusiak/32/15616_2.png) [@MichalDengusiak](https://discourse.ladybug.tools/u/MichalDengusiak)\
**Post date:** [July 30, 2014, 11:20pm UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/13 "2014-07-30T23:20:00Z")

</div>

Thanks,

A. GH works now without problem and can produce gbXML

B. this relate to Question 1, I still have errors from those images above. Are those error relate to R+ library content? how to solve it?

radGlassMaterial

radOpaqueMaterial

1. Solution exception:name ‘\_materialName’ is not defined

searchEPConstruction

1. Solution exception:‘NoneType’ object has no attribute ‘upper’

C. in this example I am trying to apply different construction to surfaces and I am struggling to apply

in searchEPConstruction Surfacetype there is on floor and no air…

in setEPZoneCnstr I have only floor…how do I add ground floor and air to this list?

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [July 30, 2014, 11:32pm UTC](https://discourse.ladybug.tools/t/problems-with-hbzone-and-addglazing-component-grizzlybear/122/14 "2014-07-30T23:32:00Z")

</div>

Hi Michal, Did you try to update the components and make sure you have the latest version and then replace the components with the ones from the updated tab? If you do that the component input will be \_materialName and not materialName
