I'm trying to create a Label in a Lighting Fixture tag that uses an if/then statement with generic Text and a concatenation of two shared parameters (built-in ones: Panel and Circuit Number)
Theory:
If "Emergency Yes/No parameter" is checked true on the light, then tag displays: "EM, EMLP-3" which is "EM" text plus (Panel)-(Circuit Number)
Various errors come up when attempting a formula like this, including "Left Parenthesis not expected" and "Invalid Operator" (for the minus sign which is a hyphen in this use case).
Has anyone been successful making a formula like this? If so please share.
Thank you!
Solved! Go to Solution.
Solved by ToanDN. Go to Solution.
I could be wrong but i am pretty sure you cannot concatenate two text strings into one text string within a revit family. I think you need to do it using a Label. Can you show some images of what you are trying to do in the Family Types?
https://forums.autodesk.com/t5/revit-ideas/concatenation-of-parameters-within-families/idi-p/6339606
I think you're right, based on the link you provided. So I think the only way to accomplish this is to use two family types with a visibility parameter to control the display of the label (as opposed to using an if/then statement which reads a parameter of the Light being tagged to display the label or not).
Here's my settings and the error I get when I attempt to concatenate two parameters.
Toan, thank you for the sanity check. I was overcomplicating it. You're right, and I got it to do what I wanted by creating four formula parameters (which all went on the same line), which all used "if Emergency is true, then..." and with only one 'then result' it successfully used the shared parameters and text substitutions I desired.
Cheers!
Here's the winning strategy:
Can't find what you're looking for? Ask the community or share your knowledge.