View Issue Details

IDProjectCategoryView StatusLast Update
0002216FreeCADBugpublic2015-12-15 13:17
ReporterbhoustonAssigned Toyorik 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformOSWindows 10OS Version10
Product Version0.15 
Target VersionFixed in Version0.16 
Summary0002216: Crash when exporting to OBJ from an imported STEP file
DescriptionA simple crash when trying to export everything from either of these STEP files to OBJ:

https://www.dropbox.com/s/wonwr3fwf6alram/Veyron.STEP?dl=0

https://www.dropbox.com/s/bu8q4qv1ol0m3jb/TCRD90%28200%29.STEP?dl=0

I think the bug has to be pretty simple.
Steps To ReproduceImport either of the two linked to STEP files, then select all, then export as OBJ. The crash will result.
Additional InformationStack trace of crash:

Traceback (most recent call last):
  File "<string>", line 80, in <module>
  File "C:\Program Files\FreeCAD 0.15\Mod\Arch\importOBJ.py", line 100, in export
    vlist,elist,flist = getIndices(obj.Shape,offset)
  File "C:\Program Files\FreeCAD 0.15\Mod\Arch\importOBJ.py", line 47, in getIndices
    if not isinstance(e.Curve,Part.Line):
<type 'exceptions.TypeError'>: undefined curve type
Stack Trace: Traceback (most recent call last):
  File "<string>", line 80, in <module>
  File "C:\Program Files\FreeCAD 0.15\Mod\Arch\importOBJ.py", line 100, in export
    vlist,elist,flist = getIndices(obj.Shape,offset)
  File "C:\Program Files\FreeCAD 0.15\Mod\Arch\importOBJ.py", line 47, in getIndices
    if not isinstance(e.Curve,Part.Line):


TagsNo tags attached.

Activities

yorik

2015-08-17 23:26

administrator   ~0006294

Thanks for reporting

Note that you should use the standard "Alias Obj" exporter, not the Arch exporter, you'll get faster and more solid results. The Arch exporter is tweaked for architectural models.

But anyway this is an easy fix...

Issue History

Date Modified Username Field Change
2015-08-17 16:26 bhouston New Issue
2015-08-17 23:26 yorik Note Added: 0006294
2015-08-17 23:27 yorik Assigned To => yorik
2015-08-17 23:27 yorik Status new => assigned
2015-08-17 23:27 yorik Changeset attached => FreeCAD Master master 53eb0dd7
2015-08-17 23:27 yorik Status assigned => closed
2015-08-17 23:27 yorik Resolution open => fixed
2015-12-15 13:17 yorik Fixed in Version => 0.16