I am wondering if there is a way to programmatically get the active Dynamo graph’s filename? I did some research but came up empty:
Example by Mark Thorley (But I cannot find any reference to Dynamo.Applications.DynamoRevit.RevitDynamoModel; ) link
Tried accessing it through the viewmodel - no luck either
Searched through the Dynamo repo for examples with keywords like ‘workspace’ and ‘filename’
On this forum here
I think what I have to do is to get the current Dynamo graphs’ workspace but I don’t know how to do it. I could then get the filename with through Dynamo.Graph.Workspaces.WorkspaceModel
Thanks for the help!