Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

"Inconsistent units" in formula (even with balancing trick)

5 ANTWORTEN 5
GELÖST
Antworten
Nachricht 1 von 6
Prvoime
869 Aufrufe, 5 Antworten

"Inconsistent units" in formula (even with balancing trick)

I have a family with an angular parameter which breaks when set to zero degrees. I just can't be bothered to spend two days trying to hunt it down, so I thought to set an IF statement, if angle = zero set it to 0.01, otherwise leave as is.

 

I tried "IF(0, 0.01, Angle)" which gave me "inconsistent units".

Then I tried "IF(0, 0.01*(0.01/1), Angle)" but that also gives me "inconsistent units".

 

What am I doing wrong? Is it that I'm using the Angle parameter itself in the formula which is driving it? Some sort of loopback issue?

5 ANTWORTEN 5
Nachricht 2 von 6
barthbradley
als Antwort auf: Prvoime


@Prvoime wrote:

 

Then I tried "IF(0, 0.01*(0.01/1), Angle)" but that also gives me "inconsistent units".

 

 


 

What's "O"? That the name of a Parameter?  

 

....be easier to work directly with your family. Can you post it.  

Nachricht 3 von 6
ToanDN
als Antwort auf: Prvoime

If you want to use a formula to limit and then angle then you need 2 parameters

- one is Angle (what you have) to input value

- another is Angle Output to output value to your geometry with the formula below

If(Angle = 0, 1, Angle)

 

But, you can also do without formula and 0 degree would not break your family, depends on how your family is built. Share it here.

Nachricht 4 von 6
Prvoime
als Antwort auf: barthbradley


What's "O"? That the name of a Parameter?  


No, that would be the value I enter for the angle. I thought that's how it works If (entered value is this, set this, otherwise set this)? So if Angle = 0, set it to 0.01, otherwise set to entered value.

Angle.jpg

Nachricht 5 von 6
Prvoime
als Antwort auf: ToanDN


@ToanDN wrote:
If(Angle = 0, 1, Angle)

I tried that also but that gives me "There is a circular chain of references among the formulas". I have two other parameters that are driven by "Angle" parameter, but that shouldn't be the cause. They should just take what ever value is in the "Angle" field, no difference if it's entered manually or driven by a formula, right?

Nachricht 6 von 6
barthbradley
als Antwort auf: Prvoime


IF (<condition>, <result-if-true>, <result-if-false>) 

 

<condition> cannot be itself.  That's circular.  <result-if-true>, <result-if-false> cannot reference the parameter that the formula is written for.   That's circular.  

 

Angle.png

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report