ch-aurich / Eagle2FreeCad

Export your eagle boards to freecad, just like eagleUp does for Sketchup
23 stars 7 forks source link

Crash with some step models #3

Open ch-aurich opened 11 years ago

ch-aurich commented 11 years ago

Some 3D models can not be fused to the pcb. I fuse them to the pcb to form a single solid that can be exported as stp again.

From my point of view this is more a freecad issue, because these models can't even be fused manually using freecad. In future there will be an assambly module that is an better alternative than fusing the parts together.

Until then there are two alternatives, as far as I know:

    #combine pcb and part if the part is on this pcb
    for part in parts:
      if extruded.isInside(part.Placement.Base, 0.000001, True):
        extruded = extruded.fuse(part)
        part.nullify()

I will try to focus the freecad team on this issue, maybe there will be some improvements in future releases.

ch-aurich commented 11 years ago

By the way: you will get a traceback like that:

Traceback (most recent call last):
  File "/home/cau/.FreeCAD/eagle.FCMacro", line 458, in <module>
    extruded = extruded.fuse(part)
Exception: BRep_API: command not done