I’m updating a script to replace the Clockwork 2.x nodes with Clockwork 3.x nodes. Is there a way to tell Dynamo to find all the old nodes and replace them with new ones or do I have to select them all individually?
Replacing the package should be all you need to do. What is your process and what are you seeing?
The script was written with nodes from Clockwork 2.4. Clockwork 3.3 was released to work with Revit 2026 (or so I understand). I’ve installed 3.3 so when I open the script I get the notice that the graph was created with nodes from 2.4. I’m going through the script and picking all the nodes individually and replacing them with the updated versions. It’s a big script so there’s a lot. I’d love it if there was a “find and replace” button to swap the nodes out with just a couple of clicks.
The graph is using the updated nodes, it’s just stating that it’s using a different version than what the original file was saved with. I just want to make sure that’s clear.
If you want to get rid of the message then you’ll need to save the file with the updated nodes in a new location and/or with a new name (assuming you aren’t just discarding the old graph completely). Simply saving isn’t enough as the node definition (package version) is saved in the dyn file itself. You could modify the meta data but it’s not the simplest fix. The quickest and easiest way to save the graph with all the version changes is to just copy the whole graph and paste it into a new dyn and save (it can still replace an existing file). This will ensure that the new versioning metadata is included in the dyn.
Cool! I learned something new today. Thanks!
thanks for the heads up because this has been bothering me too!