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?
Gelöst! Gehe zur Lösung
Gelöst von barthbradley. Gehe zur Lösung
Gelöst von ToanDN. Gehe zur Lösung
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.
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.
@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?
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.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.