Multiple Text Parameters in a Formula

Multiple Text Parameters in a Formula

Anonymous
Not applicable
4,988 Views
4 Replies
Message 1 of 5

Multiple Text Parameters in a Formula

Anonymous
Not applicable

Hello!

So I know you can add together length parameters in a parameter formula (e.g. a "Perimeter" formula for a shape might be something like "(2*Length)+(2*Width)"), but I'm wondering if there is a way to "add" or combine multiple text parameters in a separate text parameter's formula. Right now I'm only able to reference one text parameter in a formula, making them directly tied. For instance, I'm working with a Transformer in which I want to make this shared description parameter, called "PE_Description", a combination of the KVA rating parameter and the K rating parameter, but I can only seem to include one or the other in the formula. I'm trying to do something like this:

 

PE_Description = ♦ KVA + ♦ K Rating

2019-05-08_1010.png

Where "♦ KVA" and "♦ K Rating" are the text parameters for KVA rating and K Rating. This gives me an error for "Improper use of boolean expressions." If these parameter values were equal to 300 KVA and K1 respectively, I would want the PE_Description Parameter to read as "300 KVA K1" and maybe be able to separate them with a comma or a dash. Is this possible? Am I missing something? Thanks!

 

Jake

0 Likes
Accepted solutions (1)
4,989 Views
4 Replies
Replies (4)
Message 2 of 5

L.Maas
Mentor
Mentor
Accepted solution

No string manipulations in formulas allowed in Revit.

If you want to accomplish something like this you could use Dynamo. Read the values from the different parameters, then combining them in Dynamo and then pushing them back into a parameter in Revit

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 3 of 5

fabiosato
Mentor
Mentor

Hello,

 

You can´t do it in the family, but you can do it in schedules.

Fábio Sato
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 4 of 5

Anonymous
Not applicable

Depending on what its needed for an alternative way of doing with would be to put the details you want in either the comments or type comments then edit label in a tag to include them so for example the tag could be made up of power and comments which could be KVA and K1 in the Type comments so when you tag it on the model it would appear as 300 KVA K1.

Or could possibly create shared parameters and do it that way that assuming you want it to show in the model or on sheets otherwise probably need to Create new combined parameter in schedules as L.Mass suggests.

Message 5 of 5

Anonymous
Not applicable

Create a dummy parameter and merge it

0 Likes