Dynamo deletes and recreates elements

Hi

I am trying to create floor finishes from rooms (similar to this: http://dynamobim.org/forums/topic/creating-floors-from-rooms/)

The script is fine but I was always under the impression that Dynamo modified elements it had already created. But in this scenario, when the script is re-run, say because a wall has moved, the floors are deleted and new floors are created. This causes problems with any additional info that has been added manually.

Can anyone explain why this is the case? Why do some elements update (eg. levels) and others deleted and recreated (eg. floors) when using Dynamo. @Zach_Kron any ideas?

Thanks

Try to connect “BAKE ELEMENTS” I think

Hi Paul,
Yes, the general reason is that the Revit API does not have a “modify” for any sketch element (the pink lines in any creation of modification interaction when working directly in Revit). Consequently, whenever Dynamo needs to change a sketch of an existing element, it will delete and replace, as modify is not an option.

Thanks
Zach

1 Like

Thanks Zach. Not the answer I wanted but good to know.

Vote up the idea to have the Autodesk Revit developers provide edit sketch through the API.

https://forums.autodesk.com/t5/revit-ideas/autodesk-answer-day-edit-sketch-in-api/idi-p/6334613

2 Likes

thanks. Didn’t know about this node but very useful!