Commands › Printing a drawing or an object
#image-section Printing a drawing or an object
Prints a schematic section as an image: the section drawn in Woodcore, the sheet's storey highlighted.
#image-section(,
: , : , : ,
:
)Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.
planrequiredThe section, by its id; none draws a frame in its place.
storeyoptional · default noneThe storey to highlight, as its bubble names it.
storeyoptional · default nonenoneFree text, for example:
storey: "EG"scaleoptional · default noneThe n of the 1:n, where the section is calibrated.
scaleoptional · default nonenoneFree text, for example:
scale: 200widthoptional · default noneThe section's width, where it has no scale.
widthoptional · default nonenoneFree text, for example:
width: 50mmtitleoptional · default autoThe line above the section.
titleoptional · default autoauto«Schematic section» in the report's language, with the scalenoneno title[…]your titleHover a value: its call and what it prints.
#image-section("Fluchttreppe", width: 50mm)What it prints
#image-section("Fluchttreppe", width: 50mm, title: none)What it prints
#image-section("Fluchttreppe", width: 50mm, title: [Schnitt A-A])What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
The essentials
For an export sheetWoodcore sets it with a
#place of the sheet; it prints on its own too.The storey in red
storey: covers it in translucent red with a dashed outline.To scale
scale: draws it at 1:n where the section is calibrated, else width:.Arguments
| Argument | Status | What it does, and examples |
|---|---|---|
| The line's arguments | ||
| required | The section, by its id; none draws a frame in its place. #image-section("Fluchttreppe", width: 50mm)the escape stair's section#image-section(none, width: 50mm)an empty frame, until the section exists | |
| What is printed | ||
| optional | The storey to highlight, as its bubble names it. storey: "EG"the ground floorstorey: "1.OG"the first floor | |
| optional | The n of the 1:n, where the section is calibrated. scale: 200at 1:200scale: noneat the width width: | |
| optional | The section's width, where it has no scale. width: 50mma lengthwidth: 50millimetres | |
| Label and description | ||
| optional | The line above the section. title: [Schnitt A-A]your titletitle: noneno title | |
Lines to copy
Minimal call
#image-section("Fluchttreppe", width: 60mm)Complete call
#image-section("Fluchttreppe", storey: none, width: 80mm, title: auto)Examples
#show: sheet.with(format: "A6", landscape: true)
#place(top + left, dx: 12mm, dy: 14mm, image-section("Fluchttreppe", width: 50mm)) <sheet-section>#show: sheet.with(format: "A6", landscape: true)
#place(top + left, dx: 12mm, dy: 14mm, image-section(none, title: [Schnitt A-A])) <sheet-section>Defined in lib/sheet.typ:137