You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been toying around with migrating from Fusion 360 to FreeCAD and using the InventorLoader to import my F3D Files to FreeCAD.
That fails in Freecad 1.0.2 and it fails in the weekly build 2025.11.20.
I managed to get it to work, but it's not only this code in PR #101 that needs to be patched, it's also an upstream issue in FreeCAD which isn't going to fix itself at the moment. Here's my discoveries.
Trying to open an exported file from Fusion360 (Fusion Version 2605.1.18 x86_64) does not work with this error:
File "C:\Program Files\FreeCAD 1.0\bin\Lib\site-packages\freecad\module_io.py", line 16, in OpenInsertObject
getattr(importerModule, importMethod)(objectPath, *importArgs, **importKwargs)
File "E:\PROFILES\<user>\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerIL.py", line 148, in open
_open(abs_file_name, skip, only, root)
File "E:\PROFILES\ta\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerIL.py", line 127, in _open
reader = read(filename)
^^^^^^^^^^^^^^
File "E:\PROFILES\<user>\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerIL.py", line 70, in read
if (importerF3D.read(filename)):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\PROFILES\<user>\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerF3D.py", line 174, in read
folder = read_manifest(f3d, 'Manifest.dat')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\PROFILES\<user>\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerF3D.py", line 107, in read_manifest
with f3d.open(path) as manifest:
^^^^^^^^^^^^^^
File "C:\Program Files\FreeCAD 1.0\bin\Lib\zipfile.py", line 1627, in open
return ZipExtFile(zef_file, mode, zinfo, pwd, True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\FreeCAD 1.0\bin\Lib\zipfile.py", line 841, in __init__
self._decompressor = _get_decompressor(self._compress_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\FreeCAD 1.0\bin\Lib\zipfile.py", line 740, in _get_decompressor
_check_compression(compress_type)
File "C:\Program Files\FreeCAD 1.0\bin\Lib\zipfile.py", line 720, in _check_compression
raise NotImplementedError("That compression method is not supported")
<class 'NotImplementedError'>: That compression method is not supported
The issue is that the zipfile.py provided by Upstream Freecad can't unpack the f3d zipped file from Fusion. I've tried with 7-Zip and got the same error. I've noticed that my 7-Zip version was a bit out of date, so after updating, it could uncompress the f3d file just fine. I suspect the issue is that Autodesk updated their ZIP library which supports a newer compression type.
Workaround: Just uncompress the f3d file to a folder and re-zip it using Compression = Store (sometimes called 0)
After doing that, the import can then proceed, but then it says it can't interpret the manifest as because the code in Fix reading manifest in F3D importer #101 needs to be merged so that works again.
I've also managed to get the importer to crash when trying to import one of my files, but i didn't get a good log from Freecad on why it crashed, it just stops, but that should probably be in a separate issue but I don't have detailed information regarding why the crash happens. The Freecad Log says:
I've been toying around with migrating from Fusion 360 to FreeCAD and using the InventorLoader to import my F3D Files to FreeCAD.
That fails in Freecad 1.0.2 and it fails in the weekly build 2025.11.20.
I managed to get it to work, but it's not only this code in PR #101 that needs to be patched, it's also an upstream issue in FreeCAD which isn't going to fix itself at the moment. Here's my discoveries.
The issue is that the
zipfile.pyprovided by Upstream Freecad can't unpack the f3d zipped file from Fusion. I've tried with 7-Zip and got the same error. I've noticed that my 7-Zip version was a bit out of date, so after updating, it could uncompress the f3d file just fine. I suspect the issue is that Autodesk updated their ZIP library which supports a newer compression type.Workaround: Just uncompress the f3d file to a folder and re-zip it using Compression = Store (sometimes called 0)
I've also managed to get the importer to crash when trying to import one of my files, but i didn't get a good log from Freecad on why it crashed, it just stops, but that should probably be in a separate issue but I don't have detailed information regarding why the crash happens. The Freecad Log says:
And the windows event log just says "Application Error" and no significant information: