realthunder / fcad_pcb

FreeCAD scripts for PCB CAD/CAM
MIT License
130 stars 24 forks source link

Trapezoid pads not yet implemented #20

Closed Gasman2014 closed 4 years ago

Gasman2014 commented 4 years ago

Running this against a recent board using trapezoidal pads produces the following error. Otherwise seems to work well.

File "/Users/xyz/Library/Preferences/FreeCAD/fcad_pcb/kicad.py", line 1181, in makePads
    'pad shape {} not implemented\n'.format(shape))
NotImplementedError: pad shape trapezoid not implemented
realthunder commented 4 years ago

Can you please attach a file with this type of pad?

Gasman2014 commented 4 years ago

Component U1 (MAR-6) Amplifier on the attached board uses a footprint which requires a number of trapezoidal pads. I was hoping to do some thermal modelling of this.

1GHz Elektor Probe.kicad_pcb.zip

Gasman2014 commented 4 years ago

Have highlighted one of the component pads showing how this shaped pad is made up of several tessellated trapezoidal sub-pads.

Screen Shot 2020-02-10 at 23 32 36

realthunder commented 4 years ago

Thanks. I'll add it soon.

realthunder commented 4 years ago

Done.

Gasman2014 commented 4 years ago

Nice, thank you! Very speedy service. :) Screen Shot 2020-02-11 at 10 19 01

easyw commented 4 years ago

@realthunder I still have an issue with a trapezoidal footprint coming from kicad wizard ... touch-slider.zip

Trapezoidal are not often used, compared to polyline pads though...

realthunder commented 4 years ago

Fixed

easyw commented 4 years ago

@realthunder I'm still having a little issue... can you please confirm it? pcb.setLayer('F.Cu');pcb.makeCopper(holes=True) trapez

realthunder commented 4 years ago

It works on my side. Can you show me your FC about info? Also please save the FCStd file and attached here.

easyw commented 4 years ago

OS: Windows 10 (10.0) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.19518 (Git) Build type: Release Branch: master Hash: 16b2b9a864fbf8fcae6af1e38640995fd0fefeaf Python version: 3.8.1 Qt version: 5.12.5 Coin version: 4.0.0 OCC version: 7.4.0

OS: Windows 10 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.4 (GitTag) Build type: Release Branch: releases/FreeCAD-0-18 Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8 Python version: 3.6.6 Qt version: 5.6.2 Coin version: 4.0.0a OCC version: 7.3.0

OS: Windows 10 (10.0) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.19563 (Git) Build type: Release Branch: master Hash: b799996c22634adfe246723bf0eaa96804e926ce Python version: 3.6.8 Qt version: 5.12.1 Coin version: 4.0.0a OCC version: 7.3.0

@realthunder touch-slider-FC.zip

realthunder commented 4 years ago

Updated. Please try again. It it still happens, please try set the following parameter and try again.

pcb.pad_inflate = 0.0001
easyw commented 4 years ago

Updated. Please try again.

@realthunder fix confirmed! Thx again 😸