# Set crop box on Plan View problem

**URL:** <https://forum.dynamobim.com/t/set-crop-box-on-plan-view-problem/28766>\
**Category:** Revit\
**Created:** [November 21, 2018, 4:20pm UTC](https://forum.dynamobim.com/t/set-crop-box-on-plan-view-problem/28766 "2018-11-21T16:20:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shay\_Egan](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Shay\_Egan](https://forum.dynamobim.com/u/Shay_Egan)\
**Post date:** [November 21, 2018, 4:20pm UTC](https://forum.dynamobim.com/t/set-crop-box-on-plan-view-problem/28766/1 "2018-11-21T16:20:58Z")

</div>

I am using a script that uses a selected model crop to create a plan view and then crop it according to the model group. Problem is, every time I run it, it deletes the previous plan view it has created. I have tried exiting revit after each run but it is still deleting the previous view. Can anybody tell me how to disassociate it from the previous time it is ran. Thanks

[Create RDS Plan of Model Group.dyn](https://forum.dynamobim.com/uploads/short-url/vmATapyWXiLc0BFPp6LVyCMo3OA.dyn) (14.0 KB)

---

<div class="post-metadata">

**Author:** ![Steven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/steven/32/112504_2.png) [@Steven](https://forum.dynamobim.com/u/Steven)\
**Post date:** [November 21, 2018, 4:55pm UTC](https://forum.dynamobim.com/t/set-crop-box-on-plan-view-problem/28766/2 "2018-11-21T16:55:17Z")

</div>

Take a look here. Its about creating a new sheet each run but the bit of code is what you are looking for.

ToDSType(False) means Dynamo will hold onto control of the created element.  
ToDSType(True) Will pass control to Revit and will execute a new task next run.

> [@Create New Sheet Each Run](https://forum.dynamobim.com/t/create-new-sheet-each-run/7536/10):
>
> I was just about to do that. Very sorry should have done it the first go around. The only change I made was to line 29 (third from last). Was: elementlist.append(newobj.ToDSType(False)) Changed to: “elementlist.append(newobj.ToDSType(True))” This node was modified from Clockwork for Dynamo 1.x import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import \* clr.AddReference("RevitNodes") import Revit clr.ImportExtensions(Revit.Elements) clr.ImportExtensions(Revit.GeometryConversion)…
