FC019: problem exporting to Wavefront .obj format

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!
FCuser2019
Posts: 125
Joined: Fri Sep 13, 2019 12:15 pm

FC019: problem exporting to Wavefront .obj format

Post by FCuser2019 »

Hi, trying in Part Design to export any Body in Wavefront (.obj) format, I noticed that FC019 ignores the value set in tab View --> Deviation.
The export is always done using Deviation=0.500% whatever the value set in the tab View --> Deviation.

My configuration is:

OS: Linux Mint 19.3 (MATE/mate)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22756 (Git) AppImage
Build type: Release
Branch: master
Hash: ce87f586ee36ffe8ebcdcd3947ced4ab389ae795
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Italian/Italy (it_IT)

Instead with FC0.18:

OS: Linux Mint 19.3
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16146 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.18.4)
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)

everything works.

Has the way to set the deviation for export to .obj changed in FC0.19 compared to what was done in FC0.18?

Thanks :) .
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FC019: problem exporting to Wavefront .obj format

Post by wmayer »

There is an independent setting used for mesh export. You will find it in the preferences under Import/Export -> Mesh formats. In order to show this tab you must have loaded the Mesh workbench beforehand.
FCuser2019
Posts: 125
Joined: Fri Sep 13, 2019 12:15 pm

Re: FC019: problem exporting to Wavefront .obj format

Post by FCuser2019 »

Wmayer, thanks for the indication, I didn't know there had been this change from FC0.18 to FC0.19 .
But there is a problem in this window:

Preferences-Mesh_formats.png
Preferences-Mesh_formats.png (76.63 KiB) Viewed 1517 times

As soon as I press the OK button (or Apply), I get this message in red:

Code: Select all

12:48:00  Traceback (most recent call last):
  File "/tmp/.mount_FreeCA80bGjo/usr/lib/python3.8/site-packages/freecad/appimage/init_gui.py", line 22, in saveSettings
    preference_tabel.SetBool("appimage_auto_update", bool(self.form.always_check_updates.isChecked()))
<class 'AttributeError'>: 'PySide2.QtWidgets.QWidget' object has no attribute 'always_check_updates'

My configuration is:

OS: Linux Mint 19.3 (MATE/mate)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22756 (Git) AppImage
Build type: Release
Branch: master
Hash: ce87f586ee36ffe8ebcdcd3947ced4ab389ae795
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Italian/Italy (it_IT)
FCuser2019
Posts: 125
Joined: Fri Sep 13, 2019 12:15 pm

Re: FC019: problem exporting to Wavefront .obj format

Post by FCuser2019 »

I forgot to say that:
1) as a result of the error message, the subsequent mesh export operation is not affected by the new value set for "Maximum mesh deviation";

2) the error message appears whatever .FCStd file is open;

3) the error message appears even if no file is opened.
Steps to reproduce the problem:
3.1) switch to Mesh Design WB;
3.2) go to Preferences--> Import-Export --> MeshFormats tab;
3.3) press the OK button (or Apply).
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: FC019: problem exporting to Wavefront .obj format

Post by TheMarkster »

There is a bug in the appimage version it looks like, related to the checkbox to automatically check for updates. A workaround is to make the changes via the parameter editor:

Tools menu -> Edit paramaeters. Then navigate to the section in the image below.
Snip macro screenshot-9dc604.png
Snip macro screenshot-9dc604.png (137.25 KiB) Viewed 1471 times
FCuser2019
Posts: 125
Joined: Fri Sep 13, 2019 12:15 pm

Re: FC019: problem exporting to Wavefront .obj format

Post by FCuser2019 »

TheMarkster, thank you very much for this workaround :)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FC019: problem exporting to Wavefront .obj format

Post by Kunda1 »

TheMarkster wrote: Tue Oct 20, 2020 6:30 pm There is a bug in the appimage version it looks like, related to the checkbox to automatically check for updates.
@TheMarkster Do you mind opening a ticket on https://github.com/FreeCAD/FreeCAD-AppImage/issues ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: FC019: problem exporting to Wavefront .obj format

Post by TheMarkster »

Kunda1 wrote: Thu Oct 22, 2020 1:59 am
TheMarkster wrote: Tue Oct 20, 2020 6:30 pm There is a bug in the appimage version it looks like, related to the checkbox to automatically check for updates.
@TheMarkster Do you mind opening a ticket on https://github.com/FreeCAD/FreeCAD-AppImage/issues ?
https://github.com/FreeCAD/FreeCAD-AppImage/issues/48
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FC019: problem exporting to Wavefront .obj format

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
FCuser2019
Posts: 125
Joined: Fri Sep 13, 2019 12:15 pm

Re: FC019: problem exporting to Wavefront .obj format

Post by FCuser2019 »

Post Reply