Dynamo is not pointing at the current document

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?

Thanks,
GG

im inclined to say there isn’t for now. but there’re ways u can get the open documents then do something with them afterwards.

1 Like

Okay, thanks. :slight_smile:

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.

3 Likes

Thanks, Jacob!

1 Like

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.

4 Likes