defn set-main-module (module:Instantiable)
Define the "main" module of the current design.
pcb-module main-module : ... set-main-module(main-module)
The main module is the root of the entire JITX design, and is analogous to a "root" schematic sheet.
defn set-board (board:Board)
pcb-board object used by the current design.
pcb-board my-board : ... set-board(my-board)
This specifies the
pcb-board which defines the stackup,
board outline, and signal boundary of the physical board
used in the design.
Multi-board designs require separate calls to
defn set-rules (rules:Rules)
Set the design rules for the current design.
pcb-rules jlc-pcb-rules : ... set-rules(jlc-pcb-rules)
The design rules takes the name of a
pcb-rules as an
argument and configures the design rules used for generators
and checks in the current design. This will be cleared on
defn set-default-rules (rules:Rules)
Sets the default rules for all designs in the current program.
pcb-rules jlc-pcb-rules : ... set-default-rules(jlc-pcb-rules)
Default rules differ from design rules set in
set-rules in that
they are not cleared between designs, and serves as temporary or
default values for design rules so generators can make progress
even if you have not set the rules for your design.
Default rules can also be used to share design rules in multi-design programs.
defn clear-default-rules ()
Removes default rules if they are set. This is primarily used for testing.