Fundamentals > Program > Editing a Design > Mass Properties and INTERACT Statements > Updating Mass Properties When Geometry Changes
Updating Mass Properties When Geometry Changes
Use the MASSPROP statement to update mass properties each time geometry changes. After you have specified parts or assemblies for which mass properties are to be updated, you can request the current value of a required parameter through the relations mechanism.
To update mass properties, use the following format:
MASSPROP
PART NAME
ASSEMBLY NAME
END MASSPROP
* 
When specifying the model for which mass properties are to be calculated, enter the model name without an extension.
The MASSPROP statement can contain the IF... ELSE clause. If you add a condition to the MASSPROP statement, the mass properties of an object will be calculated only if that condition is met.
For example:
MASSPROP
IF THICKNESS > 1
PART PLATE
ELSE
ASSEMBLY BLOCK
ENDIF
END MASSPROP
In the preceding example, if the parameter THICKNESS is more than 1, mass properties is recalculated for the part PLATE; otherwise, mass properties for the assembly BLOCK is calculated.