Comments (5)
Great idea, much better than what I was thinking. JLCPCB has the data because they display a preview - I'll talk to them and see if they will assist.
from kicad-jlcpcb-bom-plugin.
Thanks! Here is a proposed solution:
- Create a database of JLCPCB Part Number and Rotation Override. This database can be hosted as a CSV file in this repo, so it'll be a collaborative effort
- The pos_to_cpl script can then look at the BOM file to map Designator to LCSC Part #, and find the rotation based on that.
WDYT?
from kicad-jlcpcb-bom-plugin.
JLCPCB was helpful, but says that they don't have information as to how each part is oriented on tape. But package (eg, SOIC8) is available for each part and I see that others do regex matching on footprint to determine the rotation needed transform from tape to the kicad standard. Not clear to me how reliable this is - but it may be the best option.
from kicad-jlcpcb-bom-plugin.
Wery nice!
With regard to kicad_pos_to_cpl.py:
I like the simplicity of your kicad_pos_to_cpl.py script (cant say anything about BOM as I use kibom-master with customl jlc-kibom.ini to generate JLCPCB bom and using [JOIN] to to accumulate/rename columns), however a few small additions to your kicad_pos_to_cpl.py might be useful:
- I also think that 'Package' should be used (instead of 'Ref', line 34 in kicad_pos_to_cpl.py).
- for the idea adding regexp possibility (using some python regexp library) for matching. First match would "win" (that is order could matter - this would allow adding exceptions to more general rules by prepending a new rule)
- having possibility of multiple rules, eg project specific: one: For instance if in the directory would contain file "pos_to_cpl.db" and [/some/global/pos_to_cpl] would be the 3rd argument (default database file), those two can be merged (with local prior to global to allow override). This means that the same script (or wrapper) can be then used to all projects with possibility to add custom project-specific additions/overrides.
- possibility to add two more columns dX dY for translation offsets (when missing defaulted to 0)
Maybe additional option for negating x axis for bottom side (it seems to me that kicad .pos is inverted for bottom side but JLC requires it as coordinates would look from "side of components" - am i correct?),
Thanks, R.
from kicad-jlcpcb-bom-plugin.
+1 for package idea - I made that modification (in the simplest way - no REs etc) and it seemed quite effective.
from kicad-jlcpcb-bom-plugin.
Related Issues (12)
- TypeError: 'newline' is an invalid keyword argument for this function in python3 HOT 3
- kicad v5.1.7 doesn't like the newline argument
- How do you actaully run kicad_pos_to_cpl.py? HOT 3
- Does not work in Kicad 6 HOT 4
- Caps and Resistors "LCSC Part #" not included in BOM HOT 1
- python3 compatibility HOT 6
- BOM exporter doesn't run on MacOS HOT 1
- No module named 'kicad_netlist_reader' HOT 1
- ModuleNotFoundError: No module named ‘kicad_netlist_reader’ HOT 1
- LCSC Part # column is empty HOT 1
- Trouble using plugin HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kicad-jlcpcb-bom-plugin.