WoodcoreMake the numbers vibe

Commands › Reading the project's data

#ids Reading the project's data

Gives the ids of every object of one kind the export carries: positions, plans, checks…

#ids()

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

The essentials

Data, not a displayIt returns a value: print it, compare it or loop over it.
For a loop#for id in ids("snow-load") includes every snow case.
An unknown kindThe compile stops, listing the valid kinds.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The kind of object, or a calculation domain's id for its cases.
#ids("position").join(", ")the positions, one after the other
#ids("snow-load").len()the number of snow cases

Lines to copy

Minimal call

#ids("position")

Examples

Example 1
#ids("position")
The page ids produces, level 2
Example 2
#for sheet in ids("snow-load") {
  include domain-file("snow-load", sheet)
}
The page ids produces, level 2

Defined in lib/calc-engine-core.typ:424