Rounding up Total

Rounding up Total

jason.harcourtE9D7U
Participant Participant
957 Views
13 Replies
Message 1 of 14

Rounding up Total

jason.harcourtE9D7U
Participant
Participant

Hi All,

Trying to accurately cost timber lengths for picking and supply. have got as far as the attached but need to round the lengths up to 4800mm lengths for picking in the factory and the total cost to then calculate the rounded up qty not the exact qty.. Any suggestions? (see attached)

0 Likes
Accepted solutions (1)
958 Views
13 Replies
Replies (13)
Message 2 of 14

barthbradley
Consultant
Consultant

Are you talking about the grand totals?  

0 Likes
Message 3 of 14

jason.harcourtE9D7U
Participant
Participant

the length qty. I want to round it up to the nearest length then have the total cost take that number for calculating the cost as we will be supplying full lengths without cutting them down

0 Likes
Message 5 of 14

jason.harcourtE9D7U
Participant
Participant

thankyou but not sure how that works to be honest. ?

0 Likes
Message 6 of 14

barthbradley
Consultant
Consultant

@jason.harcourtE9D7U wrote:

thankyou but not sure how that works to be honest. ?


 

I added some links for you. 

 

Basically, you need to create Calculated Parameters using formulas.  Do you follow?  

0 Likes
Message 7 of 14

jason.harcourtE9D7U
Participant
Participant

yes just not sure how to do it

0 Likes
Message 8 of 14

mhiserZFHXS
Advisor
Advisor

I don't have Revit open so you may need to adjust syntax.

 

Try something like:

roundup(Total Lengths/4800)*4800

 

Then for pricing:

(roundup(Total Lengths/4800)*4800) * Cost

 

If total length is already a calculated parameter, you'll need to replace that parameter with the equation used for total length, as you can't reference a calculated parameter with another calculated parameter (which AutoDesk should really address).

 

Edit: Apparently you can use calculated parameters in equations. Not sure if that's new or if I was having some other issue with it last time I tried to figure it out.

0 Likes
Message 9 of 14

jason.harcourtE9D7U
Participant
Participant

i tried that but didnt work for some reason. have attached the file incase you can help further. Thankyou

0 Likes
Message 10 of 14

mhiserZFHXS
Advisor
Advisor

Yea it's not working because of how Revit lets you use "Count", which is really unfortunate.

 

You could use Dynamo to do the math and then populate another parameter. That's the best I can think of now after playing with it, unless someone else can think of something.

0 Likes
Message 11 of 14

ToanDN
Consultant
Consultant

To clarify, do you just want know how many 4.8 meter members you need to buy in total?

0 Likes
Message 12 of 14

jason.harcourtE9D7U
Participant
Participant
Yes pretty much
0 Likes
Message 13 of 14

ToanDN
Consultant
Consultant
Accepted solution

Edited file.

 

ToanDN_0-1656696532005.png

 

 

0 Likes
Message 14 of 14

jason.harcourtE9D7U
Participant
Participant

ToanDN thats perfect. Thankyou so much

0 Likes