I am trying to create a script that creates a wall when a detail line is selected in Revit. I can only get to the first stage when the walls are created but when I re-run the script, the script over writes the wall. I am looking for the script to create and retain the walls in the model, please can anyone help.
How are you “rerunning” the script? If you just make new selections in Dynamo without closing the file, then Dynamo will just update the current graph rather than create new instances. This is intentional. You either need to close the file before creating anything new or you need to run the script through Dynamo Player where this will happen automatically.
If you’re doing either one of these things and the elements still get replaced, then you’re dealing with element binding.