realthunder / fcad_pcb

FreeCAD scripts for PCB CAD/CAM
MIT License
126 stars 25 forks source link

missing holes at pcb step export in FreeCAD #33

Open thomaslitk opened 3 years ago

thomaslitk commented 3 years ago

Hi, firstly, thanks for your tool. Generally, it is very helpful for me.

My intention is to create a circuit, which is based on pcbs, connected via copper bars. Therefore, I need a 3d model of the pcbs (made with KiCad) with all its holes (especially vias) and components for use in an external cad tool.

In FreeCAD, I can create the board and copper layers with all the holes by using fcad_pcb and assemble this with the circuit parts. I export all as step file. Now, there is the problem. By importing the step file in an external cad tool or back to FreeCAD, some of the holes are not correctly drilled. Among others, there are only half circle arcs of the holes.

created with fcad_pcb -> all correct grafik

step-file imported in FreeCAD (board) grafik

step-file imported in FreeCAD (copper) grafik

Is this a problem of the fcad_pcb or more of FreeCAD's step export? Did anyone has this problem as well and possibly a solution?

Thanks and best regards Thomas

realthunder commented 3 years ago

Are you saying you did a round trip FreeCAD export STEP, and then re-import STEP and got the wrong shape? Can you please post your kicad_pcb file here and let me try?

thomaslitk commented 3 years ago

Yes, a simple round trip and the results as you can see above. Attached you fill find the kicad_pcb. The relay is a self-made part and its step file is attached as well, if you need it.

Thanks for trying ...

bridge.zip