Hi all,
It seems that in Revit, Dynamo is rather “bound” to the document which was open in Revit when Dynamo was started, than Revit itself.
After having opened a different document in Revit, is there another way of letting Dynamo point to the currently active document, than closing Dynamo, and restarting it from the current document?
The Revit API limits ‘conversation’ between an add-in and Revit to one document at a time.
As such if you’ve got Graph A open for File A, and then you want to run Graph A on File B you need to close the Dynamo file (I believe closing the graph will work - not Dynamo) and reopen it. Note that if you close File A the active Dynamo session (not just the workspace) will close.
I believe that Dynamo Player handles document switching better, but it’s been awhile since I’ve tested.
Can confirm Player handles this well, at least in the new UX it definitely does - it will typically update when you switch models with a slight 1-2 second refresh.