Parameters are named values such as width = 120 that dimensions and feature values can read. Use them to drive a whole part from a few key sizes.
Before you start
- Needs the core.3d feature (3D modelling).
- Parameters belong to a drawing. In an assembly, each part file has its own.
Steps
- Click 3D > Part > Parameter (
PARAM, aliasPARAMETERS). It lists the parameters you already have. - At "Parameter (name = expression) or [List/Delete/Rename/Comment] <done>" type, for example,
width = 120. - The command line confirms, for example "width = 120 = 120." and says how many dimensions and features follow it.
- Type another parameter, or press Enter to finish.
- To use a parameter, type its name or an expression wherever a dimension or feature value is asked for: in
DCEDIT, a newDC*dimension, orEDITFEATURE.
Writing expressions
- Numbers, units (
5mm,2in,3deg),+ - * / ^, brackets,pi, and the functionssqrt,abs,sin,cos,tan,asin,acos,atan. - Other parameters by name, for example
depth = width / 2 + 5mm. - Units are converted to the drawing's units.
- Names start with a letter and use letters, digits and
_, up to 64 characters. Names that differ only in case are the same name.
Kinds of value
| Kind | When | Used for |
|---|---|---|
| Length | The expression has a length unit or reads a length, for example 120mm |
Lengths, distances, depths |
| Angle | The expression has an angle unit (deg, °, rad, grad) or an inverse trigonometric function |
Angle dimensions, draft angles |
| Plain number | Anything else | Anywhere: drawing units for a length, degrees for an angle; counts and scales take only plain numbers |
Lengths and angles do not mix (width + draft is refused). A length divided by a length is a plain number. The list shows (length) or ° after each value.
Options
| Option | What it does |
|---|---|
| List | Lists the parameters with their expressions and values |
| Delete | Deletes a parameter that nothing reads |
| Rename | Gives a parameter a new name in one undo step; every expression that reads it is updated |
| Comment | Sets or clears a one-line comment on a parameter |
The Parameter Table
- Click the arrow under 3D > Part > Parameter and choose Parameter Table….
- The table shows each parameter's name, expression, value (or why it has none), unit and comment.
- Type a name and an expression below the table and click Add. Choose a row and click Edit… (or double-click it), Rename… or Delete.
- Each button runs
PARAM. What PARAM says, such as the reason for a refusal, shows under the table.
Example
PARAM:width = 120, thenheight = width / 2, thenthick = 10mm.- Bind the sketch's dimensions to
widthandheightwithDCEDIT, and the extrusion's distance tothickwithEDITFEATURE. PARAM:width = 160. The sketch becomes 160 by 80, and the part rebuilds in one undo step.
Tips and common mistakes
- Avoid names that start like a prompt option. A parameter called
btyped alone at a prompt is read as the option Blind. - A parameter read by a sheet metal or weldment part cannot be renamed until you change that part's values with its own commands.
- Undo reverses a parameter change and the rebuild together.
Troubleshooting
| Message or symptom | What it means and what to do |
|---|---|
| "PARAM not applied: width: it depends on itself (width -> depth -> width)." | The parameters read each other in a loop. Break the loop. |
| "PARAM not applied: ...: it reads "...", which is not a parameter." | Make the missing parameter first, or fix the spelling. |
| "a length and an angle cannot be added or subtracted" | The expression mixes kinds. Use one kind, or divide to get a plain number. |
| "Not deleted: ...; bind it to a number first." | A dimension, feature or other parameter still reads it. Change those first. |
| ""..." is a function, unit or constant of expressions" | The name is reserved (for example pi, sin or a unit). Choose another name. |
| "this drawing has no units, so a length with a unit cannot be converted; type a plain number ..." | Set the drawing's units, or type plain numbers. |
Related
Related
- Making mesh bodies
- Mesh Studio: selecting points, edges and faces
- Mesh Studio: editing tools
- Mesh Studio: subdivision, modifiers and booleans
- Parametric modelling overview
- Creating a sketch
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.