# Combine parameters to create a new parameter value

**URL:** <https://forum.dynamobim.com/t/combine-parameters-to-create-a-new-parameter-value/113677>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [January 15, 2026, 8:38am UTC](https://forum.dynamobim.com/t/combine-parameters-to-create-a-new-parameter-value/113677 "2026-01-15T08:38:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aj003](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@aj003](https://forum.dynamobim.com/u/aj003)\
**Post date:** [January 15, 2026, 8:38am UTC](https://forum.dynamobim.com/t/combine-parameters-to-create-a-new-parameter-value/113677/1 "2026-01-15T08:38:06Z")

</div>

Hi everyone,

I’ve created a Dynamo script that generates an ordering code for duct fittings by combining a few parameters into a single parameter value. I currently have it working as intended, but I’m looking for advice on how to optimize and/or streamline the graph so it’s cleaner and easier to maintain for future Revit updates. I will also be adding a lot more Duct Fittings so the more smoothly it runs the better.

Any help would be greatly appreciated. In particular, I’d love to improve the following areas:

- **Removing decimals more efficiently** – at the moment I’m using `Math.Round` along with several other nodes, and I’m wondering if there’s a cleaner or more robust approach.

- **Reducing duplicated parameter nodes** – I currently have two `Element.GetParameterValueByName` nodes. Ideally, I’d like to use just one. When I tried using a single node, it only returned one of the two parameter values I needed, so I’m not sure what the best approach is here.

Thanks in advance for any suggestions or guidance.

 ![Dynamo Script combine parameters to a parameter value](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/c/5cdd050688b8838acf2bddece292b3c8985d612b.png)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 15, 2026, 9:06am UTC](https://forum.dynamobim.com/t/combine-parameters-to-create-a-new-parameter-value/113677/2 "2026-01-15T09:06:19Z")

</div>

Hello @aj003 for number to string you could try this one here…maybe it could help

 ![Skærmbillede 2026-01-15 095714](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/5/9526ab7e5e2d219a8052ccefb93f23e0f2c01a29.png)  
[number to string.dyn](https://forum.dynamobim.com/uploads/short-url/1NuBvNIYqNd6RtCToLLoDVO3LMP.dyn) (5.6 KB)  
and maybe something here for getparameter  
 ![Skærmbillede 2026-01-15 100429](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/b/4b14a23e720cebbade1ab0c2616bf46ace338165.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 15, 2026, 3:38pm UTC](https://forum.dynamobim.com/t/combine-parameters-to-create-a-new-parameter-value/113677/3 "2026-01-15T15:38:34Z")

</div>

> [@aj003](#):
>
> **Reducing duplicated parameter nodes** – I currently have two `Element.GetParameterValueByName` nodes. Ideally, I’d like to use just one. When I tried using a single node, it only returned one of the two parameter values I needed, so I’m not sure what the best approach is here.

When going from a single input structure to a list of input structures, you should just need to manage the list levels. For a single list of elements, all of which you want to pull multiple parameter values for, you should just need to set the list level of either input to `@1`. Using `element @1` will prioritize the element and give you values by element (sets of two). Using `parameterName @1` will prioritize the parameters and give you values by parameter (sets of however many elements you have). You can use this to control your list structure for downstream nodes if necessary.

---

<div class="post-metadata">

**Author:** ![aj003](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@aj003](https://forum.dynamobim.com/u/aj003)\
**Post date:** [January 16, 2026, 8:29am UTC](https://forum.dynamobim.com/t/combine-parameters-to-create-a-new-parameter-value/113677/4 "2026-01-16T08:29:30Z")

</div>

Thanks for the suggestions, i tried them out and they worked somewhat but it applied the same parameter twice to a & d stil.

Ended up using more Code Block and finding a solution i am happy with, got rid of the rounding nodes as well.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/78dc295a164468191f6be4cc59f1385038958c27.jpeg)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 16, 2026, 5:44pm UTC](https://forum.dynamobim.com/t/combine-parameters-to-create-a-new-parameter-value/113677/5 "2026-01-16T17:44:44Z")

</div>

Your search terms are double wrapped so you have a list of a list instead of just a list of terms. This is adding an extra dimension to your list structure and probably why things aren’t aligning elsewhere.
