Revit does now know about pi
In 2011, if you try to name a 'number' as "Pi" in a family, it tells you that "Pi is a keyword of formula. Please choose a different name"
I am having trouble using it. If anyone figures it out, Please post...
|
Revit does now know about pi
In 2011, if you try to name a 'number' as "Pi" in a family, it tells you that "Pi is a keyword of formula. Please choose a different name"
I am having trouble using it. If anyone figures it out, Please post...
Can you create a parameter and call it "_pi" and then just use that in your formulas?
Yes you can, however, 2010 and before, you could 'pi' as a parameter name. I have seen that PI is used in API. I was hoping that Pi was usable as a constant in formulae.... this would save 1 parameter...
I see. Have you tried pi, PI and Pi? I thought they were case sensitive on parameters.
Isn't PI = to (22 / 7)? Cant you then use that in you formula?
PI in Revit is: pi()
Assuming that you have a parameter called "Radius", and another one called "Area", the formula for the Area of a circle is:
See illustration.Code:pi() * Radius ^ 2
Richard, I tried PI, Pi, pI and pi and they all return the same error.
Patricks, you are a geek! My calculator only went to 3.141592654
Alfredo, Genius!! I tried a few things with parenthesis though not empty!! YAY!
I have used 3.1415 as an approximation which is more than accurate enough for revits precision levels, though now I can use the unreal thing!!
Rpict, there are many operators you can use. exponents (exp), absolute value (abs), sine (sin), cosine (cos), Tangent (tan), blah... search for formula in the help file. It tells you loads about formulae, just not pi!!
Last edited by bulletproofdesign; 2010-09-09 at 08:25 PM.
Speaking of undocumented math functions...
Did we ever find out if the LOG function is base 10 or base "e" or base ???