Add two strings to one string with plus sign between

Add two strings to one string with plus sign between

DanielLemen
Enthusiast Enthusiast
2,700 Views
5 Replies
Message 1 of 6

Add two strings to one string with plus sign between

DanielLemen
Enthusiast
Enthusiast

I can't figure out how to add Parameter 1 and Parameter 2, so It would look like this : Parameter 1 + Parameter 2

If I use Parameter 2, if not Parameter 1 should be visible. 

 

Please help me

0 Likes
2,701 Views
5 Replies
Replies (5)
Message 2 of 6

bin
Advisor
Advisor

Can you explain a bit more?

0 Likes
Message 3 of 6

DanielLemen
Enthusiast
Enthusiast

I have two artikel number that I would like to add to one paramater/value. 

So "String 1" and "string 2" would be assembled into one like this "String 1 + String 2"

And if there's no "String 2" it would just be "String 1"

Did this help you? 

0 Likes
Message 4 of 6

L.Maas
Mentor
Mentor

Only in a schedule there is  a possibility to combine parameters

Capture.PNG

 

But if you want to combine two values from two parameters combined into a new parameter then this is not possible. Revit has no formulas for string concatenation (combining multiple texts to a single text).

Dynamo can be helpful in such cases. You can use Dynamo to read values from multiple parameters, then combine them and store the new (combined) value in a parameter.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 5 of 6

DanielLemen
Enthusiast
Enthusiast

Wait this is in Family Edit. I make the companys revit files, So there has to be a way. I've seen it before but can not rebuild it. 

If(Pendant, Article number + Pendant number, Article number)

Pendant is Yes/No 

Pendant number and Article number is string. 

0 Likes
Message 6 of 6

L.Maas
Mentor
Mentor

Strings in formulas is current not possible. It is a popular request from users (see this IDEA for example) to have string manipulation with formulas.

 

Solution you might try is to try to prebake your answer something like this:

Capture.PNG

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.