kicad-jlcpcb-tools icon indicating copy to clipboard operation
kicad-jlcpcb-tools copied to clipboard

Import LCSC numbers from schematic

Open serkanc opened this issue 2 years ago • 7 comments

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 ?

serkanc avatar Jul 25 '22 10:07 serkanc

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.

Bouni avatar Jul 26 '22 05:07 Bouni

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.

serkanc avatar Jul 26 '22 06:07 serkanc

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.

DomoticX avatar Aug 03 '22 07:08 DomoticX

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

rgilham avatar Sep 08 '22 07:09 rgilham

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!

DomoticX avatar Sep 10 '22 19:09 DomoticX

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...

karlp avatar Feb 03 '23 11:02 karlp

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"

MerlinBlatterer avatar Mar 04 '23 11:03 MerlinBlatterer