SELECT
A variable whose value is one of several named choices: a board's thickness, chosen by its material. Other variables can go with each choice (a crease allowance, a K-factor, a seam allowance), taking the chosen one's values.
Syntax
SELECT name(,"label")
"choice" = value(, NAME=value …)( DEFAULT)
…
END
| Argument | Meaning |
|---|---|
| name | The variable, T for a material's thickness. |
| "label" | What it is, as Run Parametric and the Variables panel's Run View ask for it. |
| "choice" | A choice's name, as it is listed. |
| value | Its value: any expression. |
| NAME=value | Another variable, with its value when this choice is chosen. A variable given by one choice and not another can't be worked out while the other is chosen. |
DEFAULT |
The choice chosen. If none is marked, the first is. |
Example
SELECT T,"Material"
"Folding boxboard 0.45 mm" = 0.45, CA=0.5
"E flute (1.5 mm)" = 1.5, CA=1.5 DEFAULT
"B flute (3 mm)" = 3, CA=3
END
L=80,"Length"
P10=[L+T+CA,0]
T is 1.5 and CA 1.5; choose B flute in Run View and they become 3 and 3, and P10 moves with them.
Notes
- The block is written back as it is, the choice chosen marked
DEFAULT, when the drawing is saved. - A new drawing (File › New) can start with the materials of the industry you work in as a SELECT block: see Materials.
SELECT [points], selecting the elements on points, is recognised but does nothing yet. Select with the Select Tool, or with Edit › Select Same Layer, Select Same Kind and Select Inverse.