# Change Viewport types in sheet when placing views in sheets

**URL:** <https://forum.dynamobim.com/t/change-viewport-types-in-sheet-when-placing-views-in-sheets/91129>\
**Category:** Revit\
**Created:** [June 25, 2023, 5:14pm UTC](https://forum.dynamobim.com/t/change-viewport-types-in-sheet-when-placing-views-in-sheets/91129 "2023-06-25T17:14:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjca37958](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@sjca37958](https://forum.dynamobim.com/u/sjca37958)\
**Post date:** [June 25, 2023, 5:14pm UTC](https://forum.dynamobim.com/t/change-viewport-types-in-sheet-when-placing-views-in-sheets/91129/1 "2023-06-25T17:14:36Z")

</div>

Hi, i am creating a graph that places the correct views into the sheets within revit. the end of the graph is suppose to change all viewports to the type “No Title” But isn’t working.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/c/4cad5e2ec83f7d495455814724a53a0975b13b7d.jpeg)

as you can see I have an error in the Element.SetParameterByName saying

“Warning: Element.SetParameterByName operation failed.  
The parameter’s storage type is not an Element.”

Any Idea on how to fix it?

Many thanks!

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 25, 2023, 7:14pm UTC](https://forum.dynamobim.com/t/change-viewport-types-in-sheet-when-placing-views-in-sheets/91129/3 "2023-06-25T19:14:27Z")

</div>

Try adding a Transaction.End and a Transaction.Start node between the viewport creation and the Element.SetParameterValueByName.

---

<div class="post-metadata">

**Author:** ![gerhard.p](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gerhard.p/32/147675_2.png) [@gerhard.p](https://forum.dynamobim.com/u/gerhard.p)\
**Post date:** [June 25, 2023, 9:14pm UTC](https://forum.dynamobim.com/t/change-viewport-types-in-sheet-when-placing-views-in-sheets/91129/4 "2023-06-25T21:14:32Z")

</div>

Hello @sjca37958,

you are trying to set the “Type Name” and not the “Type” 🙂
