# Set parameter with the same name to different value

**URL:** <https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309>\
**Category:** Dynamo Player\
**Created:** [October 5, 2023, 8:06am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309 "2023-10-05T08:06:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoelB](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@RoelB](https://forum.dynamobim.com/u/RoelB)\
**Post date:** [October 5, 2023, 8:06am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309/1 "2023-10-05T08:06:18Z")

</div>

Hi,

I am trying to set parameters in dynamo.  
But my element has several parameters with the same name. But i want both of them to get different values.

As you can see “Justification” exist two time in my list, on number 22 and 23  
But somehow i can’t change the value of number 22.  
How can i get that parameter to change?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/a/7a76b0c5078fe02353db2ff1a0f0110f944fe028.png)

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [October 5, 2023, 8:07am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309/2 "2023-10-05T08:07:47Z")

</div>

1 - unless one is an instance and the other is type, I suggest you rename the parameters.  
2 - It’s a crappy solution and won’t necessarily work for every instance but you could just get item at index and use that parameter.

---

<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:** [October 5, 2023, 8:10am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309/3 "2023-10-05T08:10:52Z")

</div>

Hi try parameter.set.value instead and just feed in the parameter

---

<div class="post-metadata">

**Author:** ![RoelB](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@RoelB](https://forum.dynamobim.com/u/RoelB)\
**Post date:** [October 5, 2023, 8:22am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309/4 "2023-10-05T08:22:12Z")

</div>

> [@Alien](#):
>
> 2 - It’s a crappy solution and won’t necessarily work for every instance but you could just get item at index and use that parameter.

1: I can’t rename one of them. Because both are Build in parameters  
2: You mean like the screenshot?

@sovitek I tried that, but probably i do something wrong.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/6/d65f012654ad75bbbb9b4da2b2bfff2c2960434e.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:** [October 5, 2023, 8:52am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309/5 "2023-10-05T08:52:05Z")

</div>

not sure but in your first image it should work as both justification parameter has value, but in your second image there are no value, dont know why it should always have a value i guess

---

<div class="post-metadata">

**Author:** ![RoelB](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@RoelB](https://forum.dynamobim.com/u/RoelB)\
**Post date:** [October 5, 2023, 8:58am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309/6 "2023-10-05T08:58:29Z")

</div>

I also dont know why there was nu value. But when i change the number in my code block to 2 it works fine.

Thanks guys it looks like its working fine.

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [October 5, 2023, 9:04am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309/7 "2023-10-05T09:04:45Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/f/2f43d8bb96dc93f2adf9eaafdfae6f75680efc29.png)

One’s end and one is beginning?  
Can you write the full parameter name?

Is this for text?

---

<div class="post-metadata">

**Author:** ![RoelB](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@RoelB](https://forum.dynamobim.com/u/RoelB)\
**Post date:** [October 5, 2023, 9:11am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309/8 "2023-10-05T09:11:54Z")

</div>

> [@Alien](#):
>
> Is this for text?

The justification parameters are for the grid lines of a sloped glazing.

---

<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:** [October 5, 2023, 9:51am UTC](https://forum.dynamobim.com/t/set-parameter-with-the-same-name-to-different-value/94309/9 "2023-10-05T09:51:17Z")

</div>

Yeah seems with dynamo we can make the value empty but not manuelly…here is the enums for 2024

 ![Skærmbillede 2023-10-05 114927](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/068ef50cc15d92341bdb466fc8ddd56ada5cd7c0.png)
