The following example shows how to create a parametric variable that sets all
welds in a custom component to a given size. After creating the variable, you
are able to change the weld size directly in the custom component's dialog.
-
Select the custom component
in the model, right-click and select Edit custom component.
-
On the Custom component editor toolbar, click the Display variables
button.
The Variables dialog opens.
-
Create a new parametric variable.
-
Click Add.
-
In the Value type list, change the variable's value type to Length.
The type determines what kind of values can be used with this
variable. In this example, select Length, which is suitable for lengths and distances.
-
In the Name box, enter Weldsize as the name of the
variable.
You can also use the default name, such as
P1. In this example, enter
Weldsize as the name of the variable.
-
Leave the Formula box empty.
-
In the Visibility list, define whether the variable will be visible in the custom
component's dialog.
Hide the variable if you only use it in calculations. Show the
variable if you want to be able to edit the value in the custom
component's dialog. In this example, select Show.
-
In the Label in dialog box box, enter a descriptive name for the parametric variable, for
example, Weld size.
-
Click
Close.
You have now created a
parametric variable with the following settings:

-
Link the parametric variable
to the Size above line property.
-
In the Custom component browser, browse for the Size above line property of the weld.
-
Right-click
Size above line and select Add equation.
-
Enter
Weldsize after the equal sign, and then press
Enter.
-
Repeat the procedure
for the other welds as well, so that they will all be linked to the
same property.
-
Save the custom component.
-
Close the custom component editor.
-
Select the custom component
in the model, and open the custom component dialog.
The option to change the
weld size is visible in the custom component's dialog.

If you change the weld
size value now, the size of all welds within the custom component will
change accordingly.