# Obstacle in calculating number of Curtain Panel for a Polygon Surface

**URL:** <https://forum.dynamobim.com/t/obstacle-in-calculating-number-of-curtain-panel-for-a-polygon-surface/83539>\
**Category:** Revit\
**Tags:** revit, geometry, dynamo\
**Created:** [November 28, 2022, 3:33am UTC](https://forum.dynamobim.com/t/obstacle-in-calculating-number-of-curtain-panel-for-a-polygon-surface/83539 "2022-11-28T03:33:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadaldo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmadaldo/32/139890_2.png) [@ahmadaldo](https://forum.dynamobim.com/u/ahmadaldo)\
**Post date:** [November 28, 2022, 3:33am UTC](https://forum.dynamobim.com/t/obstacle-in-calculating-number-of-curtain-panel-for-a-polygon-surface/83539/1 "2022-11-28T03:33:19Z")

</div>

Hi,  
I am trying to calculate the number of curtain panels located in polygon surface.  
To do that, I am filtering the curtain panels which dont have plane by boolean options. It works and generates its total number with this code and illustration:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/0/80abe768f5b585cc5f7f3cb633defe24c51aa171.png)

However, it shows that CurtainPanel.HasPlane has “Warning: CurtainPanel.get\_HasPlane operation failed.”. It is less good to look at in Dynamo Player.

Is there improved or another way to remove this warning? I upload the project file and script to have a look:  
[Calculate Number of Curtain Panel.dyn](https://forum.dynamobim.com/uploads/short-url/zv6tx7Wuedi8DZTORDiZAo7wI1H.dyn) (15.3 KB)  
[Project\_1.rvt](https://forum.dynamobim.com/uploads/short-url/A1TI6ImKTPLGFKcd4o3gPoI30zN.rvt) (6.0 MB)

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![ahmadaldo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmadaldo/32/139890_2.png) [@ahmadaldo](https://forum.dynamobim.com/u/ahmadaldo)\
**Post date:** [November 28, 2022, 11:55am UTC](https://forum.dynamobim.com/t/obstacle-in-calculating-number-of-curtain-panel-for-a-polygon-surface/83539/2 "2022-11-28T11:55:13Z")

</div>

[Update] Just found a solution by utilizing this code. 🙂

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/e/8e80d25dc89f5192ac10da69fe060ab222cd1e77.png)

[Calculate Number of Curtain Panel.dyn](https://forum.dynamobim.com/uploads/short-url/oDFQ78mGwAnbtyKDbEEOGUZmqsq.dyn) (15.3 KB)
