This
example shows how to use construction planes for determining the position of the stiffeners.
You will position the stiffeners so that they divide the beam into three equally long
sections.
-
Ensure that Direct
modification
is switched off.
The selection of handles is
easier when Direct Modification is off.
-
On
the Custom component editor toolbar, click the Display variables
button.
The Variables dialog box opens.
-
Click
Add to create a new parametric variable.
-
Get the GUID of the beam.
-
On the ribbon, click
Inquire objects
.
-
Select the beam.
-
In the
Inquire Object dialog box, check the GUID of the beam.
-
Modify the variable as follows:
-
In the Formula box, enter
=fTpl("LENGTH","ID4C8B5E24-0000-017D-3132-383432313432").
ID4C8B5E24-0000-017D-3132-383432313432
is the GUID of
the beam.
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.
-
Click
Add to create another parametric variable.
-
Modify the new variable as follows:
-
In the Formula box, enter =P1/3.
-
In the Label in dialog box box, enter 3rd Points.
-
Create a construction plane:
-
In the custom component editor, click the Add construction
plane
button.
-
Pick the required points and then click the middle mouse button to create a construction plane in the center of a stiffener at one end.
-
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 steps 9–11 for the stiffener at the other end.
-
In the Formula box, enter =P2 for the two distance variables that
bind the construction planes to the beam ends.
-
Save the custom component.
-
Close the custom component editor.
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.