# Copying Elevation Parameter into a Shared Parameter

**URL:** <https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061>\
**Category:** Revit\
**Created:** [February 13, 2019, 8:17am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061 "2019-02-13T08:17:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![oladamilola](https://avatars.discourse-cdn.com/v4/letter/o/b9bd4f/32.png) [@oladamilola](https://forum.dynamobim.com/u/oladamilola)\
**Post date:** [February 13, 2019, 8:17am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/1 "2019-02-13T08:17:06Z")

</div>

Hello People,  
I’m trying to move a revit parameter “elevation” into a new shared parameter so i could annotate my wall openings. Could anyone help on how to move forward with this thanks?

 ![Unbenannt](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/d/fdaeee13d88fa8411623496d68f1d319cd1aee61.jpeg)

---

<div class="post-metadata">

**Author:** ![CVestesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cvestesen/32/56704_2.png) [@CVestesen](https://forum.dynamobim.com/u/CVestesen)\
**Post date:** [February 13, 2019, 8:20am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/2 "2019-02-13T08:20:49Z")

</div>

@oladamilola just asking:  
Can I see your graph? 🙂

---

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [February 13, 2019, 8:24am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/3 "2019-02-13T08:24:02Z")

</div>

This will copy the value of parameter A to parameter B.  
In this case i used all elements of the category floors:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/b/0bbfbd231200806f52462dfa2f50028c24b24e12.png)

You could filter the selection based on material / floor type whatsoever 🙂  
Good luck!

---

<div class="post-metadata">

**Author:** ![oladamilola](https://avatars.discourse-cdn.com/v4/letter/o/b9bd4f/32.png) [@oladamilola](https://forum.dynamobim.com/u/oladamilola)\
**Post date:** [February 13, 2019, 8:42am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/4 "2019-02-13T08:42:42Z")

</div>

Thanks so much.  
This actually works for me like this. But how do i filter it to just an element of a category. I have furnitures and what nots as Generic models and i would like the script to only work for a certain element

---

<div class="post-metadata">

**Author:** ![oladamilola](https://avatars.discourse-cdn.com/v4/letter/o/b9bd4f/32.png) [@oladamilola](https://forum.dynamobim.com/u/oladamilola)\
**Post date:** [February 13, 2019, 8:45am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/5 "2019-02-13T08:45:20Z")

</div>

Thanks for the Reply. But in case i only want the script to work for only a certain element in the generic models category. How do i then filter this out.  
Thanks ![123](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/e/3e5bf2b3cdc5c5770af19cbef130b121c972850c.jpeg)

---

<div class="post-metadata">

**Author:** ![oladamilola](https://avatars.discourse-cdn.com/v4/letter/o/b9bd4f/32.png) [@oladamilola](https://forum.dynamobim.com/u/oladamilola)\
**Post date:** [February 13, 2019, 8:46am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/6 "2019-02-13T08:46:09Z")

</div>

It´s down below. Is it possile to replace the Category with Family Types instead ?

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [February 13, 2019, 8:58am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/7 "2019-02-13T08:58:14Z")

</div>

Yes, you can use the node [All Elements of Family Type](http://dictionary.dynamobim.com/#/Revit/Selection/Action/All%20Elements%20of%20Family%20Type) instead of All Elements of Category.

To filter what you want and don’t want, try searching for FilterByBoolMask, there should be hundreds of threads on how to use it.

---

<div class="post-metadata">

**Author:** ![Schasfoortyoeri](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Schasfoortyoeri](https://forum.dynamobim.com/u/Schasfoortyoeri)\
**Post date:** [February 13, 2019, 9:41am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/8 "2019-02-13T09:41:44Z")

</div>

You could also filter on Name or any other parameter the floor has.

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

See here the result:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/9/6914881543ff714fd04e552645020f7032328cf4.png)

This way you can fill in multiple family types

---

<div class="post-metadata">

**Author:** ![ssahamed](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@ssahamed](https://forum.dynamobim.com/u/ssahamed)\
**Post date:** [September 21, 2020, 9:06am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/9 "2020-09-21T09:06:19Z")

</div>

Whenever I’m trying to copy a Level/Reference Level to a shared/project parameter, It’s showing some error.

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

Do I need to change anything in the parameter to copy a Level/Reference Level?

Rest of the parameters, like: Offset, System Classification, Slope are easily coping into it. The problem is occurring only with the Level/ Reference Level.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [September 21, 2020, 9:29am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/10 "2020-09-21T09:29:43Z")

</div>

You must convert the level Elements to a string. Use the _Element.Name_ node after the _GetParameterValueByName_ and before the _SetParameterByName_ node.

---

<div class="post-metadata">

**Author:** ![ssahamed](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@ssahamed](https://forum.dynamobim.com/u/ssahamed)\
**Post date:** [October 1, 2020, 9:34am UTC](https://forum.dynamobim.com/t/copying-elevation-parameter-into-a-shared-parameter/32061/11 "2020-10-01T09:34:57Z")

</div>

Thanks for the help. 🙂
