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: 

How to state "check if condition is true, true then.., false leave as it is"

4 ANTWORTEN 4
GELÖST
Antworten
Nachricht 1 von 5
Anonymous
898 Aufrufe, 4 Antworten

How to state "check if condition is true, true then.., false leave as it is"

Hello again. 

Today I am here with a very basic newbie question :leicht_lächelndes_Gesicht:

I am trying to write and if formula.

All these parameters are dimensions.

It should be like " Parameter 1 = IF(Parameter 1 > Parameter 2, Parameter 2 - 200, Parameter 1)

And now you saw where the error is, for false condition, I am referring to the parameter itself. What I need to do is just the thing I wrote, but it creates a circular chain of references so revit does not accept it.

What is this very basic thing that I am missing here? Probably I will be ashamed after i realize what was going on :leicht_lächelndes_Gesicht:

 

Thank you in advance.

 

4 ANTWORTEN 4
Nachricht 2 von 5
Anonymous
als Antwort auf: Anonymous

Btw I am aware that I can make another parameter for checking and it will not give any errors then, the only thing I am curious is is there anything can be done for a statement like " check the condition, if it is not like that, leave my parameter as it is?" 

Nachricht 3 von 5
Anonymous
als Antwort auf: Anonymous

Show us your actual formula.

I attach a screen shot of a basic IF statement:

Condition.JPG

Nachricht 4 von 5
martijn_pater
als Antwort auf: Anonymous


@Anonymous wrote:

All these parameters are dimensions.

It should be like " Parameter 1 = IF(Parameter 1 > Parameter 2, Parameter 2 - 200, Parameter 1)

And now you saw where the error is, for false condition, I am referring to the parameter itself. What I need to do is just the thing I wrote, but it creates a circular chain of references so revit does not accept it.


It is how @Anonymous says, but I think you need to associate a calculated parameter to the dimension instead of the Parameter 1, as below:

(input) Parameter 1 = x
(input) Parameter 2 = y
(associated to dimension) Parameter 1_calculated = if (Parameter 1 > Parameter 2, Parameter 2 -200, Parameter 1)

Could you elaborate on 'All these parameters are dimensions', what dimensions where? As to provide an answer to the circular chain of references issue.

Nachricht 5 von 5
Anonymous
als Antwort auf: Anonymous

Thank you for your replies. I figured out as you explained with multiple parameters supporting each other.

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