Get filename of active Dynamo file

Hello Dynamo Friends,

Is it possible to get the filename of the active Dynamo file?
I want to store the projectnumber of project specific scripts in the filename. The idea is for project specific scripts to let a user copy the file and change the project number in the filename. So there would be no need for opening the dyn file and change the filepath in a node.

Kind regards :slight_smile:

2 Likes

Amazing! :slight_smile:

Thank you Sean!

1 Like

Just keep in mind that I believe the default graph has to be saved before it will provide a name.

I just tested to copy a .dyn file in the explorer and run it in the dynamo player, i get the correct file name of the new file. So for my purpose this works :slight_smile: