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).
  • HEIGHT dimension (it can be found in Wingst in the row "Geometry.Height").

capres1

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 Name column.
  • 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.
    Also Ctrl+V directly on the table should work. Pay attention to be working under the Markdown tab, since other languages are available for conversions.
  • Click the Generate button.
  • 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).

capres2

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

capres3

  • Pay attention that the Common Name of the Generic is the name of the "family" without the .prt extension, in case change it with a rename plugged "renamed in session" and changing the name

capres4

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