What is a Calculated Value?
A Calculated Value calculates a value for a Feature by means of a formula, you can for example calculate the content, square meters or weight. A Feature on which a Calculated Value is set, takes the result of the formula as its value. There are many different features you can use. In this section, we will discuss a number of standard functions. Do you want to know more about the possibilities of formulas? Check out our documentation on Functions.
Setting a calculated value
We go back to our model the Roadmaster 100. We want to calculate the contents of the cargo hold based on the length and height.

First, make the Feature Height an input field, for now hide the Children of Height.

Under Dimensions, create a new Feature and name it Cargo Area Contents.

Give the Feature a Unit of Measurement of m3.

To the right of the Feature, click on the middle zero below the Calculated Value.
To calculate the contents we need the length, height and width. The Roadmaster 100 has a fixed width of 2400mm.

Select the Length and Height as variables in the Formula Editor.

Get the variables Length and Height and create the following formula: @Length * @Height * 2400 / 1,000,000,000. The variables' Length and Height are in mm and to make this m3 (cubic meters) we divide by 1 billion.

Click on 'Preview Changes' and see the result.
Take over the value of another feature.
It is also possible for a feature to take over the same value as another feature.

First, create a feature Cargo Area value

Open the calculated value of the feature

Add a formula

Add the variable Cargo Area Contents

Add the variable to the formula line by inserting: @Cargoareacontents

Click on save
If you configure the model, the newly made feature takes over the value of the feature Cargo Area Contents
Assignment
The minimum temperature of Product 2 is equal to the minimum temperature of Product 1. On the minimum temperature of Product 2, set a Calculated Value so that the temperature is always equal to the minimum temperature of Product 1.
Comments
0 comments
Please sign in to leave a comment.