What a parameter is
A parameter is a named value kept with the model, such as wall = 2 mm or
teeth = 12. An equation is a parameter worked out from others, such as
depth = wall * 3. Dimensions and feature values can use them by name, so
changing one parameter rebuilds everything that uses it.
A parameter is a length, an angle or a plain number, taken from what you type:
| You type | Kind |
|---|---|
2 mm, 0.5 in, 1.2 m |
Length |
30 deg, 0.5 rad |
Angle |
12, 2.5 |
Number |
Lengths are kept in millimetres whatever unit you type, so changing the document's display unit never changes the model.
The Parameters panel
Open Inspect > Parameters. The panel lists each parameter's name, expression, value and comment.
- Choose New, type a name and press Enter. A name starts with a letter or underscore and continues with letters, digits and underscores.
- Type its value or formula and press Enter.
- Click any name, expression or comment to change it. Enter applies the change, Tab applies it and moves to the next cell, and Escape leaves the cell as it was.
Up and Down move the selected parameter in the list. Delete removes it. If the parameter is in use, the panel first names what uses it; choose Delete again and each of those keeps its present value as a plain number, so the model does not change.
Renaming a parameter renames it everywhere it is used. A name typed in
another case, such as WALL for wall, is corrected to the case of its
definition. Each change is one step for Undo.
A parameter whose formula uses t, such as xc = radius * cos(t), is a
function of t for equation curves. It has no single
value, so its Value shows f(t) with its kind, and only a curve's equations
and other functions of t can use it. The name t itself is kept for the
curve variable and cannot name a parameter.
The status line shows what uses the selected parameter, or why a change was refused. The panel cannot change parameters while a feature preview or a sketch edit is open: finish it first.
Formulas
A formula can use numbers, parameter names, + - * / % and ^,
parentheses, pi and e, and the functions sqrt, abs, floor,
ceil, round, sin, cos, tan, asin, acos and atan. The
trigonometric functions work in degrees.
Lengths and angles are carried through a formula:
sqrt(width^2 + height^2)of two lengths is a length.width / pitchof two lengths is a number.wall * tan(draft)of a length and an angle is a length.
Adding a length to an angle, or giving a length where an angle is needed, is refused with the reason.
Using a parameter in a value
Type a parameter's name, or a formula that uses one, wherever a feature panel or a sketch dimension takes a value: the depth of an Extrude, the radius of a Fillet, the count of a Pattern, a dimension in a sketch. The value then follows the parameter, and its field shows the formula.
- A plain number in a length takes the document's display unit when you
enter it. The field then shows that unit, for example
wall + 2 mm. - To create a parameter where you are, type
name = value. Typingwall = 2in a depth field creates the parameterwalland links the depth to it. Cancelling the feature discards the parameter with it. - Typing a plain number over a formula removes the link and keeps the number.
A sketch dimension that follows a parameter is marked fx. A feature's
information in the Feature Tree lists each linked value with its formula.
The sketch Offset distance and the material properties also accept formulas and parameter names, but keep only the value.
Limits
- A formula reads parameters only. It cannot read a dimension, a feature value or a measurement of the model.
- Typed drag and spin moves and sketch precision coordinates take plain numbers.
- If a formula typed for a dimension sends the sketch to conflict resolution, the dimension keeps the value but not the formula: type it again afterwards.
- A sketch Pattern's count is set by dragging and cannot follow a parameter; a body Pattern's count can.
- A model that holds parameters cannot be opened by an earlier release of Aretu CAD.
AI operations
The assistant can list, create, change and delete parameters and link a
feature value or dimension to a formula, with list_parameters,
set_parameter, delete_parameter and set_value_expression.