How do I set the "Title on Sheet" parameter of a view? It's not a BuiltInParameter like I expected.
This post no longer works either. Thanks for your help.
Solved! Go to Solution.
Solved by joshua.lumley. Go to Solution.
Hi,
You could try to use the LookupParameter Method to get the "Title on Sheet" parameter of a view.
Something like this
view.LookupParameter("Title on Sheet")
Easy, title on sheet is in fact the VIEW_DESCRIPTION BIP.
uidoc.ActiveView.get_Parameter(BuiltInParameter.VIEW_DESCRIPTION).Set("Hello World");
Well It all depends what you want to set as "Title on Sheet" value.
So if you want to set the view name you can do something like this
view.LookupParameter("Title on Sheet").Set(view.Name);
You can use String methods like Substring or Replace to change your view name.
https://docs.microsoft.com/en-us/dotnet/api/system.string.substring?view=netcore-3.1
Can't find what you're looking for? Ask the community or share your knowledge.