# Set Crop Box to View

**URL:** <https://forum.dynamobim.com/t/set-crop-box-to-view/38735>\
**Category:** Revit\
**Tags:** mepover\
**Created:** [July 25, 2019, 9:07pm UTC](https://forum.dynamobim.com/t/set-crop-box-to-view/38735 "2019-07-25T21:07:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![frenga](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@frenga](https://forum.dynamobim.com/u/frenga)\
**Post date:** [July 25, 2019, 9:07pm UTC](https://forum.dynamobim.com/t/set-crop-box-to-view/38735/1 "2019-07-25T21:07:29Z")

</div>

Thanks in advance. I’m having issues getting the MEPover View.SetCropBoxCurves to work with a list of views (see snipit). I’m able to get the node to work when passing only one view w/ the associated bounding box elements. What am I missing?

 ![View%20crop%20box](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/8/e8b6914be1e2c9546c3715b78aa6628778464dad.png)

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [July 26, 2019, 1:57am UTC](https://forum.dynamobim.com/t/set-crop-box-to-view/38735/2 "2019-07-26T01:57:10Z")

</div>

Are you trying to make them all match that one that has a crop box already applied? If so, use a get item at index #4, then use Longest lacing on the SetCropBox node.

---

<div class="post-metadata">

**Author:** ![frenga](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@frenga](https://forum.dynamobim.com/u/frenga)\
**Post date:** [July 26, 2019, 1:23pm UTC](https://forum.dynamobim.com/t/set-crop-box-to-view/38735/3 "2019-07-26T13:23:00Z")

</div>

Thanks for the assistance Sean. I’m trying to apply the crop box from the associated plan view to the newly created ceiling plan view (different crop box for each view). There are multiple plan views in the list which contain a crop region which need applied to the corresponding ceiling plan view. I’m able to use get item at index and do exactly what you explained above but I need to the unique crop box from each floor plan to the associated ceiling plan. Is this not working due to feeding empty list items into the SetCropBox node which is causing everything there after to generate a null value?

---

<div class="post-metadata">

**Author:** ![frenga](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@frenga](https://forum.dynamobim.com/u/frenga)\
**Post date:** [July 26, 2019, 1:36pm UTC](https://forum.dynamobim.com/t/set-crop-box-to-view/38735/4 "2019-07-26T13:36:26Z")

</div>

Damnit…I should’ve just slept on it and tried again with fresh eyes…I got this issue worked out (for now I think anyways). It appears the issue was being caused by my list of views. Once I set the view.getcropboxcurves to use list levels everything is working as desired. This changed caused the “Emply List” items to changed to “Null”…Maybe you can help clarify (but maybe it’s not worth the thought) why this is working but see graph below.

 ![View%20crop%20box1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/1/21472d618133bdc673739e540f6936654b7320e2.png)

---

<div class="post-metadata">

**Author:** ![zhengwei.shen](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@zhengwei.shen](https://forum.dynamobim.com/u/zhengwei.shen)\
**Post date:** [July 24, 2024, 6:29am UTC](https://forum.dynamobim.com/t/set-crop-box-to-view/38735/5 "2024-07-24T06:29:03Z")

</div>

Hi. who can send me View.SetCropBoxCurves.dyf and View.GetCropBoxCurves.dyf  
thanks.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [July 24, 2024, 6:33am UTC](https://forum.dynamobim.com/t/set-crop-box-to-view/38735/6 "2024-07-24T06:33:07Z")

</div>

Hi @zhengwei.shen welcome onboard 😉 why not just install mepover from package manager ?

---

<div class="post-metadata">

**Author:** ![zhengwei.shen](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@zhengwei.shen](https://forum.dynamobim.com/u/zhengwei.shen)\
**Post date:** [July 24, 2024, 8:54am UTC](https://forum.dynamobim.com/t/set-crop-box-to-view/38735/7 "2024-07-24T08:54:45Z")

</div>

Sovitek, Thanks your reply.
