Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Concatenate two parameters?

19 ANTWORTEN 19
GELÖST
Antworten
Nachricht 1 von 20
clausneergaard
16310 Aufrufe, 19 Antworten

Concatenate two parameters?

Hello all -

 

I am wondering if there's anybody out there that is aware of a way to concatenate(?) two shared parameters, both defined as text fields.

 

For instance;

Parameter 1 [text]: "Hello"

Parameter 2 [text]: "all"

 

New parameter (with the concatenation);

Parameter 3 [text]: Parameter 1 + Parameter 2

 

...this would give me a Parameter 3 with the data "Hello all", correct? Is there a way to do this?

Thanks in advance. Any help is appreciated.

 

/Claus

19 ANTWORTEN 19
Nachricht 2 von 20

 You can prepare two shared parameters e.g. Shared_1 and Shared_2.

Then you can a paremeter formula e.g. Par.Formula = Shared_1+Shared_2.

Then a new parameter Shared_3 as  Shared_3=Par.Formula.

Nachricht 3 von 20
barthbradley
als Antwort auf: clausneergaard

What version of Revit are you using. Revit introduced the concatenate feature (e.g. combine parameters) in 2018.   

 

BTW: the "3rd" parameter (e.g. the one that combines the two) is not a Shared Parameter.  

Nachricht 4 von 20
ToanDN
als Antwort auf: clausneergaard

You can combine parameters into a single column on a schedule. You can combine parameters into a single label in a tag. But you cannot present the combined value in the properties of the elements without something like Dynamo. If the first two suffice then there you go.
Nachricht 5 von 20

Hi Alessio -

 

Thanks for your reply.

 

I am wondering if you could build on your input - I am not sure I understand it. You're saying that it is possible, through the following process, if I get you correctly;

 

  • Prepare two Shared Parameters (e.g. Shared_1 and Shared_2).
  • Prepare a new Shared Parameter (as a formula), for instance Shared_formula_1 = Shared_1 + Shared_2.
  • Finally, prepare a new parameter Shared_3 (as a formula), ie; = Shared_formula_1.

Correct?

Thanks.

Nachricht 6 von 20
Corsten.Au
als Antwort auf: clausneergaard

You can place two parameters next to each other and remove the formatting line to achieve final result.You can place two parameters next to each other and remove the formatting line to achieve final result.

Corsten
Building Designer
Nachricht 7 von 20
clausneergaard
als Antwort auf: Corsten.Au

Oh .. okay. I see. Thank you.

Nachricht 8 von 20
clausneergaard
als Antwort auf: Corsten.Au

The problem is, though, that I don't want - per se - the data extracted into schedules. For now, at least.

 

I want it to be stored in the Family-parameter values ... for later usage.

Nachricht 9 von 20

That is correct, Paramter formula could be even a family parameter.

The important is thta Shared_3 connected with the first two must be a shared parametr.

In this way you concatenate the first 2 shared parametr with the third.

Nachricht 10 von 20
ToanDN
als Antwort auf: clausneergaard


@clausneergaard wrote:

Hi Alessio -

 

Thanks for your reply.

 

I am wondering if you could build on your input - I am not sure I understand it. You're saying that it is possible, through the following process, if I get you correctly;

 

  • Prepare two Shared Parameters (e.g. Shared_1 and Shared_2).
  • Prepare a new Shared Parameter (as a formula), for instance Shared_formula_1 = Shared_1 + Shared_2.
  • Finally, prepare a new parameter Shared_3 (as a formula), ie; = Shared_formula_1.

Correct?

Thanks.


 

No.  You cannot combine two text shared parameters to another text shared parameter with a formula.  You can only combine them to a label in a tag family, or combine them to a column ion a schedule.

Nachricht 11 von 20
pieter1
als Antwort auf: ToanDN

Consider voting on these two revit ideas if you'd like to see that functionality implemented

 

 

Nachricht 12 von 20
XXalessio.amodioXX
als Antwort auf: ToanDN

You are right. I did my syllogism considering parameter as [dimention] not [text]

Nachricht 13 von 20
myuziklhaver
als Antwort auf: clausneergaard

Hi. This is a little old reply and might not be relevant to your question but I'm also finding myself in a similar situation where I have 2 parameters where the value of the 1st parameter(cap1) will be from the 2nd parameter(cap2). cap1 is shared parameter and cap2 is a family parameter which values are generated from a catalog list(txt file). They are both text parameters. I already used cap1 parameter in all of my families and reflected them in my schedule so I equals cap2 to cap1 to reflect its values in my schedules.

At first I had only number registered into my catalog list for cap2 parameter but then I realized I wanted to show a unit for this cap1 parameter like GPM. So I started digging into concatenating it but it won't work since revit doesn't have text formulas. I just edited my catalog list and added GPM to cap2 values and it did the job. 

So you might want to pull out your values from a txt file instead.

hope this helps.

Nachricht 14 von 20
dbillionMUYTG
als Antwort auf: barthbradley

I'm not getting it.

I'm using Revit 2022.

I have a Shared Parameter: Row

I have a Shared Parameter: Column

I have a Shared Parameter:  Label.  I tried to put in the formula Row+Column and got the error message: "Improper use of boolean expressions."

I created a non-shared parameter:  Text.  Tried the same formula and got the same error message.

What am I missing?

Nachricht 15 von 20
Alfredo_Medina
als Antwort auf: dbillionMUYTG


@dbillionMUYTG wrote:

I'm not getting it.

I'm using Revit 2022.

I have a Shared Parameter: Row

I have a Shared Parameter: Column

I have a Shared Parameter:  Label.  I tried to put in the formula Row+Column and got the error message: "Improper use of boolean expressions."

I created a non-shared parameter:  Text.  Tried the same formula and got the same error message.

What am I missing?


 

If parameters "Row" and "Column" are text, you cannot do a formula such as Row + Column in another field. Text data cannot do arithmetic operators. What you can do is use "Combine Parameters" (concatenate text) in another field. 

Please refer to this article to learn more about combining parameters: https://help.autodesk.com/view/RVT/2023/ENU/?guid=GUID-D6EA2F43-0278-4E50-BADD-2AEA9C2FD26B


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
Nachricht 16 von 20
pieter1
als Antwort auf: dbillionMUYTG

This is currently not supported. Schedules have a dedicated feature to 'combine parameters', but concatenating parameters using formulas (be it inside the family, as a global parameter, a formula in a tag or a formula in a schedule) is not supported. 

 

 

Nachricht 17 von 20
dbillionMUYTG
als Antwort auf: clausneergaard

Okay, can only be done in a schedule.  Makes sense.  Thanks.

Nachricht 18 von 20
clausneergaard
als Antwort auf: pieter1

Hello all -

 

Thanks for all the inputs, thoughts and ideas. It’s been a while since I’ve tried to make it work, like, back from the start of the post. 

I’ve made some workarounds since then. 


So, okay. Figures. 

Thanks, though, to everyone. 

Nachricht 19 von 20
L.Maas
als Antwort auf: clausneergaard

Ther was a smilar thread in the stucture forum. We discussed using Dynamo to get several parameters from families, then combine them in a product code and then storing that code back into a paramter of the family.

I made an example script and uploaded the Dynamo script. Should be relatively easy to modify for your purposes.

https://forums.autodesk.com/t5/revit-structure-forum/parametros-combinados-en-una-tabla-a-ifc/td-p/1...

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Nachricht 20 von 20
clausneergaard
als Antwort auf: L.Maas

Awesome! Thanks.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report