Commands › Printing a drawing or an object
#position Printing a drawing or an object
Prints one position on a line: its id in its box, as the plan draws it, then the fields chosen.
#position(,
: ,
: , :
)Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.
idrequiredThe position's id, as the plan draws it.
labeloptional · default noneA name of the call's own, printed after the id.
labeloptional · default nonenoneFree text, for example:
label: "Pfette"descroptional · default noneA sentence of the call's own, printed after the fields.
descroptional · default nonenoneFree text, for example:
descr: "über Achse B"category-showoptional · default ("type", "material", "strength-class")The fields printed, in their order.
category-showoptional · default ("type", "material", "strength-class")("type", "material", "strength-class")its defaults: type, material, class"type"the type"material"the material"strength-class"the strength class"section-type"the section type"dimension"the section"units"the number of pieces"moisture-class"the moisture class"length"the length the plans draw"label"its label"descr"its descriptionHover a value: its call and what it prints.
#position("T001")What it prints
#position("T001", category-show: "type")What it prints
#position("T001", category-show: "material")What it prints
#position("T001", category-show: "strength-class")What it prints
#position("T001", category-show: "section-type")What it prints
#position("T001", category-show: "dimension")What it prints
#position("T001", category-show: "units")What it prints
#position("T001", category-show: "moisture-class")What it prints
#position("T001", category-show: "length")What it prints
Prints the same as "label".
#position("T001", category-show: "label")What it prints
Prints the same as "length".
#position("T001", category-show: "descr")What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
The essentials
Read from the exportIts fields come from data/positions/; an unknown position stops the report.
RenumberedA position kept under an old number says so in orange.
The fields, in their order
category-show: picks the fields and their order.Arguments
| Argument | Status | What it does, and examples |
|---|---|---|
| The line's arguments | ||
| required | The position's id, as the plan draws it. #position("T001")the purlin T001"S110-old"a renumbered position, said in orange | |
| What is printed | ||
| optional | The fields printed, in their order. category-show: ("type", "dimension")the type and the sectioncategory-show: "length"a single field | |
| Label and description | ||
| optional | A name of the call's own, printed after the id. label: "Pfette"a short namelabel: [Pfette *Achse B*]content | |
| optional | A sentence of the call's own, printed after the fields. descr: "über Achse B"where it isdescr: "verstärkt 2026"what sets it apart | |
Lines to copy
Minimal call
#position("S001")Complete call
#position("S001", label: none, descr: none, category-show: ("type", "material", "strength-class"))Examples
#position("T001")#position("T001", label: "Pfette", category-show: ("type", "material", "strength-class", "dimension", "units", "length"))Defined in lib/positions.typ:153