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: 

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

7 ANTWORTEN 7
GELÖST
Antworten
Nachricht 1 von 8
uoliveira
4614 Aufrufe, 7 Antworten

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

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!  

7 ANTWORTEN 7
Nachricht 2 von 8
L.Maas
als Antwort auf: uoliveira

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.

Nachricht 3 von 8
uoliveira
als Antwort auf: L.Maas

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:

 

 

Nachricht 4 von 8
Alfredo_Medina
als Antwort auf: uoliveira

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
Nachricht 5 von 8
uoliveira
als Antwort auf: Alfredo_Medina

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 :enttäuschtes_Gesicht: 

Nachricht 6 von 8
ToanDN
als Antwort auf: uoliveira

Is Codigo SAP a text parameter?

 

Capture.PNG

Nachricht 7 von 8
uoliveira
als Antwort auf: ToanDN

Yes!

Nachricht 8 von 8
ToanDN
als Antwort auf: uoliveira

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".

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