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
Gelöst! Gehe zur Lösung
Gelöst von pieter1. Gehe zur Lösung
Gelöst von ToanDN. Gehe zur Lösung
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.
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.
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;
Correct?
Thanks.
You can place two parameters next to each other and remove the formatting line to achieve final result.
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.
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.
@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.
Consider voting on these two revit ideas if you'd like to see that functionality implemented
You are right. I did my syllogism considering parameter as [dimention] not [text]
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.
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?
@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
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.
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.
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.
Louis
Please mention Revit version, especially when uploading Revit files.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.