Change Viewport types in sheet when placing views in sheets

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.

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!

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

Hello @sjca37958,

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

1 Like