Commands › Printing a drawing or an object
#image-static-model Printing a drawing or an object
Prints a static model as an image: the system drawn in Woodcore, its supports, loads and dimensions.
#image-static-model(,
: , : , :
)Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.
modelrequiredThe model's id, as Woodcore saved it.
highlightoptional · default noneThe parts of the system put under a halo, by id.
highlightoptional · default nonenoneFree text, for example:
highlight: "S001"widthoptional · default 100%The width the system is printed at, all the room it is given by default.
widthoptional · default 100%100%Free text, for example:
width: 60%detail-figureoptional · default autoWhat the drawing of the system shows.
detail-figureoptional · default autoautoits defaults: loads and dimensions"loads"the loads"dimensions"the dimensions()the drawing alone, nothing moreHover a value: its call and what it prints.
#image-static-model("Bankli-Fall1", width: 60%)What it prints
#image-static-model("Bankli-Fall1", width: 60%, detail-figure: "loads")What it prints
#image-static-model("Bankli-Fall1", width: 60%, detail-figure: "dimensions")What it prints
#image-static-model("Bankli-Fall1", width: 60%, detail-figure: ())What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
The essentials
An image, not a figureIt goes in a native
#figure: the caption and the label are the document's own.Cited by its label
<label> after the figure, @label in the text: numbered by Typst.Without loads
detail-figure: "dimensions" keeps the system and its dimensions, without the loads.Arguments
| Argument | Status | What it does, and examples |
|---|---|---|
| The line's arguments | ||
| required | The model's id, as Woodcore saved it. #image-static-model("Bankli-Fall1")the bench, first case"Bankli-Fall2"another case of the same system | |
| What is printed | ||
| optional | The parts of the system put under a halo, by id. highlight: "S001"one parthighlight: ("S001", "S002")several parts | |
| optional | The width the system is printed at, all the room it is given by default. width: 60%a little over half the columnwidth: 12cma fixed width | |
| optional | What the drawing of the system shows. detail-figure: "dimensions"the system and its dimensions, no loadsdetail-figure: ()the system alone | |
Lines to copy
Minimal call
#image-static-model("Bankli-Fall1")Complete call
#image-static-model("Bankli-Fall1", highlight: none, width: 100%, detail-figure: auto)Examples
#figure(image-static-model("Bankli-Fall1"), kind: image, caption: [Statisches System]) <sys-1>#figure(image-static-model("Bankli-Fall1", detail-figure: "dimensions", width: 60%), kind: image, caption: [System ohne Lasten])Defined in lib/calc-engine-drawings.typ:859