racklet / electronics-prototyping

Design files for electronic components for use in Racklet
Apache License 2.0
3 stars 0 forks source link

Add pretty print functions to KiCad evaluator make schematics more readable #20

Closed chiplet closed 3 years ago

chiplet commented 3 years ago

The current evaluator implementation overwrites the Value field for each component that contains a Value_expr field. The evaluator does not support SI prefixes for representing orders of magnitude as is usually done in circuit schematics. The Value field is used by KiCad to render the value of the component in the schematic so automatically populated Value fields can lead to a rather unreadable schematic as shown in Figure 1.

It would be nice to add pretty formatting pass to the value fields before they are written back to schematic file after the all unknowns have been evaluated. The output could look like something shown in Figure 2.

Figure 1 image

Figure 2 image

CC @twelho @luxas