# Script working in dynamo but not applying modification in Revit

**URL:** <https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757>\
**Category:** Dynamo Player\
**Created:** [September 14, 2023, 7:50am UTC](https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757 "2023-09-14T07:50:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![work4cad](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@work4cad](https://forum.dynamobim.com/u/work4cad)\
**Post date:** [September 14, 2023, 7:50am UTC](https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757/1 "2023-09-14T07:50:14Z")

</div>

Hello all,  
I’m new to Dynamo and I trying to create a basic script to automatize the renaming of multiple floorplan views.  
As mentionned in the topic, a step is missing so it applies within Revit 😐  
Could you guide me toward the solution please ? 🙂

 ![QuickRenaming_2023-09-14_09-42-56](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/6/c636c646d29814325304f7836abc08ee900f6e04.png)

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [September 14, 2023, 8:53am UTC](https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757/2 "2023-09-14T08:53:19Z")

</div>

Your looking for a setparametervalue node to rename the view name 🙂

---

<div class="post-metadata">

**Author:** ![robert12546358](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robert12546358](https://forum.dynamobim.com/u/robert12546358)\
**Post date:** [September 14, 2023, 8:55am UTC](https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757/3 "2023-09-14T08:55:20Z")

</div>

Use **Element.SetParameterByName** then it’s work.

---

<div class="post-metadata">

**Author:** ![work4cad](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@work4cad](https://forum.dynamobim.com/u/work4cad)\
**Post date:** [September 14, 2023, 11:35am UTC](https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757/4 "2023-09-14T11:35:00Z")

</div>

Thanks for your answers @pyXam and @robert12546358 🙂  
I thought about it… but I couldn’t figure out where to plug in and out 🫣

---

<div class="post-metadata">

**Author:** ![LilliSmith](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@LilliSmith](https://forum.dynamobim.com/u/LilliSmith)\
**Post date:** [September 14, 2023, 1:35pm UTC](https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757/5 "2023-09-14T13:35:21Z")

</div>

Welcome work4cad! Our Dynamo Player sample that Updates Sheet Names to Upper Case might help. You can edit this in Dynamo directly from the Player interface. This renames sheet names but you could easily adapt it to Select Views and rename the “View Name” parameter with Element.SetParameterByName.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/6/86c5ebe047f8404621c4ac4ced7a4ee615127507.png)

---

<div class="post-metadata">

**Author:** ![work4cad](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@work4cad](https://forum.dynamobim.com/u/work4cad)\
**Post date:** [September 14, 2023, 3:33pm UTC](https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757/6 "2023-09-14T15:33:26Z")

</div>

That’s sounds perfect @LilliSmith !  
I’ll have a look on this on next monday and let you know  
Thanks 😃

---

<div class="post-metadata">

**Author:** ![work4cad](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@work4cad](https://forum.dynamobim.com/u/work4cad)\
**Post date:** [September 18, 2023, 7:23am UTC](https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757/7 "2023-09-18T07:23:47Z")

</div>

Hey @LilliSmith  
I follow you advice with success 😃

 ![QuickViewRenaming](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/9/49028c48c4303ef37fd8a4c115073d3dd7d1b6a7.png)  
This script generates warnings though since there’s no view filtering I guess. I’ll try to merge both scripts to get a proper execution.  
Thank you !

---

<div class="post-metadata">

**Author:** ![peter1343](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@peter1343](https://forum.dynamobim.com/u/peter1343)\
**Post date:** [September 18, 2023, 12:33pm UTC](https://forum.dynamobim.com/t/script-working-in-dynamo-but-not-applying-modification-in-revit/93757/8 "2023-09-18T12:33:32Z")

</div>

In Dynamo scripts just FYI for future reference you would have to apply your changes back to the element with the appropriate nodes… it won’t happen automatically.
