# Curtain Panel Ordering

**URL:** <https://forum.dynamobim.com/t/curtain-panel-ordering/16591>\
**Category:** Revit\
**Tags:** revit, panel-grid\
**Created:** [November 17, 2017, 1:26pm UTC](https://forum.dynamobim.com/t/curtain-panel-ordering/16591 "2017-11-17T13:26:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Grout](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andy_grout/32/40509_2.png) [@Andy\_Grout](https://forum.dynamobim.com/u/Andy_Grout)\
**Post date:** [November 17, 2017, 1:26pm UTC](https://forum.dynamobim.com/t/curtain-panel-ordering/16591/1 "2017-11-17T13:26:55Z")

</div>

Hey there,

I’m trying to build a simple script to adjust curtain panel parameters on a divided surface, however Revit’s appears to segregate the first batch of 10x10 curtain wall panels (the U and V grid numbers are set to “10” by default when a surface is divided).

Images attached to illustrate. the script is simple for now as I was trying to troubleshooting the issue.  
 ![Curtain panel ordering](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/8/38e56cd914db329a1d8c47188b9e8bdb1f8294fa.jpg) ![Script](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e4c4a5ac616edce0259f7c2ff80a4724e668a3e9.JPG)  
If anyone has found a clever way to overcome this issue, I’d be super appreciative of your help.

---

<div class="post-metadata">

**Author:** ![Petar\_Penchev1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/petar_penchev1/32/8592_2.png) [@Petar\_Penchev1](https://forum.dynamobim.com/u/Petar_Penchev1)\
**Post date:** [November 17, 2017, 1:35pm UTC](https://forum.dynamobim.com/t/curtain-panel-ordering/16591/2 "2017-11-17T13:35:49Z")

</div>

The number of vvalues is less than the number of elements. 1701 vs 1800.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/e/ceb729d16d3623cc5b035850a2315b88e794510d.jpg)  
So you need to feed enough values for all the elements.  
Also if you need certain sequance you need to sort your elements before changing their parameters.  
Cheers!

---

<div class="post-metadata">

**Author:** ![Andy\_Grout](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andy_grout/32/40509_2.png) [@Andy\_Grout](https://forum.dynamobim.com/u/Andy_Grout)\
**Post date:** [November 17, 2017, 1:43pm UTC](https://forum.dynamobim.com/t/curtain-panel-ordering/16591/3 "2017-11-17T13:43:52Z")

</div>

Thank you for highlighting this, I am aware of it. However the issue I am trying to solve is the default ordering of the curtain panels. I see two potential ways forward:

1. Select each curtain panel via coordinates and adjust their parameters in this order
2. Break my default list into groups of 10 and re-locate the first 10 groups so they fit nicely in the correct order, then flatten the list

[Edit for clarification]  
Image attached to illustrate issue still remains with increased list number:  
 ![Curtain panel ordering_](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/e/5e34139ee75fd19f8aab7876dc302080772d3aa4.jpg)

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [November 17, 2017, 2:34pm UTC](https://forum.dynamobim.com/t/curtain-panel-ordering/16591/4 "2017-11-17T14:34:47Z")

</div>

@Andy_Grout Firstly, you’d have better control if you avoid _Divided Surfaces_.When using Dynamo, there are better approaches to paneling surfaces. Search for examples on this forum.

However, when I tried to replicate your issue, I didn’t seem to have a problem.  
Your issue probably is a result of placing the first AC at a point away from the origin before the ACs were repeated. (I’m assuming you’ve used the repeater) Just guessing though.

 ![SpherePanels1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/987a746d1c514b6c9935721be1aa00d7cad063f7.png)  
[SpherePanels.rfa](https://forum.dynamobim.com/uploads/short-url/ng6B1eupisuajg8ZLgjUDLgqlWW.rfa) (2.3 MB)

 ![SpherePanels](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/c/5c36e07a1e7d56d124edb1d57e920c4b6442ca18.png)

---

<div class="post-metadata">

**Author:** ![Andy\_Grout](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andy_grout/32/40509_2.png) [@Andy\_Grout](https://forum.dynamobim.com/u/Andy_Grout)\
**Post date:** [December 11, 2017, 7:41am UTC](https://forum.dynamobim.com/t/curtain-panel-ordering/16591/5 "2017-12-11T07:41:37Z")

</div>

Hi Vikram, sorry for the delayed response. Setting the first panel manually and then using the repeater seemed to do the trick to order the panels from the corner point - Thank you!

With this solved, I was able to move onto the next stage and adjust parameters in the curtain panel via pixel values in an image file.

 ![Dynamo Reply_02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/8/68305b7f59a5f488ce0cd6c51b8d8d844d78cc60.PNG)  
 ![Dynamo Reply_01](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/b/6b041df3240573492e9bc16c0668c71b711dff79.PNG)
