I am working on a project to convert various file formats to .stl. I have succeeded converting .step, .igs, .dae and obj file to .stl. Whenever I try to convert .3ds file to .stl, I get the following error:
Code: Select all
File "/usr/share/freecad/Mod/Arch/import3DS.py", line 92, in read
for j,d_nobj in enumerate(dom.mdata.objects):
AttributeError: 'UnknownChunk' object has no attribute 'mdata'
Code: Select all
import import3DS
import3DS.open(INPUT)
App.setActiveDocument(INPUTFILE)
App.ActiveDocument=App.getDocument(INPUTFILE)
__objs__=[]
for mesh in FreeCAD.getDocument(INPUTFILE).Objects:
__objs__.append(mesh)
Mesh.export(__objs__,OUTPUT)
del __objs__
Code reference:
https://github.com/FreeCAD/FreeCAD/blob ... port3DS.py