Example of a variable formula: Define the stiffener position using construction planes
This example shows how to use construction planes for defining the position of the stiffeners. You will position two stiffeners so that they divide the beam into three equally long sections.
-
To make it easier to select the
handles, ensure that
Direct modification
is switched off.
-
On
the Custom component editor toolbar, click the Display variables
button.
The Variables dialog opens.
- To create two new parametric variables, click Add twice.
-
Inquire the GUID of the beam:
- Right-click the beam in a custom component view and select Inquire .
-
In the Inquire object dialog, copy the beam's GUID.

-
In
the Variables dialog, modify the first parametric variable P1 as
follows:
-
In the Formula box, enter
=fTpl("LENGTH","b9fff400-5cdf-45b8-8376-93b6c4690679").
In the formula, b9fff400-5cdf-45b8-8376-93b6c4690679 is the GUID of the beam.
Reference functions consist of the following syntax: fTpl("template attribute", "object GUID"). You need to always check the GUID of the object that you use with the reference function.
The value of the variable is now the same as the beam length. If you change the beam length, also the value changes.
- In the Label in dialog box box, enter Beam length.
-
In the Formula box, enter
=fTpl("LENGTH","b9fff400-5cdf-45b8-8376-93b6c4690679").
-
Modify the second parametric variable P2 as follows:
- In the Formula box, enter =P1/3.
- In the Label in dialog box box, enter 3rd point.
-
Create a construction plane:
-
On the Custom component editor toolbar, click the Create construction plane
button.
- Pick the required points to define the shape of the construction plane.
-
Click the middle mouse button to
create a construction plane at the center of a stiffener at one end.
-
On the Custom component editor toolbar, click the Create construction plane
-
Bind the stiffener to the construction plane:
- Select the stiffener.
-
Hold down
Alt and use area selection (from left to right) to select all stiffener handles.
- Right-click and select Bind to plane.
- Bind the stiffener handles to the construction plane.
-
Bind the construction plane to the beam end:
- Select the construction plane.
- Right-click and select Bind to plane.
-
Bind the construction plane to the beam end.
-
Repeat the above steps for the stiffener at the other end:
- Create a construction plane.
- Bind the stiffener to the construction plane.
- Bind the construction plane to the beam end.
You have now created two distance variables that bind the construction planes to the beam end.
-
Modify the distance variables as follows:
-
In the Formula box, enter =P2.
Do this for both of the distance variablesthat bind the construction planes to the beam end.
-
In the Formula box, enter =P2.
- Save the custom component.
- Close the custom component editor.
-
Select the custom component in
the model, and open the custom component dialog.
If you now change the beam length, the position of the stiffeners changes so that the stiffeners divide the beam into three equally long sections.
