How to reflect negative angle value in a parametric cell?


 Product(s):OpenBuildings Designer 
 Version(s):CONNECT Edition
 Area:Platform Tools
Subarea:Parametric Solids

Problem

We've noticed that if there is a calculated negative angle value (the value was calculated using different functions and variables) it will not be reflected in parametric solids. How can this be resolved? 


Steps to Accomplish

The reason behind this is that you cannot take negative values for any parametric constraints. If you want to reflect the negative angle value in the triangle then the negative value can be defined using this expression:

Next you will require another variable to choose when to use ‘Positive Angle’ or ‘Negative Angle’ values. The name of the variable will be ‘Vertical Angle condition’ and this is the expression for it: