Sheets Disappearing When Running Grasshopper Script

Hey guys - I’ve made a Grasshopper script to create floor plans, reflected ceiling plans, and sheets based on room boundaries and organizes it based on a Program Number shared parameter. It works … but we have a scenario where we want to do a second phase room data sheets (RDS), and we’ve already ran the script once to create the first phase RDS package. The script seems to be overwritting, aka deleting, all of the previously GH created views, and sheets when the phase 2 script is run. I’m confused because the phase RDS grasshopper script is completely fresh started from a template file I have, so the runs should be seperated. Luckily we had detached a model before running the script so we only lost about 2 hours of work before we noticed. But still I have no clue why it wouldn’t work the second time around.

Any help is much appreciated.
Sheets - Create Floor Plan by Room Boundaries.gh (21.9 KB)

Thx,
D

Hi David, Please see the link below. If you are using the same component it is tracking the previous Elements, unpinning will remove the tracking.

https://www.rhino3d.com/inside/revit/1.0/guides/rir-grasshopper#element-tracking

Thanks Japhy, even if its a different run with a completely different script it will do this?

I haven’t had an opportunity to look at your file but no, unless its the same Create component in the same file they would be unrelated.

I think that’s the issue - I retested and noticed that I still couldn’t delete the views that were made with the previous script. Apparently, in a workshared Revit model, it makes the created views worksets non-editable, which I guess is the workset version of pinning it. After making the the worksets editable, re-running the script worked.

Appreciate, the help!

1 Like