RevitCity.com Logo

Home  |  Forums  |  Downloads  |  Gallery  |  News & Articles  |  Resources  |  Jobs  |  FAQ  |  SearchSearch  |  Join  |  LoginLogin

Welcome !

109 Users Online (107 Members): Show Users Online - Most ever was 626 - Mon, Jan 12, 2015 at 2:00:17 PM

 

Forums

Forums >> Revit Building >> Technical Support >> Scheduling Issues - rounding up

Search this ThreadSearch this Thread | Page 1 of 1 |

Wed, Feb 11, 2009 at 3:28:19 PM | Scheduling Issues - rounding up

#1

bradleymatthew


active

Joined: Fri, Jul 21, 2006
59 Posts
No Rating


I have generated a schedule to determine the quantity of different items from their length.  For instance: a countertop can only come in 8' lengths - for sake of argument - and I have many different lengths and modeled quantities.  I tried simply creating a calculated formula that adds all lengths and divides by 8', but it's not accurate and won't round up.  I tried using the +.4999 on the end (so the formula is now: Length/8' +.499), but that really threw the counts off because of the number of small counters I have (my best guess is that it was adding the .499 to each object, cause my counts to nearly double).

What am i doing wrong.  I need to create this similar type of schedule for several other things and it has to be accurate - if not dead-on, then over by 1....never ever under.


-----------------------------------
Bradley

This user is offline

View Website

Wed, Feb 11, 2009 at 8:11:30 PM | Scheduling Issues - rounding up

#2

qthdad


active

Joined: Mon, Dec 10, 2007
64 Posts
5 Stars: 2 Votes


You would probably need to be creative since there are only limited functions available in Revit for formula.

Here's one method that came to mind.

Create three PARAMETERS:

Actual_Length as Length

Length_Rounded_Up as Length

B as Integer

B = Actual_Length / 1'

Length_Rounded_Up = IF(B * 1' < Actual_Length, B * 1' + 1', B * 1')

 

Edited on: Wed, Feb 11, 2009 at 8:18:26 PMEdited on: Wed, Feb 11, 2009 at 8:18:51 PMEdited on: Wed, Feb 11, 2009 at 8:19:18 PM

Edited on: Wed, Feb 11, 2009 at 8:19:54 PM

Attached Images

52868_RoundingUp.jpg

This user is offline

 

Thu, Feb 12, 2009 at 10:57:05 AM | Scheduling Issues - rounding up

#3

bradleymatthew


active

Joined: Fri, Jul 21, 2006
59 Posts
No Rating


qthdad - what I'm really looking for is a quantity of the 8' counters.  I like your idea of creating a paramater that generates length as an integer - that at least lets me know what I'm working with, but it all goes funky when I start to generate quantities within the schedule.

I really could make this work if I could simply take the overall sum of the length of all counters and divide that by the 8' to get me a total quantity of counters, but Revit won't let me.....what am I missing?


-----------------------------------
Bradley

This user is offline

View Website

Thu, Feb 12, 2009 at 12:37:56 PM | Scheduling Issues - rounding up

#4

qthdad


active

Joined: Mon, Dec 10, 2007
64 Posts
5 Stars: 2 Votes


You don't need to adding .499 to each object. That's probably what's throwing your numbers out of whack. You can probably take the "trick" I did and use it in a calculated field within the schedule that is based on the objects' actual length.


This user is offline

 

Thu, Feb 12, 2009 at 4:39:59 PM | Scheduling Issues - rounding up

#5

bradleymatthew


active

Joined: Fri, Jul 21, 2006
59 Posts
No Rating


Sorry for the double reply....OK - I got it to calculate accurately.  I want to be able to tell it to add 1 object if the total count < 1.  I tried setting up another calculated value that would use this formula:  Quantity + if(Quantity<1, 1, 0) + if(Quantity =1, 1, 0)  .  The problem here is that it is adding 1 to the individual objects that are less than one, rather than adding 1 onto the sum of all objects...does that make sense?

-----------------------------------
Bradley

This user is offline

View Website

Sat, Feb 14, 2009 at 9:04:51 AM | Scheduling Issues - rounding up

#6

qthdad


active

Joined: Mon, Dec 10, 2007
64 Posts
5 Stars: 2 Votes


So, you are saying this:

If Q < 1, then Q = 1

else just keep the current value (Q = Q) 

How about

Q = if(Quantity<1, Quantity +1, Quantity)

 


This user is offline

 

Mon, Feb 16, 2009 at 12:56:01 PM | Scheduling Issues - rounding up

#7

bradleymatthew


active

Joined: Fri, Jul 21, 2006
59 Posts
No Rating


Yes, exactly.  I gave that a whirl and I'm still getting higher #'s than I should.  Revit's applying that formula to each individual piece rather than the sum of all pieces, which throws my numbers off.  I think that right there is my problem - Revit cannot use the total sum of one parameter or calculated value in another calculated value - it applies the formula to each instance and THEN calculates the sum.....

If I know that a counter only come in 8' lengths, I know that I can use that one piece to make several small counters.  Traditional math would simply suggest that you add all the lengths together & divide by the known length (8') to find out how many 8' counters you would need to order.  This is different than what I'm trying to tell Revit to do - Revit is taking each small counter and trying to confirm if it fits the formula (Q = if(Quantity<1, Quantity +1, Quantity)).  If there is a piece that is under 1, it will add 1 (quantity being an 8' pieces of counter).  You can see how this will quickly throw the numbers completely off because Revit is adding (1) 8' counter for ever piece that's smaller than 1.


-----------------------------------
Bradley

This user is offline

View Website

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

Rounding in Formulas

Revit Building >> Technical Support

Wed, Mar 13, 2013 at 8:49:48 AM

4

Dimension Rounding

Revit Building >> Technical Support

Thu, Aug 23, 2007 at 2:54:31 PM

4

Area Tags - Rounding refuses to change

General Discussion >> Revit Project Management

Tue, Feb 10, 2015 at 8:22:13 PM

2

Rounding Issue in Schedules

Revit Building >> Technical Support

Mon, Jan 9, 2017 at 2:07:07 PM

3

Issues in Scheduling parts

Revit Building >> Technical Support

Tue, May 30, 2017 at 12:54:23 PM

10

Site Stats

Members:

1990764

Objects:

22877

Forum Posts:

152180

Job Listings:

3

Sponsored Ads

Home | Forums | Downloads | Gallery | News & Articles | Resources | Jobs | Search | Advertise | About RevitCity.com | Link To Us | Site Map | Member List | Firm List | Contact Us

Copyright 2003-2010 Pierced Media LC, a design company. All Rights Reserved.

Page generation time: 0.2985

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights