- changed status to resolved
Trouble in unit conversions inside expressions
Issue #136
resolved
https://openbrim.org/objidilgu6od6cldcaluwy4vryu64gf.project
In above model I defined a custom unit system called (Imperial) with length units as feet....
At line 135 I defined parameter DbEPs.... and specified its units as UT="Length" UC="Imperial"
Its value in code is 36 and in (model view ----> Params) window its value is shown as 3 feet.... which is fine....
I defined a parameter Height at line 158 in the same manner.... its values in code are (48 if Panel=1 else 36 ) and the same values are shown in (model view ----> Params) window instead they should be (4 and 3 feet) respectively.... If I assign only one value for all panels then it works fine....
I need help about this error.... May be its a bug...
Comments (1)
-
- Log in to comment
The app will not convert the numbers used inside expressions. This is by design. Since the app do not know what the number used inside an expression is, it cannot unit convert. However, the expressions you pointed out are special. These are not arbitrary expressions -- these expressions are created by the app due to Repeat object iteration dependent values. We have implemented unit conversion for these special expression types. The values now show properly in feet on your object as of v3.151124.