[FR] reset filename autogeneration for export after a manual name entry.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
[FR] reset filename autogeneration for export after a manual name entry.
When for some reason one decides to manually enter a file name for export, not accepting the autogenerated one that name becomes default for anything exported afterwards. So any other object you try to export has this name as default. The only way I know to reset this behavior is to restart FreeCAD. This should either be per object action (hard to support because you could select any combination of items for export) or there should be a way to reset the manual entry and return to autogenerated names WITHOUT restarting FreeCAD. Or am i missing something?
Re: [FR] reset filename autogeneration for export after a manual name entry.
Do you have a suggestion for how to reset it? My thinking was that normally if you didn’t want the generated name the first time you probably wouldn’t want it in subsequent exports either, so that seemed the safer option. My recollection is that I used a static local variable to track it, so there are limited options on how to do a “reset”.
Re: [FR] reset filename autogeneration for export after a manual name entry.
Is this in the same vane as a user entered name that does not include the file extension (for example the export type is selected as dxf) and it is happy to export a file with no extension. But, import doesn't list the file because it has no extension?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Re: [FR] reset filename autogeneration for export after a manual name entry.
No, the extension is handled by a separate bit of code. I think that bug is OS-specific.
Re: [FR] reset filename autogeneration for export after a manual name entry.
You have to blame the system file dialog for this behaviour. AFAIK this mainly happens with the GTK-based file dialog and has occurred once the devs decided to hide any file extensions.
Re: [FR] reset filename autogeneration for export after a manual name entry.
Add a button in the export dialog or file menu that reverts whatever happens when the name is entered by hand and the autogenerated one is not used? So when the next time a name is needed no fixed name will be supplied and the autogeneration mechanism will kick in?