pwuertz / kicad_picknplace_assistant Goto Github PK
View Code? Open in Web Editor NEWKiCad PCB pick and place assistant
License: MIT License
KiCad PCB pick and place assistant
License: MIT License
Would it be difficult to add a parameter to the script to allow grouping of multiple values per page, with each value highlighted in a different color and the value legend printed in the corner?
may be options like:
--max-references-per-page
--max-groups-per-page <1 - 5>
It would be convenient to combine on the same solder map footprints which have only a small qty per board .
I'd like to try this on current Kicad (7), but running into issues :
AttributeError: 'BOARD' object has no attribute 'GetModules'
Ok, replace GetModules(
with Footprints(
seems to help.
AttributeError: module 'pcbnew' has no attribute 'BOARD_GetStandardLayerName'
Ok, a bit tricker, not sure if strictly correct : replace that bit with pcbnew.BOARD.GetLayerName(pcb,layer)
And then, this one has me stumped :
Traceback (most recent call last):
File "..../kicad_picknplace_assistant.py", line 220, in <module>
create_board_figure(pcb, bom_row, layer=layer)
File "..../kicad_picknplace_assistant.py", line 16, in create_board_figure
ax = plt.subplot("111", aspect="equal")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/matplotlib/pyplot.py", line 1425, in subplot
key = SubplotSpec._from_subplot_args(fig, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/matplotlib/gridspec.py", line 574, in _from_subplot_args
raise ValueError(
ValueError: Single argument to subplot must be a three-digit integer, not '111'
isn't 111
already a three-digit integer ?
[EDIT] well that error was surely written by the Sphinx, the code has "111"
instead of 111
!
Next :
AttributeError: 'FOOTPRINT' object has no attribute 'GetFootprintRect
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.