Schedule Title Text Font Formatting

Schedule Title Text Font Formatting

marcus.s.s
Enthusiast Enthusiast
312 Views
2 Replies
Message 1 of 3

Schedule Title Text Font Formatting

marcus.s.s
Enthusiast
Enthusiast

I can't find a way to set a schedule title text to bold and underline via API. Is this possible?

0 Likes
Accepted solutions (1)
313 Views
2 Replies
Replies (2)
Message 2 of 3

Moustafa_K
Collaborator
Collaborator
Accepted solution

You need to get the viewscheduleTemplate, then set the HeaderTextTypeId, an already prepared / or created by code TextType

see this Example:

 

var sch = UiDoc.ActiveGraphicalView as ViewSchedule;
var schViewTemplate = Doc.GetElement( sch.ViewTemplateId) as ViewSchedule;
schViewTemplate.TitleTextTypeId = // the text type that has all the style you already prepared

 

 

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
Message 3 of 3

marcus.s.s
Enthusiast
Enthusiast

Thanks Moustafa you are a boss

0 Likes