I am designing a script to parametrically design some solids and import them into Revit. The workflow is structured in such way:
Pick model line in Revit
Extrude a solid along the line.
Export solid to Revit.
The problem I am facing is that the imported geometry in Revit disappears or rotates when I select another model line. I am aware that this is due to Dynamo binding, but I cannot grasp the exact way how to implement a workaround.
Thank you, this was helpful! I used the method which implies cutting/pasting of the generated geometry and rerunning the script.
the issue I had with geometry rotating was coming from elsewhere. It was due to Dynamo importing other solid with the same family name into the model. I added a part to the script which increases the family number with every present family in the document, e.g. NAME_01, NAME_02, etc.