Hi
I am trying to get to the ViewPort view titles on sheets.
How can I access them?
Gonçalo Feio
Hi:
You can use the following approach to get access to the name of a viewport on a view sheet. Before running this code, please select a specific viewport and then run the code in an external command.
<code_begin>
foreach
(Element ele incommandData.Application.ActiveUIDocument.Selection.Elements)
{
String name = ele.get_Parameter(BuiltInParameter.VIEW_NAME).AsString();
TaskDialog.Show("Name", name);
<code_end>
Hope this helps.
Saikat
Thanks Saikat,
But that was not what I wanted.
I want to access the view title element itself to move it around.
I can already move views, but I am trying to reposition just the viewtitle.
Any help on that?
Thanks
Hi:
Using the Revit LookUp tool (contained in the Revit SDK), i can see that the view titles can be filtered using Built-in Category called OST_ViewportLabel. And the element name is View Title. Can you try using this information and element filters to access the view titles on a given sheet. Let me know you have questions.
cheers
Saikat
Can't find what you're looking for? Ask the community or share your knowledge.