How do I get the open model's name

Hello all of you

do any of you know if it is possible to get the name of the model your dynamo script is working in ?

i know it is possible to get the name of the linked models

the reason why i ask is because, i want to make an Excel export with the model name + something extra from a string

thanks in advance

1 Like

Awesome :slight_smile: that work nice

If i want to add something to the end of that string, do you know how i do that ?

The easiest way is to use a code block containing this line:

filename + suffix;

Then just plug in the original filename and the string you want to add.
(Another way would be to use String.Concat node)

1 Like

Thanks Anderas, that Work perfect