Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for converting EasyEDA Footprints to KiCad modules #32

Open
kimkash opened this issue Mar 16, 2020 · 9 comments
Open

Add support for converting EasyEDA Footprints to KiCad modules #32

kimkash opened this issue Mar 16, 2020 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@kimkash
Copy link

kimkash commented Mar 16, 2020

Tried to convert this footprint:
https://easyeda.com/modules/Arduino-Pro-Mini-Footprint_1c2d205f5a224e7abd7498291e7a9dd3

Received error:
"Running easyeda2kicad v1.7.0:
Reading file Arduino Pro Mini Footprint.json...
Parsing content...
Error: unsupported file format"

@urish urish added the enhancement New feature or request label Mar 16, 2020
@urish urish changed the title error trying to convert footprint Add support for converting EasyEDA Footprints to KiCad modules Mar 16, 2020
@karinchechik
Copy link

I'll take a look at this issue and send an update soon

@karinchechik
Copy link

@kimkash - The example you attached is a PCB Module which will be converted to PCB in KiCAD. It is now available. The issue was only in the web version.

@urish - We should keep this issue open to add support for PCB Lib as well, which will be converted to fileName.kicad_mod

@opeRaptor
Copy link

I am still getting this issue on the web version: Error: unsupported file format

@urish
Copy link
Collaborator

urish commented Apr 8, 2020

@opeRaptor just to confirm, you are trying to convert an EasyEDA Footprint file, right?

@opeRaptor
Copy link

Yes, trying to convert a EasyEDA footprint file.

I also tried to put a footprint alone on a board as a work around but had another as issue described in #34

@greyltc
Copy link

greyltc commented Sep 3, 2020

Do I understand correctly that this issue is for tracking the ability easyeda2kicad to take footprints used in the EasyEDA PCB layout tool and dump them into .kicad_mod files?

This would be a really fantastic feature!

I was trying to inspect the footprint data for a USB-C connector, LCSC Part # C134092 ( https://lcsc.com/product-detail/USB-Type-C_MOLEX_105450-0101_105450-0101_C134092.html )

