Skip to content

Symbol Layers

The draw statement inside a pcb-symbol adds symbol artwork on a named schematic layer.

Signature

  draw(<String>) = <Shape>
  • The &lt;String> is an identifier that specifies which layer in the schematic symbol the provided artwork will be drawn to. The most commonly used layers are "foreground" and "background".
  • The &lt;Shape> is a geometric shape like Circle, Rectangle, etc that will be drawn as artwork on the associated layer.

Usage

pcb-symbol test:
  ...
  draw("foreground") = Rectangle(10.0, 10.0)
  draw("background") = loc(0.0, 20.0) * Circle(5.0)
  draw("background") = loc(0.0, -20.0, 45.0) * Rectangle(10.0, 10.0)

Notice that we can use the loc function to translate and rotate shapes within the coordinate frame of the pcb-symbol

Example Rendering:

Layer Rendering

Description

draw places geometry on a named layer in the schematic. The most commonly used layers in JITX schematics are "foreground" and "background".