Controling YES/NO Visibility parameter with "IF/THEN" statements

Controling YES/NO Visibility parameter with "IF/THEN" statements

uoliveira
Advocate Advocate
5,088 Views
7 Replies
Message 1 of 8

Controling YES/NO Visibility parameter with "IF/THEN" statements

uoliveira
Advocate
Advocate

Hi, I have created "Yes/No" visibility parameter in a family and associated it with the text parameter which should changing the value according the yes/no parameter. I have tried writing this, but is not working: If(Visibilidade = 1 > 2, 2 > 1,Código SAP = 10.227.385), is it correct? I never tried to do formulas before. Thanks in advance!  

Accepted solutions (2)
5,089 Views
7 Replies
Replies (7)
Message 2 of 8

L.Maas
Mentor
Mentor
Accepted solution

True is implied for boolean (Yes/No). So it will be something like if(Visibilidade, 'True Statement', 'False Statement')

 

Test.png

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 3 of 8

uoliveira
Advocate
Advocate

Thanks for your help, but I do not know if I have interpreted in the correct way what you have said.I want that the "Código SAP" parameter changes its value according to "Visibility" parameter (if it is checked the "Código SAP "should be 10227384, if not, the" Código SAP"should be 10227381). Like in this image below:

 

 

0 Likes
Message 4 of 8

Alfredo_Medina
Mentor
Mentor

Lous is giving you an example. Use that example to replace the Test parameter with your actual Código SAP parameter. Then, in the formula, replace 1 with 10227384 and replace 0 with 10227381 .


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
Message 5 of 8

uoliveira
Advocate
Advocate

I tried as you said, replacing the gaps, but it still not working. A warning has appeared - "inconsistent units". Something is not working properly and I do not know what 😞 

0 Likes
Message 6 of 8

ToanDN
Consultant
Consultant

Is Codigo SAP a text parameter?

 

Capture.PNG

0 Likes
Message 7 of 8

uoliveira
Advocate
Advocate

Yes!

0 Likes
Message 8 of 8

ToanDN
Consultant
Consultant
Accepted solution

if(Visibilidade, "10.227.384", "10.227.381")

 

By the way, you topic Subject is misleading.  It should read "Control another parameter value with Yes/No visibility parameter".