# Rotate crop box of multiple views

**URL:** <https://forum.dynamobim.com/t/rotate-crop-box-of-multiple-views/38815>\
**Category:** Revit\
**Created:** [July 29, 2019, 5:27am UTC](https://forum.dynamobim.com/t/rotate-crop-box-of-multiple-views/38815 "2019-07-29T05:27:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [July 29, 2019, 7:59am UTC](https://forum.dynamobim.com/t/rotate-crop-box-of-multiple-views/38815/4 "2019-07-29T07:59:32Z")

</div>

Hey, sorry I can’t check it right now, but I would maybe try a zip rather than for…? So you’re iterating through both lists together? Something like…

```
for v, r in zip(viewports, rot):
   	crpbx = GetViewCropBoxElement(v)
    crpbxRt = RotateCropBox(v, crpbx, r)

```

Hopefully that is helpful 🙂

Mark

---

_[View the full topic](https://forum.dynamobim.com/t/rotate-crop-box-of-multiple-views/38815)._
