In the previous videos, we’ve added a working Dynamic Group to our Configuration Model of the Lego brick. In this video, we’re going to look into calculating with the result of the Dynamic Group.
-
The first step is to add another Feature. We call this one: Lego Brick Dimensions and give it the type Mandatory.
We want this Feature to take over the value of the Dynamic Group.
-
Click on the Calculated Value of the Feature and then on add variable.
You will see that the Dynamic Group is not selectable, only the parent of the Dynamic Group is selectable. Because the Dynamic Group itself is not selectable we always want to give the Dynamic Group a clear Parent Feature so that we can properly recognize the Dynamic Group and do the calculations with the Dynamic Group.
-
To calculate the dimensions of the Lego bricks, we select the Parent Feature: Result.
-
From this Feature we check children. After checking the children we can calculate with the Properties.
-
If you click on the Properties you will see a dropdown with the different Properties of the Lego Bricks
-
Add the parent Feature again
-
Now select the Property length.
We now set the variables to calculate with the given Feature Properties. To calculate with the Properties, we simply put in the following formula
@result_1 * @result_2
When we preview this, we see that the Feature result now show the dimensions of the chosen LEGO bricks. You can use this in multiple ways to send the information to another Feature to make advanced calculations with the results of the Dynamic Group.
Final assignment
You are a furniture seller and would like to offer your tables in Elfsquad. Your tables can be 130, 180 or 210 cm long and 75, 90 or 110 cm wide. Create the following FCeatures:
● Table 1 75x130
● Table 2 90x180
● Table 3 110x210
● Table 4 75x180
● Table 5 90x210
● Table 6 110x180
Now create a Configuration Model where the user can choose the length and width of the table. For a length of 130, the user cannot choose a width of 90 or 110 and for a width of 210, a width of 75 cm cannot be chosen.
Create a Feature to show which tables are possible with te chosen Properties. Realise this with a Dynamic Group. Based on the length and width, make sure the correct table comes up.
Opmerkingen
0 opmerkingen
U moet u aanmelden om een opmerking te plaatsen.