I’m writing a python script in dynamo and I want to have the script update the model and remove old elements.
I’m trying to write directly to revit by Wall.Create() .
All of the elements created in Dynamo are regenerated and not duplicated - which is what I want. The only exception is when I create an object with python via Wall.Create() . After creating anything with Wall.Create() the item does not update, but remains & another is created every time the script runs. Is there a way around this?
the part of the code that creates the wall is:
wall_line = Line.CreateBound(lineCorridor.xyzC1, lineCorridor.xyzC2,)
wall = Wall.Create(doc, wall_line, level.Id, False)
OUT = wall
Thank you for any input.