# Parameter value shown does not correspond with model

**URL:** <https://forum.dynamobim.com/t/parameter-value-shown-does-not-correspond-with-model/58246>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [December 11, 2020, 11:03pm UTC](https://forum.dynamobim.com/t/parameter-value-shown-does-not-correspond-with-model/58246 "2020-12-11T23:03:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenVivancos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rubenvivancos/32/185795_2.png) [@RubenVivancos](https://forum.dynamobim.com/u/RubenVivancos)\
**Post date:** [December 11, 2020, 11:04pm UTC](https://forum.dynamobim.com/t/parameter-value-shown-does-not-correspond-with-model/58246/1 "2020-12-11T23:04:00Z")

</div>

Hello,

I got a curious error of Dynamo that does not show the correct value number of a length parameter of doors.

The value results that I got are a default value of an instance parameter of the Revit family. Although, parameterbyname node shows the real value in the project for the instance family.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/987d596618ed172c28f1a90cb4fe2be70328d74d.png)

Even converting the result in a text, the value goes wrong later.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/8/1809a9d85fe67127d063c36a8a2cbd0125e6e319.png)

Any idea of the cause of that behaviour?

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [December 11, 2020, 11:33pm UTC](https://forum.dynamobim.com/t/parameter-value-shown-does-not-correspond-with-model/58246/2 "2020-12-11T23:33:08Z")

</div>

Hi @RubenVivancos,  
If you close dynamo and re open it and run the script i think you will get the same values in every nodes.  
I think Element.GetParameterByName keep the initals values before the script run (is there a node Element.SetValueByName in your script ?)  
I noticed the same behaviour when i set some new values.

---

<div class="post-metadata">

**Author:** ![RubenVivancos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rubenvivancos/32/185795_2.png) [@RubenVivancos](https://forum.dynamobim.com/u/RubenVivancos)\
**Post date:** [December 11, 2020, 11:52pm UTC](https://forum.dynamobim.com/t/parameter-value-shown-does-not-correspond-with-model/58246/4 "2020-12-11T23:52:19Z")

</div>

> [@Francois\_Labonne](#):
>
> I think Element.GetParameterByName keep the initals values before the script run

the value by default in the family is 1000mm and script modifies the value for each instance family of the project, the getparameterbyname node is located in the script after setparameterbyname node.

It does not work reopening the script or restarting Dynamo for me.

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [December 12, 2020, 12:01am UTC](https://forum.dynamobim.com/t/parameter-value-shown-does-not-correspond-with-model/58246/5 "2020-12-12T00:01:37Z")

</div>

Yes i think it is because a data can’t be set twice in a thread, so Element.GetParameterByName catch the initial value and keep it.

---

<div class="post-metadata">

**Author:** ![RubenVivancos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rubenvivancos/32/185795_2.png) [@RubenVivancos](https://forum.dynamobim.com/u/RubenVivancos)\
**Post date:** [December 12, 2020, 12:41am UTC](https://forum.dynamobim.com/t/parameter-value-shown-does-not-correspond-with-model/58246/6 "2020-12-12T00:41:08Z")

</div>

> [@Francois\_Labonne](#):
>
> can’t be set twice in a thread

it can be, solved with node **Transaction.End**
