4 posts
0
new
Go to last post
Rounding metric dimensions in reports.
09.04.2018 21:52

Hello everyone!
Got a problem here I got stuck at. I've created a report from a metric model and all the dimensions show with decimals (for example: HSS304.8X101.6X12.7). Is there a way to round those numbers to this format: HSS305x102x13? Appreciate any suggestions and advice!

No Upvotes

Hey,
I guess without editing profiles in the model you'll have to do some template editing. You could try something like:
"HSS"+round(GetValue("PROFILE.HEIGHT"))+"*"+round(GetValue("PROFILE.WIDTH"))+"*"+round(GetValue("PROFILE.PLATE_THICKNESS"))
Of course this only works for HSS profiles, if you want it to work with several profiles the code will have to become more complex...
hope it helps. regards

No Upvotes
Rounding metric dimensions in reports.
Re: Rounding metric dimensions in reports. 20.04.2018 15:05

I think there's an easier sollution.
Go to the file menu / settings / options
Click on units and decimals / tabpage Catalogs / first row "section dimension" you can select the number of digits behind the decimal point.
Hope this helps.

No Upvotes
hi, have you tested it ?
Re: Rounding metric dimensions in reports. 21.04.2018 21:32

hi, have you tested it ?
I haven't manage to make it work using that method...still gives me the profile as it shows in the model.

No Upvotes