# Crop Region automatically fit visible elements

**URL:** <https://forum.dynamobim.com/t/crop-region-automatically-fit-visible-elements/23239>\
**Category:** Revit\
**Tags:** views\
**Created:** [June 29, 2018, 11:55am UTC](https://forum.dynamobim.com/t/crop-region-automatically-fit-visible-elements/23239 "2018-06-29T11:55:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwinash112](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@ashwinash112](https://forum.dynamobim.com/u/ashwinash112)\
**Post date:** [June 29, 2018, 11:55am UTC](https://forum.dynamobim.com/t/crop-region-automatically-fit-visible-elements/23239/1 "2018-06-29T11:55:36Z")

</div>

i use an in house plugin to generate sheets from assemblies howevr the crop region is usually somewhere very far from the objects in all views and i have to manually resize it to fit the object and select crop view…Is there any way of autoamtically resising the crop regoin to fit vissible objects only?

---

<div class="post-metadata">

**Author:** ![MJB-online](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mjb-online/32/24884_2.png) [@MJB-online](https://forum.dynamobim.com/u/MJB-online)\
**Post date:** [July 4, 2018, 7:00am UTC](https://forum.dynamobim.com/t/crop-region-automatically-fit-visible-elements/23239/2 "2018-07-04T07:00:17Z")

</div>

Hi @ashwinash112,

When you create an assembly, do the objects/families contain reference planes?

Some time ago i found out that the viewport size of assembly views (based on boundingbox) is heavily affected by reference planes inside the objects/families. Very strange, it would seem much more logical to me if the boundinbox would only fit the actual geometry of the objects/families.

 ![Viewport%20Sizes](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/e/3e935d1cf5d30ffc5a4cb6dc5913d0f9a458dceb.jpg)

If it is a “ **bug** ” it is probably more a Revit than a Dynamo thing.

Kind regards,  
Mark

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [July 4, 2018, 7:06am UTC](https://forum.dynamobim.com/t/crop-region-automatically-fit-visible-elements/23239/3 "2018-07-04T07:06:07Z")

</div>

Hi

could it be your Sheet/Titleblock being far away from origin?

---

<div class="post-metadata">

**Author:** ![ashwinash112](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@ashwinash112](https://forum.dynamobim.com/u/ashwinash112)\
**Post date:** [July 6, 2018, 8:49am UTC](https://forum.dynamobim.com/t/crop-region-automatically-fit-visible-elements/23239/4 "2018-07-06T08:49:16Z")

</div>

It is possible but how do i find out??

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [July 6, 2018, 8:58am UTC](https://forum.dynamobim.com/t/crop-region-automatically-fit-visible-elements/23239/5 "2018-07-06T08:58:14Z")

</div>

create a new titleblock family and place i using dynamo on a sheet where your other titleblock family is already placed perhaps this new one shows up at a different place

---

<div class="post-metadata">

**Author:** ![RubenVivancos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rubenvivancos/32/185795_2.png) [@RubenVivancos](https://forum.dynamobim.com/u/RubenVivancos)\
**Post date:** [April 25, 2023, 8:11am UTC](https://forum.dynamobim.com/t/crop-region-automatically-fit-visible-elements/23239/6 "2023-04-25T08:11:00Z")

</div>

> [@ashwinash112](#):
>
> Is there any way of autoamtically resising the crop regoin to fit vissible objects only?

did you find a solution to fit the views to elements visible?

---

<div class="post-metadata">

**Author:** ![gideonkarthik](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@gideonkarthik](https://forum.dynamobim.com/u/gideonkarthik)\
**Post date:** [April 25, 2023, 2:16pm UTC](https://forum.dynamobim.com/t/crop-region-automatically-fit-visible-elements/23239/7 "2023-04-25T14:16:02Z")

</div>

Create bounding box around the elements in focus.  
Use View.SetCropBox from ootb nodes.
