Example of a variable formula: Create new component objects
This example shows how to create a parametric variable that adds bolts to the custom component.
- In the model, select the custom component, right-click, and then select Edit custom component.
-
On
the Custom component editor toolbar, click the Display variables
button.
The Variables dialog opens.
- To create a new parametric variable, click Add.
-
Modify the parametric variable
as follows:
- From the Value type list, select Yes/No.
-
In the Label in dialog box box, enter Create bolts.
-
Link the parametric variable to
the Creation property of the bolts.
- In a custom component view, select the bolt group to highlight it in the Custom component browser.
- In the Custom component browser, browse for Bolt.
- Right-click Creation and select Add equation.
- Enter P1 after the equal sign, and then press Enter.

- Save the custom component.
- Close the custom component editor.
-
In the model, select the custom
component, and open the custom component dialog.
The option to create bolts is visible in the custom component's dialog.
