# Rebar Cover Settings

**URL:** <https://forum.dynamobim.com/t/rebar-cover-settings/13035>\
**Category:** Revit\
**Created:** [July 7, 2017, 11:22am UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035 "2017-07-07T11:22:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Rigby](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Steven\_Rigby](https://forum.dynamobim.com/u/Steven_Rigby)\
**Post date:** [July 7, 2017, 11:22am UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/1 "2017-07-07T11:22:32Z")

</div>

Hello everyone.  
I was asked if I could adjust the Reinforcement cover settings for all the elements in our project. I was asked to amend it to say  
“REFER TO NBS CLAUSE” I initially thought that this would be a very simple case of Element.GetParameterValueByName followed by Element.SetParameterByName  
This doesn’t seem to be the case. This is the graph I produced.  
Any help on getting this to work would be a great help as I will be using it on future projects.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/5/853abc20aa4118f38e04b8d3fd16eb468f496305.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 7, 2017, 12:27pm UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/2 "2017-07-07T12:27:22Z")

</div>

1. You are feeding parameter values into the set parameter by name field.

2. You would be overwriting the parameter values you pulled with just the added string. You need to combine that with the previous value using a string manipulation method. I like using a code block along the lines of OldValue + " " + Suffix where the previous value is the old value input and the added text is the suffix input.

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [July 7, 2017, 12:38pm UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/3 "2017-07-07T12:38:59Z")

</div>

Check the stoarage type of the various rebar cover settings. They are not strings, but rebar cover elements. You need to create a new type and feed the SetParameterByName node with the new elements as value.

---

<div class="post-metadata">

**Author:** ![Steven\_Rigby](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Steven\_Rigby](https://forum.dynamobim.com/u/Steven_Rigby)\
**Post date:** [July 7, 2017, 12:48pm UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/4 "2017-07-07T12:48:54Z")

</div>

Thanks Jacob

I do want to overwrite the parameter values that is my problem.

I’m not really interested in what those original Revit cover settings are as our specification covers that information I created new type within Revit which I can apply manually within Revit

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/4/84638e8d5dcf9a3357cd7526895d56192f945fb7.png)  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e45899b7fd5f63acc61733858455a214b5bdfbdc.png)

I don’t want to have to do it manually for every single element. Dynamo should be able to do this easily for me. I’m struggling with the last part of the graph and don’t know why or how to fix it.

---

<div class="post-metadata">

**Author:** ![Steven\_Rigby](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Steven\_Rigby](https://forum.dynamobim.com/u/Steven_Rigby)\
**Post date:** [July 7, 2017, 12:50pm UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/5 "2017-07-07T12:50:04Z")

</div>

Could you show me an example please Einar

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [July 7, 2017, 1:03pm UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/6 "2017-07-07T13:03:20Z")

</div>

here you go:

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

---

<div class="post-metadata">

**Author:** ![Steven\_Rigby](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Steven\_Rigby](https://forum.dynamobim.com/u/Steven_Rigby)\
**Post date:** [July 7, 2017, 1:14pm UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/7 "2017-07-07T13:14:46Z")

</div>

Thanks Einar

what does this ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/f/d/fdae0694a530816155a9943dcf12af24634c4239.png) in your graph do?

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [July 7, 2017, 1:16pm UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/8 "2017-07-07T13:16:38Z")

</div>

it does the same as the [Element.Name](http://Element.Name) node - gets the name from the element

---

<div class="post-metadata">

**Author:** ![Steven\_Rigby](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Steven\_Rigby](https://forum.dynamobim.com/u/Steven_Rigby)\
**Post date:** [July 7, 2017, 1:29pm UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/9 "2017-07-07T13:29:58Z")

</div>

Thank you Einar.

My problem is solved. This will save me much time going forward.

Kindest regards

Steve

---

<div class="post-metadata">

**Author:** ![Jorge\_Villarroel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jorge_villarroel/32/23619_2.png) [@Jorge\_Villarroel](https://forum.dynamobim.com/u/Jorge_Villarroel)\
**Post date:** [July 26, 2017, 7:15pm UTC](https://forum.dynamobim.com/t/rebar-cover-settings/13035/10 "2017-07-26T19:15:47Z")

</div>

Hi @Einar_Raknes, I’m looking for a similar solution but for wall elements.

This is my script:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/5/858399b5d0ebd1739449cc64cdc171a837306563.png)

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

I can’t get it done, why it doesn’t do the change in all of my elements?

Thanks in advance!
