# Create levels from newly created reference level

**URL:** <https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [March 23, 2022, 9:48am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686 "2022-03-23T09:48:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [March 23, 2022, 9:48am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686/1 "2022-03-23T09:48:10Z")

</div>

Hi all, I am trying to create levels by elevation from a newly created reference level but it is not working. It always takes the existing one. Please let me know how to create levels by the new reference level as shown in the picture?

Thanks in advance

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

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [March 23, 2022, 9:53am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686/2 "2022-03-23T09:53:12Z")

</div>

Maybe show parts of your Graph (.dyn)?

---

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [March 23, 2022, 9:54am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686/3 "2022-03-23T09:54:34Z")

</div>

Yeah sure @bvs1982 here is the graph  
[Parametric Levels.dyn](https://forum.dynamobim.com/uploads/short-url/1Jd6smDQkMEwqdheKip9L9E2sTl.dyn) (124.4 KB)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [March 23, 2022, 9:57am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686/4 "2022-03-23T09:57:18Z")

</div>

> [@Script for a string parameter](https://forum.dynamobim.com/t/script-for-a-string-parameter/74668/2):
>
> I am not behind a pc, but if you would also post an image i probably could help you. PS Posting the .rvt and .dyn is allways useful, but an image would be great too.

> [@Script for a string parameter](https://forum.dynamobim.com/t/script-for-a-string-parameter/74668/3):
>
> Sharing the graph and support files are much appreciated for more complex problems, but I think you’ll have more replies if you post full images of the graph (with node previews) so that people don’t have to go through the extra effort of trying to reproduce your work.

Also a bit more info would be appreciated. Like what did you use for making your `Reference level`?

---

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [March 23, 2022, 9:58am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686/5 "2022-03-23T09:58:55Z")

</div>

Sorry my mistake @bvs1982 . I am taking help of excel sheet to create levels

here is the sheet

[Grids data.xlsx](https://forum.dynamobim.com/uploads/short-url/e4829UuezNqC0TNQA1gcQxAWV2Y.xlsx) (9.2 KB)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [March 23, 2022, 10:01am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686/6 "2022-03-23T10:01:01Z")

</div>

Still an image of your Graph would be useful. 🙃  
Many people here can assist with just an image. People don’t allways have access to Revit and / or Dynamo.

> [@Script for a string parameter](https://forum.dynamobim.com/t/script-for-a-string-parameter/74668/3):
>
> but I think you’ll have more replies if you post full images of the graph (with node previews)

---

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [March 23, 2022, 10:02am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686/7 "2022-03-23T10:02:47Z")

</div>

@bvs1982 here it is

 ![Parametric Levelspng](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/3/83345ec87e71de91b4726a2d1e8f7c8223bbc7f8.png)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [March 23, 2022, 10:12am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686/8 "2022-03-23T10:12:43Z")

</div>

I will have a look later. Missing some packages. Maybe someone else has an answer before me.  
I also thought your Graph would be a bit simpler ;). I think people could also use a Sample Project.

**PS**  
Do you run this Graph using Dynamo or Dynamo Player or some other tool?  
Also your workflow is a bit unclear to me. There is this Excel and people have to pick a Level?  
Not to mention the Python. So i think you might need to provide more information so people can help you better.

---

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [March 23, 2022, 10:19am UTC](https://forum.dynamobim.com/t/create-levels-from-newly-created-reference-level/74686/9 "2022-03-23T10:19:56Z")

</div>

Okay Thanks @bvs1982

I got the solution.

I need to use Element.Setparameterbyname node after creating the levels. Then it works fine for what I was expecting.

Thanks for your time. I really appreciate it.
