Skip to main content

Calculations

Loading...

Introduction to calculations

In this video I explain how to use calculations in a configurator. It is about showing the user calculated data such as the weight of a product or calculating the positioning of 3D models based on different configurations.

Basics of the calculation

First, I add a new feature of type Number, which is used to calculate the weight. This feature is defined as a calculated variable, and I explain how to enter a simple formula to set a fixed number as a sample value.

Dynamic weight calculation

I then show how to calculate the actual weight by adding the weights of individual components, such as frames and handlebars. I add new columns in the characteristic values to enter the weight of each component. The formula is then adjusted to add up the total weight from the individual weights of the selected components.

Advanced calculation functions

I extend the calculations to include other components such as saddles and handlebars. This is realized by simply adding the weights of these components in the formula. The formula is customized in the editor and the calculated weights are automatically updated when the user changes their selection.

Applying calculations to 3D models

I will also explain how calculations can be used to position partial models in 3D space. As an example, I introduce a bicycle basket whose width is dynamically adjusted based on the user's selection. I demonstrate how to scale the model based on the selected basket width and how to control these adjustments via the configurator rules.

Conclusion and application scenarios

Finally, I emphasize the versatility of calculations in the configurator, which can be used not only for weight calculations, but also for more complex adjustments such as dynamically adjusting 3D models according to user preferences.