DEPENDS
Shows what an expression depends on - the points, variables and elements its definition names, what those are defined by, and so on, to a number of levels - as a graph in Mermaid syntax.
Syntax
DEPENDS depth expression,expression,…
DEPENDS expression,expression,…
| Argument | Meaning |
|---|---|
| depth | How many levels to follow (3 if left out; 0 shows the expression alone). |
| expression | Any expression: a point (P3), a variable (W), an element (@1) or a formula (L*2). |
Examples
L=300,"Length"
T=3
W=L/2+T
P1=[L,0]
P2=P1+[0,W]
P3=LERP(P0,P2,0.5)
DEPENDS 3 P3
shows, in the Interactive window, P3 → and this graph (an arrow from each thing to what it depends on, each labelled
with its definition):
Notes
Each argument gets a graph of its own, shown as expression → graph in ParametrIQ CAD's Interactive
window and in the playground, as PRINT shows values. Copy it into anything that
draws Mermaid - a Markdown file on GitHub, mermaid.live, many wikis - to see it drawn.
Something used by several others appears once, with an arrow from each. A point, variable or element at the last level
that depends on more is marked …: give a bigger depth to follow it (at most 50). An element depends on the points it
is drawn on and the elements it names; a point on an element (ONELEMENT(@1,0.5)) depends on that element. Nothing is
worked out and nothing changes. DESCRIBE shows a single definition; the
Properties panel's Depends on lists what a selection depends on.