Professional Documents
Culture Documents
8 Expressions
Purpose
Objectives
• Edit Expressions.
Overview
Expressions are arithmetic or conditional formulas that define the
characteristics of a part. Expressions define the dimensions and relationships
of a model.
Expressions are automatically created when:
• a feature is created.
• a sketch is dimensioned.
• a feature is positioned.
All expressions have a single, unique name and a string or formula that
can contain a combination of variables, functions, numbers, operators, and
symbols.
Expression names are variables that you can insert in the formula strings of
other expressions. This can be helpful in breaking up lengthy formulas as
well as defining relationships that can be used in place of numbers.
Expression formulas are evaluated for values.
Here are some examples of expressions, their formulas and their resulting
values:
Case Sensitive.
2 Formula Can contain a combination of numbers,
functions, operators, and other expression 6
name s.
3 Dimensionality Choose from Constant, Length, Area, Volume,
Mass, and many others
4 Units Units appropriate to the dimensionality will be
available in a pull-down.
The system will handle unit conversions
automatically if, for example, you specify
inches in a metric part.
Not active during editing or if dimensionality
is constant.
5 More Options
6
1 Listed Choose from User Defined, Named, Filter by
Expressions Name, Filter by Value, Filter by Formula ,
Unused Expressions, Object Parameters,
Measurements, and All
2 Expression list List contains columns for Name (followed by
usage in the part), Formula, Value, Units, and
Comment
3 Accept Edit
4 Reject Edit
5 Less Options
Creating Expressions
Procedure:
• Choose the Dimensionality and Units for the expression.
• Key in the name of the expression in the Name field and press the
<Enter> key.
• Key in the formula for the expression in the Formula field and press the
<Enter> key.
After keying in the name of the expression the <Tab> or = key can be
used to advance the cursor to the Formula field.
Editing Expressions 6
Procedure:
• Display the Expressions dialog with More Options.
• Choose the expression to modify from the expression list. The expression
will be displayed in the Name and Formula field s.
Editing the name of an expression will also edit the formula of any
expression that references it.
List Referencers
The List Referencers option provides a means of finding out if an expression
is referenced in another expression and what feature(s) use the expression.
To use this option, select the expression, and choose List Referencers from
the MB3 pop-up menu.
The dialog lists all of the expressions in the part. Notice the
default expression names p0, p1, and p2 whi ch define the block.
Choose OK.
This lists only the expressions in the part that you explicitly
named.
The formula for height is a constant numeric value 6/2. The
desired design intent is that the height grows proportionally
with the width. This relationship could not be established upon
creation as the width expression was not in existence.
Choose OK.
The block will update with the new width and height.
6
Step 9: Close the part.
Summary
Expressions are algebraic or arithmetic statements used to control the
characteristics of a part. All expressions have a name, a formula, and a value
and are used to define the dimensions and relationships of a model.
In this lesson you:
• Created Expressions.
• Edited Expressions.