Set crop box on Plan View problem

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 (14.0 KB)

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.

1 Like