# Rename ElevationViews from 'Room Elevation By Curve' node

**URL:** <https://forum.dynamobim.com/t/rename-elevationviews-from-room-elevation-by-curve-node/62097>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [March 25, 2021, 8:15am UTC](https://forum.dynamobim.com/t/rename-elevationviews-from-room-elevation-by-curve-node/62097 "2021-03-25T08:15:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/claus/32/37199_2.png) [@Claus](https://forum.dynamobim.com/u/Claus)\
**Post date:** [March 25, 2021, 8:15am UTC](https://forum.dynamobim.com/t/rename-elevationviews-from-room-elevation-by-curve-node/62097/1 "2021-03-25T08:15:21Z")

</div>

I followed this tutorial to Elevation Views from Rooms:

> **[Module 11 Room Elevation by Curve | Learn Dynamo](http://learndynamo.com/mod11/)**
>
> In this module, learn how to leverage Dynamo and Python to automate the creation of internal room elevations Autodesk Revit with a simple script.

I did some minor modifcations such a searching for Rooms with a specific name,  
My aim is to rename the Elevation Views according to the Room number and name they are in.

This works for one Room I have located on one Floor Plan:  
 ![badkamer](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/1/5101c46226d5bde21442fa863ba9ff2a3e052e87.png)

In the project browser:  
 ![project_browser](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c51f4503b5d7568b53de72c60c63fc07a3f204b.png)

It makes all the Elevation Views. However, my script fails to rename the Elevation Views correctly if I place multiple rooms. When I place a Room on a different Level I also get an error.

The Node View.ElevationByCurve seems to create names for the ElevationViews.  
My attempt at renaming multiple Elevation viewsfails.

 ![two rooms](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/c/fc7e14ca982d935f0aaa9fd3848a68877dc748d6.png)

![two rooms elevations](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2be2a8807c12b492ac1b865d5311c4643b54466b.png)

Here I can select the list item to rename a specific ElevationViews by Room, I tried flattening the list. But then it does not rename the ElevationViews anymore.

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

How can I rename all the ElevationViews with the corresponding Room Name and Room Number?

The Dynamo script:  
[maak\_aanzichten\_van\_rooms\_v2.dyn](https://forum.dynamobim.com/uploads/short-url/4FZFCxfrTsfvKW6rZA1sE9doBl0.dyn) (100.2 KB)

---

<div class="post-metadata">

**Author:** ![egdivad](https://avatars.discourse-cdn.com/v4/letter/e/8edcca/32.png) [@egdivad](https://forum.dynamobim.com/u/egdivad)\
**Post date:** [April 24, 2024, 6:00am UTC](https://forum.dynamobim.com/t/rename-elevationviews-from-room-elevation-by-curve-node/62097/2 "2024-04-24T06:00:34Z")

</div>

I’m getting a similar issue; the generated views get a set of “default” names from the Juggernaut node.

I can rename the views by `SetParameterByName("View Name", view_name)`, but after I name the views, I can’t re-run the script without it telling me that I have duplicated view names (say, if I don’t like the elevation view placement distance from the wall and I changed the offset and re-run the script, it won’t let me), I know the reason for that so I tried to set the views with a temporary name first (see code block below), and rename them back to the actual names I wanted, but that still doesn’t work.

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

@Claus, have you managed to work out a solution? Would be nicer if Juggernaught had a view name input.
