Skip to content

Commit bb06b91

Browse files
Officially created a game plan for writing the script, and documented it
1 parent 4ec19fd commit bb06b91

File tree

1 file changed

+41
-8
lines changed

1 file changed

+41
-8
lines changed

Conversion/README.md

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@ Conversion tools and information
33

44
This directory contains information regarding getting the libraries transfered from eagle to kicad.
55

6-
Tasks:
7-
8-
* Convert bulk of libraries to Kicad
9-
* Combine footprints and have single source for common footprints
10-
* Convert .mod to new format: .pretty (.kicad_mod)
11-
* Determine where the descriptions and prod IDs should live
6+
## Process
7+
8+
This is the evolving breakdown of tasks required to transfer the full set of sparkfun libraries.
9+
10+
* Convert bulk of libraries to Kicad *Manual operation*
11+
* Use "Out put new part for every foot print type" in lachlanA's ULP
12+
* Load and save-as for all .lib files in order to produce .dcm files *Manual operation*
13+
* Use custom script to (for each Eagle .lbr):
14+
* Detag and copy descriptions to .dcm files
15+
* Add fields for PROD_ID for each KiCad part
16+
* Add PROD_ID:XXX-00000 keyword for each part
17+
* Scrub errant footprint filters by reference Footprint field
18+
* Report statistics to validate script operation
19+
* Load and save-as for all .mod files to convert to .pretty format. *Manual operation*
20+
* Combine all .mod files to a single .pretty folder. *Manual operation*
21+
* There will be duplicate file names (should be identical)
22+
* There will be similar footprint .mod files (should be identical)
23+
24+
## Notes that led to the above process
1225

1326
### Convert bulk of libraries/boards to Kicad
1427

@@ -22,13 +35,13 @@ https://github.com/lachlanA/eagle-to-kicad
2235

2336
**Note:** This is very hacky. It would be best to establish the proper libraries first, then link to those rather than have the script spit out specific libs for each board. This insures the resultant file is consistent with the KiCad libraries.
2437

25-
#### Analysis of naming
38+
#### Analysis of part naming
2639

2740
In order to write a script, it must link parts from two files. It seems the only way to do that is by using the name of the component/footprint/etc, so let's explore that. Using these eagle export scripts, there are a few options for naming convention.
2841

2942
.. But first let's see what happened to a highly nested component in eagle... the 10uF cap. In eagle, the part is called "10UF" and has sub-parts -0603-... etc for all packages. In KiCad the symbol is called "10UF" and there are 4 suggested footprints within the footprint filter that are generated, 0603, 0805, 1206, 1210. This is kind of a problem because I really want to retain a prod_id for each package, so these will need to be un-nested.
3043

31-
To solve this, during library export select the drop down "Combine Parts/package variants where possible" and choos "Out put new part for every foot print type" instead. The result is that each variant now has it's own (duplicate) symbol. (note: the filter is still filled with all possible footprints. **This will need to manualy be fixed**)
44+
To solve this, during library export select the drop down "Combine Parts/package variants where possible" and choose "Out put new part for every foot print type" instead. The result is that each variant now has it's own (duplicate) symbol. (note: the filter is still filled with all possible footprints. **This will need to manualy be fixed**)
3245

3346
For instance, eagle part in file "SparkFun-Capacitors.lbr", the 10UF is:
3447

@@ -49,6 +62,26 @@ The resultant parts in KiCad are named:
4962

5063
The conclusion is that the script must identify parts by the part-per-footprint names within the exported libraries for application of prod_id fields.
5164

65+
#### Analysis of library naming
66+
67+
Let's again look at "SparkFun-Capacitors.lbr". After export, two files are created:
68+
69+
* SparkFun-Capacitors.lib
70+
* SparkFun-Capacitors.mod
71+
72+
When the .lib is re-saved, two files are produced (could be renamed here):
73+
74+
* SparkFun-Capacitors.lib -- library of symbols and fields and stuff
75+
* SparkFun-Capacitors.dcm -- Description and some other stuff
76+
77+
When the .mod is re-saved, a directory is created as such:
78+
79+
* somename.pretty
80+
* 0402.kicad_mod
81+
* 0603.kicad_mod
82+
* 0603-POLAR.kicad_mod
83+
* ... etc.
84+
5285
### Combine footprints and have single source for common footprints
5386

5487
A tool for moving symbols and footprints between .mod and .lib files:

0 commit comments

Comments
 (0)