Python node does not reset itself with each new run and change in Revit

From the perspective of your Dynamo graph, nothing has changed and therefore it will not re-run any of your nodes. There are some workarounds such as connecting a boolean toggle to an input to the Python node like this:


Trigger.dyn (8.6 KB)

You could also look at something like @john_pierson did using the Dynamo API here. This only works if nodes are added or removed, but you may be able to have it trigger based on other events–although I have no experience with the Dynamo API so I’m not sure if it’s even possible to do that.