Using Equations
In this example, you modify the size of a cube using the Equations, Global Variables and Dimensions and Modify dialog boxes.
- Open install_dir\samples\whatsnew\Equations\sample1.sldprt.
- In the FeatureManager design tree, right-click the Equations folder and click Manage Equations.
The Equations, Global Variables and Dimensions dialog box opens.
- Click the Equations
view.
- Click the first row in Global Variables for BlockSize and change the entry in the Value/Equation column from 50 to 100.
- Press Tab to move to the next cell in the row.
The number automatically updates in the Evaluate column and the cube rebuilds. All the dimensions that use the global variable, BlockSize, also double in number.
- Click Undo
. Because Automatically Rebuild is selected, the cube resizes to the original dimensions.
- Click Redo
to restore the cube to its new dimensions.
- Suppress the Cut-Extrude1 feature:
- In the Features column, click an empty cell.
- In the FeatureManager design tree, click Cut-Extrude1.
The Feature name appears in the dialog box.
- Press Tab and = (equals sign) in the next cell.
The = (equals sign) turns red to indicate that the equation is incomplete. A drop-down list appears with options for global variables, functions and file properties.
- In Global Variables, select suppressed and press Tab.
Suppressed is added to the Evaluates to column.
You can also define suppression by using the syntax of the Visual Basic if function.