Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I input a formula =
round(L*0.08)
for a value round down but responded as "unit not identical"
Please advice
Thanks
Solved! Go to Solution.
Hello,
I input a formula =
round(L*0.08)
for a value round down but responded as "unit not identical"
Please advice
Thanks
Solved! Go to Solution.
Check the type is the parameter you are adding the formula to and the type of the parameter L? Are they length or number?
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
this L is itentical to other normal parameters (length, type...)
and once I add "round" to other parameters, same message appear so that means the script is the problem
see enclosed
Sorry I am receiving and replying to posts via email so I cannot see attachments
To round up length you need to
1. first neutralize it (make it unitless) >>
2. round it up or down >>
3. then reapply the units ...
Use the formula below (replace mm for inch or feet or whichever units you use/need)
round((L * 0.08) / 1 mm) * 1 mm
You can replace round with roundup or rounddown whichever is convenient
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION