Can't get degree value if using number parameter

Can't get degree value if using number parameter

netsonicyxf
Advocate Advocate
1,539 Views
8 Replies
Message 1 of 9

Can't get degree value if using number parameter

netsonicyxf
Advocate
Advocate

E.g.

 

x is defined as number type parameter in family, and x = 0.02.

y and z is defined as degree type parameter in family.

 

If I type formula "=atan(x) in the y formula field, it can't calculate the y value.

But if I type formula "=atan(0.02)  in the z formula field, it can calculate y = 0.146°

1.png

 

 

 

 

0 Likes
1,540 Views
8 Replies
Replies (8)
Message 2 of 9

netsonicyxf
Advocate
Advocate

Please ignore the 1st post,

E.g.

x is defined as number type parameter in family, and x = 1.

y and z is defined as degree type parameter in family.

 

If I type formula "=atan(x) in the y formula field, it calculate the y value, but the y value is EDITABLE.

But if I type formula "=atan(1)  in the z formula field, the Z value is NOT editable.

1.png

0 Likes
Message 3 of 9

martijn_pater
Advisor
Advisor

x is not 0.02 and/or parameters are not defined as described... edit: ok, let's review second post. edit 2: atan(1) is not a variable.

0 Likes
Message 4 of 9

netsonicyxf
Advocate
Advocate

I know if something is inputed in the formula field, the result should be greyed out - not editable, like what Z shows.

 

But why Y result can still be editable even if it has a formula =atan(x)?

0 Likes
Message 5 of 9

martijn_pater
Advisor
Advisor

The formula adjusts either way.

0 Likes
Message 6 of 9

martijn_pater
Advisor
Advisor

...however if you add multiple variables it can not, atan(a+b) ie. a and b being seperate number parameters.

0 Likes
Message 7 of 9

barthbradley
Consultant
Consultant

Yeah, I don't like it either when a formula doesn't lock down (gray out) the parameter. I usually stick in an if statement into the formula.  for example =if(1=1, atan(x), atan(x))

0 Likes
Message 8 of 9

barthbradley
Consultant
Consultant

Gray Out.jpg

0 Likes
Message 9 of 9

Anonymous
Not applicable

The formula should adjust either way. The degree value is correct.

 

0 Likes