View Issue Details

IDProjectCategoryView StatusLast Update
0001493File formatsFeaturepublic2019-07-30 22:40
Reporterbarleyman Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0001493: IDF import fails on 0 height
DescriptionIDF import fails if a geometry has 0 height
Steps To ReproduceFrom the FILE menu, select OPEN and select an *.emn file which has 0 height component in it
Additional InformationOpening IDF file that neglects to define height for all components throws an exception

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\FreeCAD 0.14\Mod\Idf\Idf.py", line 66, in open
    process_emn(doc,filename)
  File "C:\Program Files\FreeCAD 0.14\Mod\Idf\Idf.py", line 131, in process_emn
    process_emp(doc,filename,placement,board_thickness)
  File "C:\Program Files\FreeCAD 0.14\Mod\Idf\Idf.py", line 249, in process_emp
    comps.append((comp_PartNumber,[Process_comp_outline(doc,comp_outline,comp_height),comp_GeometryName]))
  File "C:\Program Files\FreeCAD 0.14\Mod\Idf\Idf.py", line 321, in Process_comp_outline
    out_shape=out_shape.extrude(Base.Vector(0,0,comp_height))
<type 'exceptions.Exception'>: BRepSweep_Translation::Constructor

To fix the issue, change all 0-height components to 0.1 height components by adding this to line 249

          if comp_height==0:
            comp_height=0.1
TagsNo tags attached.
FreeCAD Information

Activities

barleyman

2014-03-25 14:59

reporter  

Zero height IDF.zip (37,062 bytes)

Related Changesets

FreeCAD: master d40d5a3e

2014-03-25 16:07:20

barleyman

Details Diff
Update Idf.py

Fixes for bugs 0001491, 0001492, 0001493
Affected Issues
0001491, 0001492, 0001493
mod - src/Mod/Idf/Idf.py Diff File

FreeCAD: master 69044c6b

2014-03-29 13:00:41

wmayer

Details Diff
Merge branch 'patch-1' of https://github.com/Barleyman/FreeCAD_sf_master Affected Issues
0001491, 0001492, 0001493
mod - src/Mod/Idf/Idf.py Diff File

Issue History

Date Modified Username Field Change
2014-03-25 14:59 barleyman New Issue
2014-03-25 14:59 barleyman File Added: Zero height IDF.zip
2014-03-29 12:55 wmayer Changeset attached => FreeCAD Master master 69044c6b
2014-03-29 12:56 wmayer Status new => closed
2014-03-29 12:56 wmayer Resolution open => fixed
2019-07-30 22:40 Kunda1 Changeset attached => FreeCAD master d40d5a3e