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?
Gelöst! Gehe zur Lösung
Gelöst von norbert_szlezak. Gehe zur Lösung
Gelöst von Ilic.Andrej. Gehe zur Lösung
Gelöst von L.Maas. Gehe zur Lösung
Unfortuantely you can not use text in if statements within Revit. You are limited to things like integers, lengths, numbers.
Louis
Please mention Revit version, especially when uploading Revit files.
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
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.
You should learn about a Nested Family with Interchangeable Components
Andrej Ilić
phonetical: ændreɪ ilich
MSc Arch
Autodesk Expert Elite Alumni
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? :
It will not work with nested families though.
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.