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: 

hot to refer text type parameter in formulas

6 ANTWORTEN 6
GELÖST
Antworten
Nachricht 1 von 7
Anonymous
1101 Aufrufe, 6 Antworten

hot to refer text type parameter in formulas

Hi,

I have this text type parameter and I want to refer it in another parameter in an if statement but it gives an error.

I am trying to do something like that:

Parameter 1 = if(parameter 2 = "text1", true condition, false condition)

I tried with "..." and without, but no luck.

any ideas?

6 ANTWORTEN 6
Nachricht 2 von 7
L.Maas
als Antwort auf: Anonymous

Unfortuantely you can not use text in if statements within Revit. You are limited to things like integers, lengths, numbers.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Nachricht 3 von 7
Ilic.Andrej
als Antwort auf: Anonymous

Can you elaborate a bit more? We can give you some workarounds that don't involve text parameters...



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

Nachricht 4 von 7
Anonymous
als Antwort auf: Anonymous

I see. I am creating door families and they will have this parameters for selecting correct items. For example for "A-20" set, there will be door closer and handle. but when this controller parameter set is "A-21" it should select door closer, panic bar and kick plate etc. So I have these yes/no parameters for multiple items about deciding their visibility. Lets say that I changed controller parameters into integers or something that will work in parameters, how can I achieve such a statement like "if the parameter is "1", pick parameter "A" and "B" as yes but "C" and "D" as no" & "if the parameter is "2", pick parameter "A", "C" and "B" as yes but "D" as no". so that when I enter the hardware set number, I will have different visibility options for different scenarios.

Nachricht 5 von 7
Ilic.Andrej
als Antwort auf: Anonymous

You should learn about a Nested Family with Interchangeable Components 



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

Nachricht 6 von 7
norbert_szlezak
als Antwort auf: Anonymous

I would suggest, as it was already suggested before, to use nested families and/or creating types.

If even so you want to try to solve it with formulas maybe this kind of solution will inspire you? :

norbert_szlezak_0-1592762765097.png

It will not work with nested families though.

 

Nachricht 7 von 7
Anonymous
als Antwort auf: Anonymous

Thank you for your replies, they seem promising and they will probably solve my issues

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