# Filter elements in view within the crop view

**URL:** <https://forum.dynamobim.com/t/filter-elements-in-view-within-the-crop-view/94383>\
**Category:** Developers\
**Tags:** python, dynamo\
**Created:** [October 9, 2023, 12:18am UTC](https://forum.dynamobim.com/t/filter-elements-in-view-within-the-crop-view/94383 "2023-10-09T00:18:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [October 9, 2023, 1:44pm UTC](https://forum.dynamobim.com/t/filter-elements-in-view-within-the-crop-view/94383/5 "2023-10-09T13:44:10Z")

</div>

Hello,  
you can try with this example (assuming the cropbox is rectangular, if not, it is necessary to use solid intersection process as @Mark.Ackerley mentioned)

> [@Filter Element from Linked Model only if visible in active view](https://forum.dynamobim.com/t/filter-element-from-linked-model-only-if-visible-in-active-view/55039/6):
>
> Hello try this version #written by Cyril P import clr clr.AddReference('RevitAPI') import Autodesk from Autodesk.Revit.DB import \* clr.AddReference('RevitServices') import RevitServices from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument lnkInstance = UnwrapElement(IN[0]) category = UnwrapElement(IN[1]) transf =lnkInstance.GetTotalTransform() actView = doc.ActiveView doclnk = lnkInstance.GetLinkDocu…

---

_[View the full topic](https://forum.dynamobim.com/t/filter-elements-in-view-within-the-crop-view/94383)._
