Formula with YES/NO with if

Formula with YES/NO with if

DanielLemen
Enthusiast Enthusiast
6,905 Views
7 Replies
Message 1 of 8

Formula with YES/NO with if

DanielLemen
Enthusiast
Enthusiast

I would like to know how I made my object. I've made 2 part "Graphics" "Visible" that i would like to trigger some how.

 

I would like to manage an IF statement like this

 

IF Tibi 600 then

Part 600

else

Part 400

ENDIF

 

HOW do I made that in Revit? 

 

And then put into my .txt files Tibi 600##OTHER## 0,1,0,0,1 and sooo on. 

 

Very simple questions but I really do not understand this in Revit.

0 Likes
Accepted solutions (1)
6,906 Views
7 Replies
Replies (7)
Message 2 of 8

Ilic.Andrej
Advisor
Advisor

if statement is like this:

 

if(condition,result if true,result if false)

 

In your case:

 

The parameter called Part is defined by formula   if(Tibi=600,600,400)



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

0 Likes
Message 3 of 8

Ilic.Andrej
Advisor
Advisor

 

 

 



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

0 Likes
Message 4 of 8

DanielLemen
Enthusiast
Enthusiast

I've been reading if(condition,result if true,result if false) but have no clue how to use it. I'm not thinking right. 

 

But I wonder could u made a simple object so I can see? 

0 Likes
Message 5 of 8

Ilic.Andrej
Advisor
Advisor

Tell me what you want, do you want to control the visibility of an object or its length? What is your condition?



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

0 Likes
Message 6 of 8

Ilic.Andrej
Advisor
Advisor
Accepted solution

For example, if you want to control the visibility of two objects, create three yes/no parameters (for example, one is called "a" ,the other one "b" and the third one "Tibi"). Select objects and look at their properties, next to the param called "visibility", there is a button. Click it and assign yes/no parameters that you created. First object is constrained with param called "a" and the second one with "b".

 

Now, open family parameters dialog. For param called "a", asign this formula

 

Tibi

 

For param called "b", assign this formula

 

not(Tibi)

 

So whenever user clicks "Tibi", he will turn one object on and the other one off.

 

I'm really guessing here what you want, you need to explain a bit more....

 

 



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

Message 7 of 8

DanielLemen
Enthusiast
Enthusiast

This is what I asked for. Thanks alot! 

 

For me it's hard to understand it. not(Tibi) was the answer I needed. That's to easy 😛 

 

0 Likes
Message 8 of 8

Ilic.Andrej
Advisor
Advisor

You re welcome 🙂



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

0 Likes