# Changing geometry (switching data box) automatically

**URL:** <https://discourse.mcneel.com/t/changing-geometry-switching-data-box-automatically/81953>\
**Category:** Grasshopper\
**Tags:** rhino, grasshopper, autorun\
**Created:** [April 16, 2019, 9:23am UTC](https://discourse.mcneel.com/t/changing-geometry-switching-data-box-automatically/81953 "2019-04-16T09:23:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivanita](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ivanita/32/532170_2.png) [@Ivanita](https://discourse.mcneel.com/u/Ivanita)\
**Post date:** [April 16, 2019, 9:23am UTC](https://discourse.mcneel.com/t/changing-geometry-switching-data-box-automatically/81953/1 "2019-04-16T09:23:46Z")

</div>

I have 2 geometries, e.g. one is in rectangular form and the other one is in a square form. They are defined in 2 separate definitions. For simulation purpose, I wish to find a feature that can switch them automatically. Currently, I am using Colibri Iterator (figure below) to change the quantitative numbers automatically. Is there a way to switch from one data / mesh / polysurface box to another automatically? Thanks

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/5/c/5c1dddcf2db521b2a4b94ac1eb3e4ff3cf3e45b6.png)

---

<div class="post-metadata">

**Author:** ![anon39580149](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@anon39580149](https://discourse.mcneel.com/u/anon39580149)\
**Post date:** [April 17, 2019, 11:17pm UTC](https://discourse.mcneel.com/t/changing-geometry-switching-data-box-automatically/81953/2 "2019-04-17T23:17:11Z")

</div>

Automatically based on what? you change something else and the shape will change  
and it’s better if you post your definition
