gerbonara/docs/utilities.rst
2022-02-03 19:57:16 +01:00

870 B

Utilities

Physical units

Gerbonara tracks length units using the .LengthUnit class. .LengthUnit contains a number of conventient conversion functions. Everywhere where Gerbonara accepts units as a method argument, it automatically converts a string 'mm' or 'inch' to the corresponding .LengthUnit.

gerbonara.utils.LengthUnit

Format settings

When reading or writing Gerber or Excellon, Gerbonara stores information about file format options such as zero suppression or number of decimal places in a .FileSettings instance. When you are writing a Gerber file, Gerbonara picks reasonable defaults, but allows you to specify your own .FileSettings to override these defaults.

gerbonara.cam.FileSettings