I have 3 instance parameters, call them yn, val1, val2. Val1 and val2 each control the height of a different element in a family. I want y/n to control whether they are aligned or can move independent of one another. I know this is can be done by creating an extra parameter to use as a placeholder for the override value (e.g. val3 = if(yn, val1, val2)), but I'd like to avoid wasting a parameter if possible.
TL;DR is there a formula function for overriding a parameter value? -> val2 = if(yn, val1, val2) returns circular reference error.
Thanks
Gelöst! Gehe zur Lösung
Gelöst von barthbradley. Gehe zur Lösung
@Anonymous wrote:I have 3 instance parameters, call them yn, val1, val2. Val1 and val2 each control the height of a different element in a family. I want y/n to control whether they are aligned or can move independent of one another. I know this is can be done by creating an extra parameter to use as a placeholder for the override value (e.g. val3 = if(yn, val1, val2)), but I'd like to avoid wasting a parameter if possible.
TL;DR is there a formula function for overriding a parameter value? -> val2 = if(yn, val1, val2) returns circular reference error.
Thanks
Not clear. You have 4 Parameters don't you? I mean there's a Parameter that accepts either val1 or val2 depending on the status of y/n; right?
...can you post a picture or something? Also, will this question on the finals? ![]()
I know I can accomplish what I want using 4 parameters, just wondering if its possible with only 3.
Don't know. Need more info. I work best when illustrations accompany the explanation.
@Anonymous wrote:
I have 3 instance parameters, call them yn, val1, val2. Val1 and val2 each control the height of a different element in a family. I want y/n to control whether they are aligned or can move independent of one another. I know this is can be done by creating an extra parameter to use as a placeholder for the override value (e.g. val3 = if(yn, val1, val2)), but I'd like to avoid wasting a parameter if possible.
TL;DR is there a formula function for overriding a parameter value? -> val2 = if(yn, val1, val2) returns circular reference error.
Thanks
LOL! Thanks for the detailed illustration, @Anonymous. I'm dropping the class. Home Economics here I come.
Yes; that is correct. Promise.
...however...you can NEST if statements.
...I've had a hardcopy of this pinned above my workstation for years:
https://www.revitforum.org/tutorials-tips-tricks/1046-revit-formulas-everyday-usage.html
Hi, any chance you still have a hard copy? I can't reach the link... Thank you!
@dani52g7 wrote:
Hi, any chance you still have a hard copy? I can't reach the link... Thank you!
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.