# Loopwhile until intersection false

**URL:** <https://forum.dynamobim.com/t/loopwhile-until-intersection-false/61792>\
**Category:** Uncategorized\
**Created:** [March 17, 2021, 11:28pm UTC](https://forum.dynamobim.com/t/loopwhile-until-intersection-false/61792 "2021-03-17T23:28:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [March 17, 2021, 11:28pm UTC](https://forum.dynamobim.com/t/loopwhile-until-intersection-false/61792/1 "2021-03-17T23:28:19Z")

</div>

Is it possible to move this surface until the intersection is false with the line?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/d/1d24ec3582b73ba06e83631c826b0d775213b01d.png)

---

<div class="post-metadata">

**Author:** ![blsalvio](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@blsalvio](https://forum.dynamobim.com/u/blsalvio)\
**Post date:** [March 17, 2021, 11:36pm UTC](https://forum.dynamobim.com/t/loopwhile-until-intersection-false/61792/2 "2021-03-17T23:36:04Z")

</div>

hi @vanman

can you share your dynamo code and a sample revit file?  
thanks.

-biboy

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [March 18, 2021, 12:09am UTC](https://forum.dynamobim.com/t/loopwhile-until-intersection-false/61792/3 "2021-03-18T00:09:47Z")

</div>

Not sure how to get the Geometry translate to repeat

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

---

<div class="post-metadata">

**Author:** ![blsalvio](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@blsalvio](https://forum.dynamobim.com/u/blsalvio)\
**Post date:** [March 18, 2021, 7:45am UTC](https://forum.dynamobim.com/t/loopwhile-until-intersection-false/61792/4 "2021-03-18T07:45:57Z")

</div>

Can you share this dynamo file?

---

<div class="post-metadata">

**Author:** ![Bjorn\_Keulemans1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bjorn_keulemans1/32/54676_2.png) [@Bjorn\_Keulemans1](https://forum.dynamobim.com/u/Bjorn_Keulemans1)\
**Post date:** [March 18, 2021, 8:14am UTC](https://forum.dynamobim.com/t/loopwhile-until-intersection-false/61792/5 "2021-03-18T08:14:48Z")

</div>

Change the way you think about this. Instead of moving until it’s clear, define what is clear and measure that distance, then translate the element by that vector. You already know in which direction you want to move the element.

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [March 18, 2021, 9:03am UTC](https://forum.dynamobim.com/t/loopwhile-until-intersection-false/61792/6 "2021-03-18T09:03:49Z")

</div>

@Bjorn_Keulemans1 hi Bjorn, the object is to move varying sizes of boxes off the line. Ultimately it will be a script that places a view and then moves it to a place not intersecting the boarder of a sheet or other views and then places another until its not intersecting

@blsalvio please see below 🙂 I’ve done this for now as an alternative in working towards the ultimate goal above.

[Loop while till intersect false.dyn](https://forum.dynamobim.com/uploads/short-url/fSjs5McW52TGtiRJt2Ox8UyE6en.dyn) (24.8 KB)

 ![move boxes](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/f/8f26d55fa56b35f359bd49c9a9d563f185fb1527.png)
