PDA

View Full Version : Beginner calculated value help please



revituser195
2010-06-24, 09:06 PM
I need to calc the weight of some framing, so in my schedule I selected Calculated Value, named it Weight. Why won't the formula accept Volume * 485 CF, but it will accept Volumne / 485 CF?

Thanks,
Rob

Munkholm
2010-06-24, 09:13 PM
Just a weird Revit thing... caused by "Incosistent Units"
But try do divide one of the values by one (1), and have something like this:

Volume * (485 CF / 1) - It just MIGHT work ;-) :beer:

revituser195
2010-06-24, 09:20 PM
Still getting inconsistent Units :o(

Thanks though :o)

iru69
2010-06-24, 09:26 PM
I'm not sure if it's a weird "Revit" thing as much as a "math" thing?

I believe Munkholm's on the right track, but the idea is to get rid of one of the units, i.e. Volume * (485 CF / 1 CF) ?

Also, make sure you're spelling "Volume" correctly in your actual formulas. ;)

Edit: Also, I'm a little confused - you're trying to calculate the weight by multiplying two volumes? What value type are you using for the calculation?

revituser195
2010-06-24, 09:39 PM
Direct cut/paste from formula window

Volume * (485 CF / 1 CF)

Still returns Inconsistent Units

Yeah, spelling can be an issue:o)

revituser195
2010-06-24, 09:49 PM
Edit: Also, I'm a little confused - you're trying to calculate the weight by multiplying two volumes? What value type are you using for the calculation?

Unfortunalty, I'm helping someone else, so I'm not sure. Since volume is known, the weight is the result of the formula. I think CF was added to 485 just trying to make the unit consistent to get it to work.

Revit does NOT like *

Volume / Volume is acceptable

Volume * Volume returns Inconsistent Units.

Alfredo Medina
2010-06-24, 09:58 PM
What data type is the calculated value?

Assuming that the data type of the field named "Volume" is "volume",

if the data type of your calculated value is also "volume", use this:

Volume * 485

If the data type of your calculated value is "number", use this:

Volume * 485 / 1 CF

iru69
2010-06-24, 10:05 PM
Revit is fine with " * "... it just has to be used correctly.

If Volume is actually a volume, and the value type is set to "Number", then you can use the "Volume / Volume" because the result is a "number" - the "volumes" cancel each other out.

In the same scenario, if you try to calculate "Volume * Volume", you'll get an error because the result is not a "Number" (again, I'm no math wiz, but I'm not sure that even makes sense).

If you really want to get to the bottom of this, I think you need to really lay out what each parameter is and what you're trying to do and/or post an example file.

Good luck to you!


Unfortunalty, I'm helping someone else, so I'm not sure. Since volume is known, the weight is the result of the formula. I think CF was added to 485 just trying to make the unit consistent to get it to work.

Revit does NOT like *

Volume / Volume is acceptable

Volume * Volume returns Inconsistent Units.

revituser195
2010-06-24, 10:37 PM
What data type is the calculated value?

Assuming that the data type of the field named "Volume" is "volume",

if the data type of your calculated value is also "volume", use this:

Volume * 485

If the data type of your calculated value is "number", use this:

Volume * 485 / 1 CF

My mistake was the type set to Number, not Volume.

Thank you very much.

revituser195
2010-06-24, 10:40 PM
Revit is fine with " * "... it just has to be used correctly.


I should have said Revit doesn't like ME using * :o)


In the same scenario, if you try to calculate "Volume * Volume", you'll get an error because the result is not a "Number" (again, I'm no math wiz, but I'm not sure that even makes sense).

If you really want to get to the bottom of this, I think you need to really lay out what each parameter is and what you're trying to do and/or post an example file.

Good luck to you!

Thank you for taking the time to explain. My mistake was Number was selected for Type when Volume was needed.