Create section view - weird deletion?

#1

Hey everyone,

I used a code I found as a blueprint to make it create sectional elevations of (mainly) walls in a project. Something weird I noticed which I’d like some help in understanding is that if you select a model element and run the script, a section view is created which is awesome; but then if you select another wall (by model element) and run the script the 1st section view is deleted when the 2nd is generated. Does anyone know how to mitigate this?

Wetransfer link to a sample revit project and the code itself. https://we.tl/t-WB7TtXzd1I (Pretty sure you need BIM4Struct.Productivity to run the script)

Thanks in advance!

0 Likes

#2

its called element binding.
solution: run the script in dynamo player, or close and reopen dynamo

2 Likes

#3

Thank you for pointing me in that direction!

1 Like