Shading Designer - 'nonetype' error - no attribute 'faces'

Hello Everyone,

I am trying to create shadings for an energy simulation to study conditions inside my structure and the effect shading will have on it.

But, when I connect the shadings, the HB Context creator is returning an error - "1. Solution exception:‘NoneType’ object has no attribute ‘Faces’ ".

This is happening when I connect only certain surfaces of my structure.

Also, the error appears if I connect surfaces that act as walls’ for window shading but doesn’t appear if I connect surfaces acting as ‘roofs’ for skylight shading.

Thank you for all your help.

Amrita


Shell_weather_Wind_Shading_test_msr_ghosh_3.gh (695 KB)

Hi Amrita, Some of the surfaces are so small and make the component fail. I added a try/exception in the attached file and it just passes the problematic cases.

Shell_weather_Wind_Shading_test_msr_ghosh_4.gh (693 KB)

Mostapha,

Thank you so much. That problem did get fixed.

It was an error because of those surfaces and because it said it created degenerate shadings because of the irregular forms of windows.

Thanks alot,

Amrita

Hello Mostapha, I am having the same error. What do you mean with “I added a try/exception”? I am unfamiliar with that.

Would you please be so kind as to explain how to add a “try/exception”?

Try/exception is inside the python code. Can you share part of your file that gives you the problem? What version of Honeybee are you using?

Hello again Mostapha, in the end I was able to solve the problem as the clients covered up the beams used for shading which I guess were too thin. Now I just made one single surface and it works fine. I got your message when I had updated the project so I no longer have the previous version.

Thanks for your help!

Hi @mostapha
I have the same problem and I want to know how to make the “try/exception”. I am trying to test two boxes where each one changes its scale from 0 to 10. But when one box reaches zero the simulation does not work and the volume reads zero and ignores the existence of the other box. hope you could help me with that. Attached is the GH file.
Thanks

box scaling.gh (110.6 KB)