Use parametric variables to set basic properties (such as name, material, profile, position number, and so on) for any object the custom component creates. Parametric variables automatically get the prefix P (parameter), which is shown in the Variables dialog box.
The following example shows how to create a 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 box.
The Variables dialog box opens.
You can also use the default name, such as P1. In this example, enter Weldsize as the name of the variable.
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.
Leave this box empty.
This label will be shown in the custom component's dialog box. In this example, enter Weld size as the label.
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 box. In this example, select Show.
You have now created a parametric variable with the following settings:
Select the Size above line property of the uppermost weld.
Enter Weldsize here.
You can now modify the Size above line property by using the Weld size box in the custom component's dialog box.
Repeat the procedure for the other welds as well, so that they will all be linked to the Weld size box in the custom component's dialog box.
The variable is now displayed in the custom component's dialog box, unless you set the visibility of the variable to Hide in step 7.
If you change the weld size value now, the size of all welds within the custom component will change accordingly.