Is it possible to access the Viewport Title?


#1

I would like to be able to select and manipulate the title associated with a viewport, but I can’t figure out a way to select it. I can grab the viewport, but if I try and grab the family and type of the title, I don’t get any elements.

2015-09-01_1021

 


#2

If you get the element type of the viewports you should be able to get it. If you want to set it, it will be more involved.

2015-09-01_09h20_42


#3

Actually never mind, it isn’t too hard. It just needs a family type that is a view title. I think my null values are for a viewport that currently has “none” for the view title. I’m also showing how to collect the placed viewports.

2015-09-01_09h23_12


#4

Thanks John!

2015-09-01_1347I was getting All Elements of Category and plugging in to Element.GetParameterValueByName. Seeing you go from Elements to

 

 

 

 

 

Element.Type then Element.GetParameterValueByName solved my issue. Any idea as to what the difference is?

 

2015-09-01_1349


#5

It’s a type parameter so we need to give it viewport types. At first you were giving it instances.


#6

Is there any way to set the Location of the Viewport Title?