Stratal CAD

Design parameters and expressions

Help centre · 3D, parts and assemblies

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

Steps

  1. Click 3D > Part > Parameter (PARAM, alias PARAMETERS). It lists the parameters you already have.
  2. At "Parameter (name = expression) or [List/Delete/Rename/Comment] <done>" type, for example, width = 120.
  3. The command line confirms, for example "width = 120 = 120." and says how many dimensions and features follow it.
  4. Type another parameter, or press Enter to finish.
  5. To use a parameter, type its name or an expression wherever a dimension or feature value is asked for: in DCEDIT, a new DC* dimension, or EDITFEATURE.

Writing expressions

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

  1. Click the arrow under 3D > Part > Parameter and choose Parameter Table….
  2. The table shows each parameter's name, expression, value (or why it has none), unit and comment.
  3. 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.
  4. Each button runs PARAM. What PARAM says, such as the reason for a refusal, shows under the table.

Example

  1. PARAM: width = 120, then height = width / 2, then thick = 10mm.
  2. Bind the sketch's dimensions to width and height with DCEDIT, and the extrusion's distance to thick with EDITFEATURE.
  3. PARAM: width = 160. The sketch becomes 160 by 80, and the part rebuilds in one undo step.

Tips and common mistakes

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

Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.