How to create capacitors and electrical resistors - icub-tech-iit/cad-libraries GitHub Wiki
The components with a different name, but same dimensions of package, can be created as a Family Table. In the Family Table we have to add the variants:
- Alias (file name).
Common Name(i.e. the family of the electrical part and the name of the Generic instance for Creo); it must be the same for each instance of the family: use*.DESCRIPTION(it has to match Wingst).HEIGHTdimension (it can be found in Wingst in the row "Geometry.Height").

Every time we add a variant on the Family Table, we have to add it also in the List of Family Tables for capacitors and resistors.
TIP: using a dedicated website to convert an Excel table to Markdown makes life easier:
tablesgenerator.com is a good one, for instance.
- Open the Family Table in Creo.
- Temporarily delete the
Common Namecolumn.- Select the table and copy (
Ctrl+C).- Open the website in a browser and click
File->Paste table data-> click on the blank box ->Ctrl+V.
AlsoCtrl+Vdirectly on the table should work. Pay attention to be working under the Markdown tab, since other languages are available for conversions.- Click the
Generatebutton.- Copy the result and paste it in the GitHub page.
In case you have to create a new Generic, you can open the part capacitors_and_resistors.prt and click File -> Save As -> New part.
Things to check and modify accordingly to @icub-tech-iit/silo-electr where needed:
- The dimension of the footprint (same for all family parts).

- The maximum tolerance dimensions of the package (same for all family parts).

- Pay attention that the
Common Nameof the Generic is the name of the "family" without the.prtextension, in case change it with a rename plugged "renamed in session" and changing the name

NOTE: please reduce small surfaces as much as possible. Use cosmetics features for low interest details.