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: 

Revit Formula - if yes/no checked, then override value, else use entered value

11 ANTWORTEN 11
GELÖST
Antworten
Nachricht 1 von 12
Anonymous
2931 Aufrufe, 11 Antworten

Revit Formula - if yes/no checked, then override value, else use entered value

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

11 ANTWORTEN 11
Nachricht 2 von 12
barthbradley
als Antwort auf: Anonymous


@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?  Smiley (zwinkernd)

Nachricht 3 von 12
Anonymous
als Antwort auf: barthbradley

@barthbradley

 

I know I can accomplish what I want using 4 parameters, just wondering if its possible with only 3.

Nachricht 4 von 12
barthbradley
als Antwort auf: Anonymous

Don't know. Need more info. I work best when illustrations accompany the explanation. 

Nachricht 5 von 12
Anonymous
als Antwort auf: barthbradley

20180814_133958.jpg

Nachricht 6 von 12
ToanDN
als Antwort auf: Anonymous


@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


 

Nachricht 7 von 12
barthbradley
als Antwort auf: Anonymous

LOL! Thanks for the detailed illustration, @Anonymous.  I'm dropping the class. Home Economics here I come. 

Nachricht 8 von 12
Anonymous
als Antwort auf: ToanDN

@ToanDN

So, to be explicit, no there is no function for that; yes you have to use 4 parameters?

Nachricht 9 von 12
barthbradley
als Antwort auf: Anonymous

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

Nachricht 10 von 12
Anonymous
als Antwort auf: barthbradley

Great resource, much thanks!

Nachricht 11 von 12
dani52g7
als Antwort auf: barthbradley

Hi, any chance you still have a hard copy? I can't reach the link... Thank you!

Nachricht 12 von 12
ToanDN
als Antwort auf: dani52g7


@dani52g7 wrote:

Hi, any chance you still have a hard copy? I can't reach the link... Thank you!


https://www.revitforum.org/node/1126

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