Save to file generated a file named "undefined.txt"

when saving a CIM model to file via the menu, the generated filename is undefined.txt