# Changing element parameter which are part of a assembly

**URL:** <https://forum.dynamobim.com/t/changing-element-parameter-which-are-part-of-a-assembly/73528>\
**Category:** Revit\
**Created:** [February 20, 2022, 12:50pm UTC](https://forum.dynamobim.com/t/changing-element-parameter-which-are-part-of-a-assembly/73528 "2022-02-20T12:50:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![496424](https://avatars.discourse-cdn.com/v4/letter/4/b19c9b/32.png) [@496424](https://forum.dynamobim.com/u/496424)\
**Post date:** [February 20, 2022, 12:50pm UTC](https://forum.dynamobim.com/t/changing-element-parameter-which-are-part-of-a-assembly/73528/1 "2022-02-20T12:50:51Z")

</div>

Hello everyone,  
Could someone help me with dynamo, I’m trying to change a element parameter (Mark) in multiply assemblies. For so far I’ve greated in dynamo that it can find the elements that I need in the assemblies and sorten them.  
The problem is that i got a error in the end when i want to tranfser the data back to revit.

For each assembly I need to great a Mark from 1 until 10 or more depends how many different elements there are. I’ve put a picture and the dynamo script below.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/8/48936b9edd4575953dd8863660bace57d150475a.png)

[Automatic Mark.dyn](https://forum.dynamobim.com/uploads/short-url/tJ88fw9tnrwzRcMPDZ7phXwoeJv.dyn) (51.7 KB)

---

<div class="post-metadata">

**Author:** ![jaisonpr777](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaisonpr777/32/133639_2.png) [@jaisonpr777](https://forum.dynamobim.com/u/jaisonpr777)\
**Post date:** [February 23, 2022, 7:05am UTC](https://forum.dynamobim.com/t/changing-element-parameter-which-are-part-of-a-assembly/73528/2 "2022-02-23T07:05:12Z")

</div>

Hi, Please check the Parameter data type.  
I guess, The Parameter is a "Number " having an int or float data type,  
So the values you are passing must be a number.  
But here, you are passing a string data type.

---

<div class="post-metadata">

**Author:** ![496424](https://avatars.discourse-cdn.com/v4/letter/4/b19c9b/32.png) [@496424](https://forum.dynamobim.com/u/496424)\
**Post date:** [February 23, 2022, 11:06am UTC](https://forum.dynamobim.com/t/changing-element-parameter-which-are-part-of-a-assembly/73528/3 "2022-02-23T11:06:25Z")

</div>

Thank you for the respond, how can I solve this to the right data

---

<div class="post-metadata">

**Author:** ![Elie.Trad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/elie.trad/32/110373_2.png) [@Elie.Trad](https://forum.dynamobim.com/u/Elie.Trad)\
**Post date:** [February 23, 2022, 11:53am UTC](https://forum.dynamobim.com/t/changing-element-parameter-which-are-part-of-a-assembly/73528/4 "2022-02-23T11:53:14Z")

</div>

@496424 The parameter Number type should be “Text” (Type of Parameter) in your family.
