Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting the "Title on Sheet" parameter of a view

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
J33C316
900 Views, 4 Replies

Setting the "Title on Sheet" parameter of a view

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.

 

https://forums.autodesk.com/t5/revit-api-forum/how-to-set-quot-title-on-sheet-quot-property-for-a-dr...

4 REPLIES 4
Message 2 of 5
so-chong
in reply to: J33C316

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")
Message 3 of 5
J33C316
in reply to: so-chong

Thanks but I’m trying to set it not get it. I know it’s blank currently. 

Message 4 of 5
joshua.lumley
in reply to: J33C316

Easy, title on sheet is in fact the VIEW_DESCRIPTION BIP.

 

 uidoc.ActiveView.get_Parameter(BuiltInParameter.VIEW_DESCRIPTION).Set("Hello World");

 

 

Message 5 of 5
so-chong
in reply to: J33C316

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.

Post to forums  

Autodesk Design & Make Report