Is it possible to reference a material by it's string name in the FamilyEditor? A material object can be retrieved in this way using the Revit API. However, as not everything is possible in the Revit UI that can be achieved with the API, I was wondering if there is any way to achieve this behavior over the UI that I haven't thought about yet.
Preferable Implementation:
Documentation of Revit says that conditional statements in formulas are only permitted for numeric and yes/no parameters (see link below). So the latter point will not be achievable so far.
Some people might wonder why I don't want the user to set the parameter via the Material-Browser. This is because of reduction of clicks and time for searching, and to ensure that the "MaterialText" parameter is mapped to a specific material representation in the project. "MaterialText" could change very often depending on how many alternatives are played through. It should always be the same instance only with the two parameters changed. The solution over the API has the disadvantage that the user always has to remember to click the button that overwrites the material parameters based on the text parameter.
I assume that the explained behavior is not implemented within the Revit Family Editor yet; no formulas are permitted for material parameters and also the Revit documentation does not mention it. Still, I hope there's someone out there who has some more information on that topic.
Thanks in advance!
Gelöst! Gehe zur Lösung
Gelöst von Mirko.Jurcevic. Gehe zur Lösung
Do not waste time, this is not possible in Revit UI, only with Revit API.
In general, using text (string) in family IF formulas is not possible, for example:
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.