Change View's Title

Change View's Title

Anonymous
Not applicable
440 Views
4 Replies
Message 1 of 5

Change View's Title

Anonymous
Not applicable

Hi! Is there a way to change the value of the title of View? I know the View class has Title property, but its read-only. 

0 Likes
441 Views
4 Replies
Replies (4)
Message 2 of 5

peteregan
Contributor
Contributor

I've never used 'Title'. You might be looking for the UI View Property 'Title on Sheet' which uses the Built-In-Parameter 'BuiltInParameter.VIEW_DESCRIPTION'.

 

Used like:

 

string s = view.get_Parameter(BuiltInParameter.VIEW_DESCRIPTION).AsString();

or

view.get_Parameter(BuiltInParameter.VIEW_DESCRIPTION).Set("This view");

0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks for the answer. I am about the value that is displayed in the Project Browser, for example "A01 - SheetName".
0 Likes
Message 4 of 5

architect.bim
Collaborator
Collaborator

It seems that you are talking about sheet name rather than view name. Sheet name that you see in Project Browser consists of sheet number (BuiltInParameter.SHEET_NUMBER) and sheet name (BuiltInParameter.SHEET_NAME).


Maxim Stepannikov | Architect, BIM Manager, Instructor
0 Likes
Message 5 of 5

RPTHOMAS108
Mentor
Mentor

It is also interesting to note that SHEET_NAME can be duplicated whilst SHEET_NUMBER and VIEW_NAME can't

 

I believe also that when you set Element.Name for a sheet it will not allow you to duplicate even though you are setting the underlying SHEET_NAME (which can be duplicated). For non-sheets this is setting VIEW_NAME and I believe that is why i.e. low level validation logic missing the high level characteristics.

0 Likes