I’d like to suggest a filename in the SaveFileDialog based on the filename of the current document.
When the file is already saved as a 3dm file I can use ActiveDoc.Name or Path. If the file is new, both Path and Name are empty and I suggest “Untitled” in analogy with Rhino SaveAs. So far, so good.
However, when I open an IGS or a file format of our own, the Doc.Name and Path are also empty, but the Rhino Titlebar displays the imported file name (without the extension). This is actually the data I need to suggest a filename.
The TemplateFileUsed property also does not reveal this information.
Anyone a suggestion how to get the name of a non-3dm file after it was opened?