# Changing Material Parameter - Material: Description - from a wall category using excel

**URL:** <https://forum.dynamobim.com/t/changing-material-parameter-material-description-from-a-wall-category-using-excel/12294>\
**Category:** Uncategorized\
**Tags:** revit, clockwork, excel, dynamo\
**Created:** [June 6, 2017, 12:22pm UTC](https://forum.dynamobim.com/t/changing-material-parameter-material-description-from-a-wall-category-using-excel/12294 "2017-06-06T12:22:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandredav](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alexandredav/32/23410_2.png) [@alexandredav](https://forum.dynamobim.com/u/alexandredav)\
**Post date:** [June 6, 2017, 12:22pm UTC](https://forum.dynamobim.com/t/changing-material-parameter-material-description-from-a-wall-category-using-excel/12294/1 "2017-06-06T12:22:19Z")

</div>

Hi all,  
I have trying to change all walls material: Description’s parameter from a spreadsheet.  
Tried using clockwork from Element.CompoundLayers to list all materials and then Element.SetParameter.ByName (I have a guess this is where the error is coming from) Excel.ReadFromFile. And Error.

If anyone ever tried something similar could give some help.

img src="//cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/8/a/8ac04d7d7c173dec194b1621cb8cb02e4ed50180.png" width=“689” height=“276”\>

Thanx in advance!

---

<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:** [June 6, 2017, 4:07pm UTC](https://forum.dynamobim.com/t/changing-material-parameter-material-description-from-a-wall-category-using-excel/12294/2 "2017-06-06T16:07:07Z")

</div>

If you already have the material names and descriptions in Excel you can search for the material elements by name then change the description.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/b/ababad69218bad309d6e080079b4c5af36132d3d.png)  
Is that the workflow you’re looking for?

---

<div class="post-metadata">

**Author:** ![alexandredav](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alexandredav/32/23410_2.png) [@alexandredav](https://forum.dynamobim.com/u/alexandredav)\
**Post date:** [June 6, 2017, 6:15pm UTC](https://forum.dynamobim.com/t/changing-material-parameter-material-description-from-a-wall-category-using-excel/12294/3 "2017-06-06T18:15:01Z")

</div>

Thank you for the reply Nick,  
I tried to do that, but couldn’nt make it work. The materials description didnt’ follow the materials names.  
I have materials names in a spreadsheet list and I’m having a problem to link that list with the “all elements of category” names and their index. Below is this last attemp.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/c/7c81482f4a56f171e947913b4028de737e523263.jpg)

I think to work it would be neccessary to get the index from the “All elements of category” list combined with the material name from excel spreadsheet. Couldn’t find a way to do that though.

---

<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:** [June 6, 2017, 7:28pm UTC](https://forum.dynamobim.com/t/changing-material-parameter-material-description-from-a-wall-category-using-excel/12294/4 "2017-06-06T19:28:30Z")

</div>

You need to get the elements who’s name matches your Excel list, then you can apply the new description to each element.

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

---

<div class="post-metadata">

**Author:** ![alexandredav](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alexandredav/32/23410_2.png) [@alexandredav](https://forum.dynamobim.com/u/alexandredav)\
**Post date:** [June 6, 2017, 8:01pm UTC](https://forum.dynamobim.com/t/changing-material-parameter-material-description-from-a-wall-category-using-excel/12294/5 "2017-06-06T20:01:34Z")

</div>

Thank you very much Nick!!  
That did the trick!!  
Awesome!

---

<div class="post-metadata">

**Author:** ![alexandredav](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alexandredav/32/23410_2.png) [@alexandredav](https://forum.dynamobim.com/u/alexandredav)\
**Post date:** [June 7, 2017, 12:10am UTC](https://forum.dynamobim.com/t/changing-material-parameter-material-description-from-a-wall-category-using-excel/12294/6 "2017-06-07T00:10:20Z")

</div>

Detected a problem when the Material Name has “:” in it. When that happens there is no filling the Material Description, in addition of the Index returns with problems for the rest of the list. As I had only two Material Names with “:” I manually renamed them.

---

<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:** [June 7, 2017, 6:25pm UTC](https://forum.dynamobim.com/t/changing-material-parameter-material-description-from-a-wall-category-using-excel/12294/7 "2017-06-07T18:25:05Z")

</div>

Yeah, I believe there are a few invalid characters for material names. Glad you got it sorted out.
