Expressions
Many parameters in MatterCAD accept mathematical expressions instead of plain numbers. This enables parametric design where changing one value automatically updates related dimensions.

How to Use
Instead of typing a plain number in a parameter field, you can type a math expression. For example:
20 + 5evaluates to 25pi * 10evaluates to 31.416width * 2references another parameter named “width”
Available Constants
- pi - 3.14159… (the ratio of circumference to diameter)
- tau - 6.28318… (2 * pi, a full revolution in radians)
Supported Operations
- Addition:
+ - Subtraction:
- - Multiplication:
* - Division:
/ - Parentheses:
(and)for grouping
Tips
- Expressions are supported in any field that shows
DoubleOrExpression,IntOrExpression, orStringOrExpressionin the code – in practice, most numeric fields in design tools accept them - Use expressions to create relationships between parameters – for example, set a hole’s diameter to
outer_diameter - 4so it always has 2mm walls - Expressions update automatically when referenced values change
- You can use expressions in Array operations to create parametric patterns
Related
- Components - Create reusable parameterized designs
- Editing Objects - Working with object parameters