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.
kindrequiredThe kind of object, or a calculation domain's id for its cases.
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
| Argument | Status | What 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
#ids("position")#for sheet in ids("snow-load") {
include domain-file("snow-load", sheet)
}Defined in lib/calc-engine-core.typ:424