Sheets
The sheet
keyword can be used to group circuits into different sheets based on standard paper sizes.
At the start of the script, specify the type of sheet with the following code: document.sheet_type = <sheet_type_function>()
.
The standard library supports the following sheet_type_functions: sheet_A1()
, sheet_A2()
.. until sheet_A6()
Example:
import lib
# Set default sheet type to A6
document.sheet_type = sheet_A6()
vcc = supply("VCC")
gnd = dgnd()
# Sheet created with sheet A6 graphic
sheet:
at vcc
wire down 100
add res(10k)
wire down 100
to gnd
# Another sheet with sheet A6 graphic
sheet:
at vcc
wire down 100
add cap(100n)
wire down 100
to gnd