WoodcoreMake the numbers vibe

Commands › Calculating in the report

#distance Calculating in the report

Prints SIA 265:2021's minimum spacings and timber thicknesses for a fastener, computed in mm for its diameter.

#distance(, ,
  : , : ,
  : , : ,
  : , : ,
  : , : 
)

Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.

The essentials

The norm's tablesTables 24, 27, 28, 32, 33, 36 to 41, read from calc/norms/.
All or oneWithout table:, every table of the kind and diameter, one under the other.
A named diameterd may be a variable noted with #var, with its unit.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The diameter, in mm. For a ring, its outer diameter.
#distance(8, "screw", table: 38)8 mm
#distance("d", "dowel", label: none)the variable d, noted with #var in cm
required
The kind of fastener, in English or by its German name.
"Stabdübel"Woodcore's German name
"staple"refused: no table in SIA 265
What is printed
optional
The table or tables printed.
table: 28table 28 alone
table: (36, 38)those tables, in that order
optional
The force–grain angle in degrees, for ring spacing (table 41).
alpha: 30the spacing along the grain at 30°
#distance(80, "ring", alpha: 30)rings of 80 mm, the force at 30° to the grain
Label and description
optional
Each table's title.
label: "Anschluss Sparren – Pfette"your title, for one table
label: nonethe tables without a title
optional
A footnote on the first table's title.
descr: "Vollgewindeschrauben, nicht vorgebohrt."what the table assumes
descr: "Vorgebohrt, Douglasie."a word on the timber
Citation
optional
The citation on the right of the table.
norm: nonewithout citation
norm: "SIA 265:2021"the norm with its edition
optional
The table cited.
norm-section: "6.5.2.3"a clause rather than the table
norm-section: "Tab. 38"the table, shortened
Other
optional
The name Woodcore finds this call by in a domain it wrote.
id: "dist-1"the call Woodcore rewrites
id: "abstand-SD10"found by typst query too
optional
The tables' level of detail.
level: 1the tables alone, no title and no citation
level: 2with titles and citation

Lines to copy

Minimal call

#distance(8, "nail")

Complete call

#distance(8, "nail", table: auto, label: auto, descr: none, norm: auto, norm-section: auto, alpha: none, id: none, level: auto)

Examples

Example 1
#distance(3.1, "nail", table: 28)

This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.

Example 2
#distance(8, "screw", table: 38, label: "Anschluss Sparren – Pfette", descr: "Vollgewindeschrauben, nicht vorgebohrt.")

This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.

Example 3
#distance(12, "Stabdübel")

This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.

Example 4
#distance(80, "ring", alpha: 30)

This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.

Example 5
#var("d", 1.6, "cm")
#distance("d", "dowel", label: none)

This example's page sets a SIA standard's table in full; it is not published on this site. Woodcore's «Commands» tab shows it.

Defined in lib/distance.typ:265