Hello,
I must ask something because I did not find real solution form my problem.
My problem is that whey I do something with some dynamo script, for example dimension some walls in part of floorplan, in one apartment and when I want to do it same thing in other apartment, dynamo made dimensions but delete previous dimensions.
Or I do it something in one level and repeat in other level, dynamo delete everything done in previous level.
I tried with some transaction nodes or python scripts for transaction but without any success.
Please help …
I close dynamo and open again or exit the model and open again but always is the same.
I use revit 2024 i 2025 … dynamo is what we got with revit instalation.
It’s almost assuredly Element Binding, and a working solution is almost assuredly in the thread which has been linked a few times now.
I recommend saving your .dyn as a new file, opening it in a text editor, and manually cleaning the bindings out. From there you can avoid bindings being added back into the file by exclusively using Dynamo player.
I checked link … I must say that is little confused for me, I am not expert in dynamo … but I try what you say, for sure …
At the moment I found on solution that work also, exit from script without saving … what I do it all the time, unfortunately
If you clear the bindings first this will work just like using Dynamo player. You might be able to make the graph Read Only on your file system to prevent saving and thereby make bindings perpetually clear.
I can share my experience in mean time, last few days…I’ll try to be simple.
Dynamo “trace” what we do with script and save it in dyn file.
If you place family instance, make wall, new dimension … etc, that he write in dyn file in subject BINDING. More, much better explanation is above …
Consequence of this is if you run same script twice, result of previous ran will be deleted.
If you want to skip this problem there is few solutions.
Part of Rhythm package is node ElementBinder which should solve problem but for we not.
One of solution is to use Dynamo player, to run script. Sometimes is fine but not always …
Next option is to run script just one time, exit from dynamo editor with NO SAVE, open it and run again, exit with NO SAVE … and so on.
If this is not working means that dyn file is not “clean”, subject BINDING keep something. You should opet dyn file in notepad, search for BINDING and leave it like this “Bindings”: [],
Save it and open it in dynamo. Another way to “clean” dyn file is to save new copy in dynamo with save as … dynamo will report error that will lost element binding.
Monocle package had some option flush binding but it lose in some upgrades.
With these few tricks I can live with it, sometimes is odd but … until appear better solution.
@Xane
I think it also might be easier to select all nodes in existing graph and copy them in to a empty canvas, then the bindings eill be removed.
Or will a Save As do the same @jacob.small ?
When we experienced the same in one of our projects we set the file to ”Read Only” in filé properties and it helped a lot when user reused the same graph on several files.
Dynamo for Civil3D is different, as are the different Dynamo for Revit builds as 3.0 changes stuff a bit. Read only is certainly helpful if you don’t go the player route after clearing bindings though.