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: 

Can't get degree value if using number parameter

8 ANTWORTEN 8
Antworten
Nachricht 1 von 9
netsonicyxf
711 Aufrufe, 8 Antworten

Can't get degree value if using number parameter

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

 

 

 

 

8 ANTWORTEN 8
Nachricht 2 von 9
netsonicyxf
als Antwort auf: netsonicyxf

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

Nachricht 3 von 9
martijn_pater
als Antwort auf: netsonicyxf

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.

Nachricht 4 von 9
netsonicyxf
als Antwort auf: martijn_pater

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)?

Nachricht 5 von 9
martijn_pater
als Antwort auf: netsonicyxf

The formula adjusts either way.

Nachricht 6 von 9
martijn_pater
als Antwort auf: martijn_pater

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

Nachricht 7 von 9
barthbradley
als Antwort auf: netsonicyxf

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))

Nachricht 8 von 9
barthbradley
als Antwort auf: barthbradley

Gray Out.jpg

Nachricht 9 von 9
Anonymous
als Antwort auf: netsonicyxf

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

 

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