FloorPlanView.ByLevel - overwriting/transaction issue

I have a problem with a script that creates Floorplans and then applies crop regions to these.

When I run this script with level by level order, it generates floorplans from level picked, but erases floorplans generated previously on another level in model.

I’ve seen this issue with other nodes here on forums(FamilyInstance by Point), but I don’t really know how to apply these techniques for them to work with generated floorplans. I have some traces regarding Transaction control, but can’t really apply it on this example. And unfortunately the project is too big to run all the levels at once, which I tried and froze Revit for 30+ minutes :frowning:

Any thoughts? Is there a way to unbind these views from script, to “bake” them into the model?

This is element binding. You can read about it and how to resolve your issue here: Element Binding in Revit