Bouni / kicad-jlcpcb-tools

Plugin to generate BOM + CPL files for JLCPCB, assigning LCSC part numbers directly from the plugin, query the JLCPCB parts database, lookup datasheets and much more.
MIT License
1.09k stars 102 forks source link

Import LCSC numbers from schematic #196

Open serkanc opened 2 years ago

serkanc commented 2 years ago

In schematics I added LCSC Field Name, And for the value LCSC number of the part. It's possible to add a button to get the values from this fields ?

Bouni commented 2 years ago

Can you give a more detailed description of what this button should do? When you open the Plugin, all values from the schematic is fetched and written into the table if there's not already a value in the table.

serkanc commented 2 years ago

If you click "Fetch LCSC from Schematic" Button in the Plugin, it fetchs the value of the field LCSC if available in schematic and if not available in the table. Sometimes its better to determine the part number when drawing schematic.

DomoticX commented 1 year ago

Yes, there was a JLCPCB BOM export Python addon for KiCad5, article: https://support.jlcpcb.com/article/84-how-to-generate-the-bom-and-centroid-file-from-kicad

plugin: https://gist.github.com/arturo182/a8c4a4b96907cfccf616a1edb59d0389

I have also used this back in the days, the best part is that if i copy components from other schematics, the LCSC number get copied too!, this saves a lot of work when the LCSC numbers are stored in the copmonents field in the schematic.

rgilham commented 1 year ago

I have found that the plugin does indeed pull the LCSC field from my schematic components, what I would like to propose is to write the LCSC field from components back into the schematic. It should be possible then to export and then append to a "MyParts" library - this library can include the LCSC part numbers and associated footprint.

I will do the changes and submit a PR. What do you guys think of the concept

DomoticX commented 1 year ago

I have found that the plugin does indeed pull the LCSC field from my schematic components, what I would like to propose is to write the LCSC field from components back into the schematic. It should be possible then to export and then append to a "MyParts" library - this library can include the LCSC part numbers and associated footprint.

I will do the changes and submit a PR. What do you guys think of the concept

Sounds like a good idea!

karlp commented 1 year ago

I'd like some flexibility in what the field name should be. I've been using KiCost for years, and it uses a "lcsc#" field on the parts, but this plugin requires it be called "LCSC" Currently I've been manually pasting LCSC numbers into the plugin window from the "Edit symbol fields" window.

Another option would be trying what the matthewlai tools do, which is "try any field that has C[0-9]*" as the lcsc number...

MerlinBlatterer commented 1 year ago

Yes I would love to have a "Fetch LCSC from Schematic" button. As I've already assigned some components in the "Kicad Table"(Bulk-edit Fields) (column"LCSC") but I'd like to import them into the "LCSC Table" (Plugin). Basically the inverse of "Export To Schematics"