I made a dummy PCB design in EasyEDA consisting of only the footprint for that part and then looked at the json generated
I see

  "shape": [
    "LIB~4281.5~3246~package`USB-C-SMD_TYPE-C-USB-18`Contributor`立创EDA官方封装库`link``~0~~gge7~1~300003b969724a4c9a9c77a8cef70674~1574907566~0~#@$TEXT~N~4281.5~3224.256~0.6~0~~3~~4.5~USB-C-SMD_TYPE-C-USB-18~M 4281.5 3219.716 L 4281.5 3222.786 L 4281.7 3223.396 L 4282.11 3223.806 L 4282.73 3224.006 L 4283.14 3224.006 L 4283.75 3223.806 L 4284.16 3223.396 L 4284.36 3222.786 L 4284.36 3219.716 M 4288.58 3220.326 L 4288.17 3219.916 L 4287.55 3219.716 L 4286.74 3219.716 L 4286.12 3219.916 L 4285.71 3220.326 L 4285.71 3220.736 L 4285.92 3221.146 L 4286.12 3221.356 L 4286.53 3221.556 L 4287.76 3221.966 L 4288.17 3222.166 L 4288.37 3222.376 L 4288.58 3222.786 L 4288.58 3223.396 L 4288.17 3223.806 L 4287.55 3224.006 L 4286.74 3224.006 L 4286.12 3223.806 L 4285.71 3223.396 M 4289.93 3219.716 L 4289.93 3224.006 M 4289.93 3219.716 L 4291.77 3219.716 L 4292.38 3219.916 L 4292.59 3220.126 L 4292.79 3220.536 L 4292.79 3220.946 L 4292.59 3221.356 L 4292.38 3221.556 L 4291.77 3221.756 M 4289.93 3221.756 L 4291.77 3221.756 L 4292.38 3221.966 L 4292.59 3222.166 L 4292.79 3222.576 L 4292.79 3223.196 L 4292.59 3223.606 L 4292.38 3223.806 L 4291.77 3224.006 L 4289.93 3224.006 M 4294.14 3222.166 L 4297.82 3222.166 M 4302.24 3220.736 L 4302.04 3220.326 L 4301.63 3219.916 L 4301.22 3219.716 L 4300.4 3219.716 L 4299.99 3219.916 L 4299.58 3220.326 L 4299.38 3220.736 L 4299.17 3221.356 L 4299.17 3222.376 L 4299.38 3222.986 L 4299.58 3223.396 L 4299.99 3223.806 L 4300.4 3224.006 L 4301.22 3224.006 L 4301.63 3223.806 L 4302.04 3223.396 L 4302.24 3222.986 M 4303.59 3222.166 L 4307.27 3222.166 M 4311.49 3220.326 L 4311.08 3219.916 L 4310.46 3219.716 L 4309.65 3219.716 L 4309.03 3219.916 L 4308.62 3220.326 L 4308.62 3220.736 L 4308.83 3221.146 L 4309.03 3221.356 L 4309.44 3221.556 L 4310.67 3221.966 L 4311.08 3222.166 L 4311.28 3222.376 L 4311.49 3222.786 L 4311.49 3223.396 L 4311.08 3223.806 L 4310.46 3224.006 L 4309.65 3224.006 L 4309.03 3223.806 L 4308.62 3223.396 M 4312.84 3219.716 L 4312.84 3224.006 M 4312.84 3219.716 L 4314.47 3224.006 M 4316.11 3219.716 L 4314.47 3224.006 M 4316.11 3219.716 L 4316.11 3224.006 M 4317.46 3219.716 L 4317.46 3224.006 M 4317.46 3219.716 L 4318.89 3219.716 L 4319.5 3219.916 L 4319.91 3220.326 L 4320.12 3220.736 L 4320.32 3221.356 L 4320.32 3222.376 L 4320.12 3222.986 L 4319.91 3223.396 L 4319.5 3223.806 L 4318.89 3224.006 L 4317.46 3224.006 M 4321.67 3225.446 L 4325.35 3225.446 M 4328.14 3219.716 L 4328.14 3224.006 M 4326.7 3219.716 L 4329.57 3219.716 M 4330.92 3219.716 L 4332.55 3221.756 L 4332.55 3224.006 M 4334.19 3219.716 L 4332.55 3221.756 M 4335.54 3219.716 L 4335.54 3224.006 M 4335.54 3219.716 L 4337.38 3219.716 L 4338 3219.916 L 4338.2 3220.126 L 4338.4 3220.536 L 4338.4 3221.146 L 4338.2 3221.556 L 4338 3221.756 L 4337.38 3221.966 L 4335.54 3221.966 M 4339.75 3219.716 L 4339.75 3224.006 M 4339.75 3219.716 L 4342.41 3219.716 M 4339.75 3221.756 L 4341.39 3221.756 M 4339.75 3224.006 L 4342.41 3224.006 M 4343.76 3222.166 L 4347.45 3222.166 M 4351.86 3220.736 L 4351.66 3220.326 L 4351.25 3219.916 L 4350.84 3219.716 L 4350.02 3219.716 L 4349.61 3219.916 L 4349.2 3220.326 L 4349 3220.736 L 4348.8 3221.356 L 4348.8 3222.376 L 4349 3222.986 L 4349.2 3223.396 L 4349.61 3223.806 L 4350.02 3224.006 L 4350.84 3224.006 L 4351.25 3223.806 L 4351.66 3223.396 L 4351.86 3222.986 M 4353.21 3222.166 L 4356.9 3222.166 M 4358.25 3219.716 L 4358.25 3222.786 L 4358.45 3223.396 L 4358.86 3223.806 L 4359.47 3224.006 L 4359.88 3224.006 L 4360.5 3223.806 L 4360.9 3223.396 L 4361.11 3222.786 L 4361.11 3219.716 M 4365.32 3220.326 L 4364.91 3219.916 L 4364.3 3219.716 L 4363.48 3219.716 L 4362.87 3219.916 L 4362.46 3220.326 L 4362.46 3220.736 L 4362.66 3221.146 L 4362.87 3221.356 L 4363.28 3221.556 L 4364.5 3221.966 L 4364.91 3222.166 L 4365.12 3222.376 L 4365.32 3222.786 L 4365.32 3223.396 L 4364.91 3223.806 L 4364.3 3224.006 L 4363.48 3224.006 L 4362.87 3223.806 L 4362.46 3223.396 M 4366.67 3219.716 L 4366.67 3224.006 M 4366.67 3219.716 L 4368.51 3219.716 L 4369.13 3219.916 L 4369.33 3220.126 L 4369.54 3220.536 L 4369.54 3220.946 L 4369.33 3221.356 L 4369.13 3221.556 L 4368.51 3221.756 M 4366.67 3221.756 L 4368.51 3221.756 L 4369.13 3221.966 L 4369.33 3222.166 L 4369.54 3222.576 L 4369.54 3223.196 L 4369.33 3223.606 L 4369.13 3223.806 L 4368.51 3224.006 L 4366.67 3224.006 M 4370.89 3222.166 L 4374.57 3222.166 M 4375.92 3220.536 L 4376.33 3220.326 L 4376.94 3219.716 L 4376.94 3224.006 M 4379.31 3219.716 L 4378.7 3219.916 L 4378.5 3220.326 L 4378.5 3220.736 L 4378.7 3221.146 L 4379.11 3221.356 L 4379.93 3221.556 L 4380.54 3221.756 L 4380.95 3222.166 L 4381.15 3222.576 L 4381.15 3223.196 L 4380.95 3223.606 L 4380.75 3223.806 L 4380.13 3224.006 L 4379.31 3224.006 L 4378.7 3223.806 L 4378.5 3223.606 L 4378.29 3223.196 L 4378.29 3222.576 L 4378.5 3222.166 L 4378.9 3221.756 L 4379.52 3221.556 L 4380.34 3221.356 L 4380.75 3221.146 L 4380.95 3220.736 L 4380.95 3220.326 L 4380.75 3219.916 L 4380.13 3219.716 L 4379.31 3219.716~none~gge8~~0~#@$TEXT~P~4281.5~3231.256~0.6~0~~3~~4.5~U1~M 4281.5 3226.72 L 4281.5 3229.78 L 4281.7 3230.4 L 4282.11 3230.81 L 4282.73 3231.01 L 4283.14 3231.01 L 4283.75 3230.81 L 4284.16 3230.4 L 4284.36 3229.78 L 4284.36 3226.72 M 4285.71 3227.53 L 4286.12 3227.33 L 4286.74 3226.72 L 4286.74 3231.01~~gge10~~0~#@$TRACK~1~3~S$181~4298.5078 3264.3268 4264.4922 3264.3268~gge12~0#@$TRACK~1~3~~4267.7642 3236.1575 4268.2072 3236.1575~gge13~0#@$TRACK~1~3~~4281.0216 3236.1575 4281.9947 3236.1575~gge14~0#@$TRACK~1~3~~4294.8011 3236.1575 4295.2358 3236.1575~gge16~0#@$TRACK~1~3~~4298.5078 3241.4967 4298.5078 3251.5268~gge17~0#@$TRACK~1~3~~4298.5078 3263.1892 4298.5078 3264.3268~gge18~0#@$TRACK~1~3~~4264.4922 3264.3268 4264.4922 3263.1892~gge19~0#@$TRACK~1~3~~4264.4922 3251.5268 4264.4922 3241.4967~gge21~0#@$PAD~RECT~4269.697~3234.642~1.1811~2.7559~1~~A1~0~4269.1066 3233.2637 4270.2877 3233.2637 4270.2877 3236.0196 4269.1066 3236.0196~0~gge22~0~~Y~0~0~0.4~4269.697,3234.642#@$PAD~RECT~4271.666~3234.642~1.1811~2.7559~1~~A2~0~4271.0751 3233.2637 4272.2562 3233.2637 4272.2562 3236.0196 4271.0751 3236.0196~0~gge28~0~~Y~0~0~0.4~4271.666,3234.642#@$PAD~RECT~4273.634~3234.642~1.1811~2.7559~1~~A3~0~4273.0436 3233.2637 4274.2247 3233.2637 4274.2247 3236.0196 4273.0436 3236.0196~0~gge34~0~~Y~0~0~0.4~4273.634,3234.642#@$PAD~RECT~4275.611~3234.642~1.1811~2.7559~1~~A4~0~4275.0202 3233.2639 4276.2013 3233.2639 4276.2013 3236.0198 4275.0202 3236.0198~0~gge39~0~~Y~0~0~0.4~4275.611,3234.642#@$PAD~RECT~4277.579~3234.642~1.1811~2.7559~1~~A5~0~4276.9886 3233.2639 4278.1697 3233.2639 4278.1697 3236.0198 4276.9886 3236.0198~0~gge45~0~~Y~0~0~0.4~4277.579,3234.642#@$PAD~RECT~4279.532~3234.642~1.1811~2.7559~1~~A6~0~4278.9411 3233.2637 4280.1222 3233.2637 4280.1222 3236.0196 4278.9411 3236.0196~0~gge51~0~~Y~0~0~0.4~4279.532,3234.642#@$PAD~RECT~4283.485~3234.642~1.1811~2.7559~1~~A7~0~4282.8941 3233.2639 4284.0752 3233.2639 4284.0752 3236.0198 4282.8941 3236.0198~0~gge57~0~~Y~0~0~0.4~4283.485,3234.642#@$PAD~RECT~4285.437~3234.642~1.1811~2.7559~1~~A8~0~4284.8466 3233.2638 4286.0277 3233.2638 4286.0277 3236.0197 4284.8466 3236.0197~0~gge63~0~~Y~0~0~0.4~4285.437,3234.642#@$PAD~RECT~4287.406~3234.642~1.1811~2.7559~1~~A9~0~4286.8151 3233.2638 4287.9962 3233.2638 4287.9962 3236.0197 4286.8151 3236.0197~0~gge69~0~~Y~0~0~0.4~4287.406,3234.642#@$PAD~RECT~4289.374~3234.642~1.1811~2.7559~1~~A10~0~4288.7836 3233.2638 4289.9647 3233.2638 4289.9647 3236.0197 4288.7836 3236.0197~0~gge76~0~~Y~0~0~0.4~4289.374,3234.642#@$PAD~RECT~4291.343~3234.642~1.1811~2.7559~1~~A11~0~4290.7521 3233.2638 4291.9332 3233.2638 4291.9332 3236.0197 4290.7521 3236.0197~0~gge81~0~~Y~0~0~0.4~4291.343,3234.642#@$PAD~RECT~4293.311~3234.642~1.1811~2.7559~1~~A12~0~4292.7206 3233.2639 4293.9017 3233.2639 4293.9017 3236.0198 4292.7206 3236.0198~0~gge87~0~~Y~0~0~0.4~4293.311,3234.642#@$PAD~RECT~4269.295~3239.76~3.937~2.7559~1~~B12~0~4267.3268 3238.3819 4271.2638 3238.3819 4271.2638 3241.1378 4267.3268 3241.1378~0~gge92~0~~Y~0~0~0.4~4269.295,3239.76#@$PAD~RECT~4272.642~3239.76~1.1811~2.7559~1~~B11~0~4272.0513 3238.382 4273.2324 3238.382 4273.2324 3241.1379 4272.0513 3241.1379~0~gge98~0~~Y~0~0~0.4~4272.642,3239.76#@$PAD~RECT~4274.61~3239.76~1.1811~2.7559~1~~B10~0~4274.0198 3238.382 4275.2009 3238.382 4275.2009 3241.1379 4274.0198 3241.1379~0~gge104~0~~Y~0~0~0.4~4274.61,3239.76#@$PAD~RECT~4276.579~3239.76~1.1811~2.7559~1~~B9~0~4275.9883 3238.382 4277.1694 3238.382 4277.1694 3241.1379 4275.9883 3241.1379~0~gge111~0~~Y~0~0~0.4~4276.579,3239.76#@$PAD~RECT~4278.547~3239.76~1.1811~2.7559~1~~B8~0~4277.9568 3238.382 4279.1379 3238.382 4279.1379 3241.1379 4277.9568 3241.1379~0~gge117~0~~Y~0~0~0.4~4278.547,3239.76#@$PAD~RECT~4280.516~3239.76~1.1811~2.7559~1~~B7~0~4279.9253 3238.382 4281.1064 3238.382 4281.1064 3241.1379 4279.9253 3241.1379~0~gge123~0~~Y~0~0~0.4~4280.516,3239.76#@$PAD~RECT~4282.484~3239.76~1.1811~2.7559~1~~B6~0~4281.8938 3238.382 4283.0749 3238.382 4283.0749 3241.1379 4281.8938 3241.1379~0~gge129~0~~Y~0~0~0.4~4282.484,3239.76#@$PAD~RECT~4284.453~3239.76~1.1811~2.7559~1~~B5~0~4283.8623 3238.382 4285.0434 3238.382 4285.0434 3241.1379 4283.8623 3241.1379~0~gge136~0~~Y~0~0~0.4~4284.453,3239.76#@$PAD~RECT~4286.421~3239.76~1.1811~2.7559~1~~B4~0~4285.8308 3238.382 4287.0119 3238.382 4287.0119 3241.1379 4285.8308 3241.1379~0~gge142~0~~Y~0~0~0.4~4286.421,3239.76#@$PAD~RECT~4288.39~3239.76~1.1811~2.7559~1~~B3~0~4287.7993 3238.382 4288.9804 3238.382 4288.9804 3241.1379 4287.7993 3241.1379~0~gge148~0~~Y~0~0~0.4~4288.39,3239.76#@$PAD~RECT~4290.358~3239.76~1.1811~2.7559~1~~B2~0~4289.7678 3238.382 4290.9489 3238.382 4290.9489 3241.1379 4289.7678 3241.1379~0~gge153~0~~Y~0~0~0.4~4290.358,3239.76#@$PAD~RECT~4293.705~3239.76~3.937~2.7559~1~~B1~0~4291.7362 3238.382 4295.6732 3238.382 4295.6732 3241.1379 4291.7362 3241.1379~0~gge159~0~~Y~0~0~0.4~4293.705,3239.76#@$PAD~OVAL~4298.508~3236.256~4.7244~8.6614~11~~0~1.5748~4298.508 3234.2875 4298.508 3238.2245~0~gge164~7.0866~4298.5078 3238.2245 4298.5078 3234.2875~Y~0~0~0.4~#@$PAD~OVAL~4264.492~3236.256~4.7244~8.6614~11~~0~1.5748~4264.492 3234.2875 4264.492 3238.2245~0~gge171~7.0862~4264.4922 3238.2243 4264.4922 3234.2877~Y~0~0~0.4~#@$PAD~OVAL~4264.492~3257.358~4.7244~9.8425~11~~0~1.5748~4264.492 3254.799 4264.492 3259.917~0~gge177~8.2676~4264.4922 3259.9173 4264.4922 3254.7993~Y~0~0~0.4~#@$PAD~OVAL~4298.508~3257.358~4.7244~9.8425~11~~0~1.5748~4298.508 3254.799 4298.508 3259.917~0~gge182~8.2677~4298.5078 3259.9174 4298.5078 3254.7993~Y~0~0~0.4~",
    "RECT~4359.5~3263.5~0.5~0.5~1~gge189~0~0~~~~"
  ],

Do you think that's all the info needed to create a .kicad_mod footprint file or is there more hidden somewhere?

@urish
Copy link
Collaborator

urish commented Sep 5, 2020

Yes, that's exactly the purpose of the issue!

I think that the shape should contain most if not all of the info required for generating the .kicad_mod footprint file. TBH I don't remember all the specifics, but @karinchechik looked into it in the past, perhaps she has some additional info that can help

@greyltc
Copy link

greyltc commented Sep 5, 2020

I was thinking some info might be missing because I don't see the pin names in that string. I was expecting to see A1...A12 and B1...B12

@karinchechik
Copy link

Currently, any file that is not schematic will be converted to '.kicad_pcb'. @greyltc, if you'll try to convert this PCB (the file you get from the link you attached), you will get a kicad_pcb file. From what I can see, it was fully converted. The A1-A12 and B1-B12 are the PAD numbers. When using a footprint, EasyEDA is showing it as LIB that contains multiple shapes chained to 1 string. In the row of the LIB you can see every PAD with its pad number. So nothing is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants