Skip to content

Native import crashing #109

@Hoeze

Description

@Hoeze

Hi, I just tried to native import an IPT file to FreeCAD, but I get some errors:

17:46:01  Reading: C:\Users\user\Documents\Inventor\Mignon Scale\Load cell.ipt
17:46:02          ... can't create dimension constraint between  (0079): Line2D - (0,7.52) - (1.272,7.52) and (0061): Point2D - (0.636,6.96) - not supported by FreeCAD!
17:46:02          ... skipped distance dimension - can't find geometry for (0067): Point2D - (0.636,0.56) (entity2: 5,None)!
17:46:02          ... can't create dimension constraint between  (00DA): Line2D - (7.52,1.272) - (7.52,0) and (00CC): Point2D - (4.17,0.636) - not supported by FreeCAD!
17:46:02          ... can't create dimension constraint between  (00C2): Line2D - (0,0) - (0,1.272) and (00CF): Point2D - (3.35,0.636) - not supported by FreeCAD!
17:46:02  Error in creating (0010): Feature - Body: object is not allowed
17:46:02  Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 821, in getGeometry
    importObject(node)
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 4057, in Create_Feature
    createFxObj(fxNode)
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 2456, in Create_FxExtrude
    padGeo = self.createFxExtrude_Operation(extrudeNode, sectionNode, name, '_Cut', 'Cut')
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 2356, in createFxExtrude_Operation
    tool = self.Create_FxExtrude_New(padNode, sectionNode, name + nameExtension)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 2316, in Create_FxExtrude_New
    pad = newObject('Part::Extrusion', name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 169, in newObject
    activeBody.addObject(obj)
ValueError: Body: object is not allowed

17:46:02  Error in creating (0011): Feature - Body: object is not allowed
17:46:02  Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 821, in getGeometry
    importObject(node)
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 4057, in Create_Feature
    createFxObj(fxNode)
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 2458, in Create_FxExtrude
    padGeo = self.Create_FxExtrude_New(extrudeNode, sectionNode, name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 2316, in Create_FxExtrude_New
    pad = newObject('Part::Extrusion', name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 169, in newObject
    activeBody.addObject(obj)
ValueError: Body: object is not allowed

17:46:02  Extrusion2_Cut: No object linked
17:46:02  Extrusion3: No object linked
17:46:02  Error in creating (0012): Feature - Body: object is not allowed
17:46:02  Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 821, in getGeometry
    importObject(node)
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 4057, in Create_Feature
    createFxObj(fxNode)
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 2458, in Create_FxExtrude
    padGeo = self.Create_FxExtrude_New(extrudeNode, sectionNode, name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 2316, in Create_FxExtrude_New
    pad = newObject('Part::Extrusion', name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Roaming\FreeCAD\v1-1\Mod\InventorLoader\.\importerFreeCAD.py", line 169, in newObject
    activeBody.addObject(obj)
ValueError: Body: object is not allowed

17:46:02  Extrusion2_Cut: No object linked
17:46:02  Extrusion3: No object linked
17:46:02  Extrusion4: No object linked

Importing via STEP conversion works, but the sketches have a lot of missing constraints.
Most importantly, the individual lines are not connected any more.
Also, projected geometry is freely moving now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions