# Auto create & rename levels

**URL:** <https://forum.dynamobim.com/t/auto-create-rename-levels/11178>\
**Category:** Revit\
**Created:** [April 20, 2017, 5:32pm UTC](https://forum.dynamobim.com/t/auto-create-rename-levels/11178 "2017-04-20T17:32:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tsunami](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tsunami](https://forum.dynamobim.com/u/Tsunami)\
**Post date:** [April 20, 2017, 5:32pm UTC](https://forum.dynamobim.com/t/auto-create-rename-levels/11178/1 "2017-04-20T17:32:44Z")

</div>

Hi there,

New to the forum and dynamo in general so forgive me if this is an easy fix, but after searching the forums I have not been able to find a way to renumber/rename levels in revit.

I’ve created a conceptual massing script that generates a form and creates floors/levels automatically. However, the goal is to be able to continuously modify the floors/shape etc. I’ve noticed that after the first iteration, adding/removing floors makes the level names begin with the old top level.

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

Is there a way to renumber the levels after they have been created? (see red box above)

Thanks

---

<div class="post-metadata">

**Author:** ![Scott\_Crichton](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/scott_crichton/32/8876_2.png) [@Scott\_Crichton](https://forum.dynamobim.com/u/Scott_Crichton)\
**Post date:** [April 21, 2017, 5:53am UTC](https://forum.dynamobim.com/t/auto-create-rename-levels/11178/2 "2017-04-21T05:53:31Z")

</div>

Once the Levels have been created it should just be a matter of adjusting their name parameter.

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

---

<div class="post-metadata">

**Author:** ![Tsunami](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tsunami](https://forum.dynamobim.com/u/Tsunami)\
**Post date:** [April 24, 2017, 5:21pm UTC](https://forum.dynamobim.com/t/auto-create-rename-levels/11178/3 "2017-04-24T17:21:22Z")

</div>

Thanks for the reply!

adding this into the script allowed me to rename the levels, but since I have dynamo set to run automatically it got stuck in a renaming loop.

I was able to find an alternative solution using BIMLink to renumber the levels

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [April 27, 2017, 9:37am UTC](https://forum.dynamobim.com/t/auto-create-rename-levels/11178/4 "2017-04-27T09:37:52Z")

</div>

Here’s something that might work for you

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/7715f9cc393f8d6058734bc023db7b7e8dba04c1.png)

---

<div class="post-metadata">

**Author:** ![sharmanaveenajmer](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@sharmanaveenajmer](https://forum.dynamobim.com/u/sharmanaveenajmer)\
**Post date:** [December 21, 2017, 4:48am UTC](https://forum.dynamobim.com/t/auto-create-rename-levels/11178/5 "2017-12-21T04:48:19Z")

</div>

@Scott_Crichton Could you tell me, which package has required for Categories block?

---

<div class="post-metadata">

**Author:** ![MartinSpence](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinspence/32/25208_2.png) [@MartinSpence](https://forum.dynamobim.com/u/MartinSpence)\
**Post date:** [December 21, 2017, 8:09am UTC](https://forum.dynamobim.com/t/auto-create-rename-levels/11178/6 "2017-12-21T08:09:01Z")

</div>

Hi @sharmanaveenajmer,

The Categories node is a built in node. Give the seach function another go - it should be there somewhere 🙂
