Freecad Mesh WB - Export issues

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
leoheck
Posts: 767
Joined: Tue Mar 13, 2018 5:56 pm

Freecad Mesh WB - Export issues

Post by leoheck »

Is it possible to have the extension .stl added to the file name when exporting meshes?

This never came with the file name.
I always have to put it. Why? because other dumb software does not like it if it does not have it.
It is just a 4-characters string.

It would be awesome if Freecad could append this automatically, seriously.

Also, I cannot change it this time because when I click on the Input field, Freecad bugs to the death and does not export anything.
Screenshot-20211125213938-748x172.png
Screenshot-20211125213938-748x172.png (27.63 KiB) Viewed 197 times

OS: Ubuntu 21.10 (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: 8fceac17628778bd0b2ba4c60bafd6494348ac08
Python version: 3.9.5
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
chrisb
Posts: 38461
Joined: Tue Mar 17, 2015 9:14 am

Re: Freecad Mesh WB - Export issues

Post by chrisb »

It adds the extension on macOS, so this may be system deoendent, and out of the reach of FreeCAD?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
chennes
Posts: 1336
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Freecad Mesh WB - Export issues

Post by chennes »

It is supposed to add the extension, there is something going wrong there. I messed around with that code last year, but haven’t changed it since. I will give it a go on my 21.10 system, it’s working fine on Windows.
Chris Hennes
Pioneer Library System
User avatar
chennes
Posts: 1336
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Freecad Mesh WB - Export issues

Post by chennes »

Actually, are you certain it's not adding the extension when you save the file? I just tested on Ubuntu 21.10 and while the extension doesn't show in the field, if there is no extension it's appending the correct one on export:

Code: Select all

 Mesh.export(__objs__,u"/home/chennes/Desktop/Unnamed-Cube (Meshed).stl")
Chris Hennes
Pioneer Library System
wmayer
Site Admin
Posts: 17734
Joined: Thu Feb 19, 2009 10:32 am

Re: Freecad Mesh WB - Export issues

Post by wmayer »

That's a problem with your native file dialog. AFAIR it also depends on which DE you use. While under KDE things work as expected it doesn't do so under Gnome. Many years ago it also worked there until the devs decided to hide file extensions from the user and I guess that was the time where an extension wasn't added any more to the file name.

I strongly recommend you to switch to the Qt file dialog. Therefore open the parameter editor and go to Preferences > Dialog and create the key DontUseNativeDialog setting its value to true. That probably fixes the issue you reported in the other thread, too.
Post Reply