OK so I've had a go at modifying the iLogic code written by @Curtis_Waguespack on the below forum as directed by @mcgyvr :
https://forums.autodesk.com/t5/inventor-customization/ilogic-code-to-change-view-label-text/m-p/3633...
First and foremost I don't have much experience with iLogic, but I have tinkered a bit with it before. The code attached does work, much to my surprise, and is nearly what I'm after.
The only property missing in my labels is <FILENAME>. It's a model property that can easily be added when editing a view label, but I can't find it in the "Inventor iProperty Name Table" (see attached), and therefore I can't refer to it in the iLogic code.
Would anyone have a solution to this?
Thanks again
Dim oSSet As SelectSet = ThisDoc.Document.SelectSet
If oSSet.Count = 0 Then
MessageBox.Show("You must select a drawing view first", "iLogic")
Exit Sub
End If
'Reference to the drawing view from the 1st selected object
Dim oView As DrawingView = TryCast(oSSet.Item(1), DrawingView)
If oView IsNot Nothing Then
oView.ShowLabel = True
'format the model iproperties
oTitle = "<StyleOverride Underline='False' FontSize='0.2'><Property Document='model' PropertySet='Inventor Summary Information' Property='Title' FormatID='{F29F85E0-4FF9-1068-AB91-08002B27B3D9}' PropertyID='2'>TITLE</Property></StyleOverride>"
oDescription = "<Br/><StyleOverride Underline='False' FontSize='0.2'><Property Document='model' PropertySet='Design Tracking Properties' Property='Description' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='29'>DESCRIPTION</Property></StyleOverride>"
oComments = "<Br/><StyleOverride Underline='False' FontSize='0.2'><Property Document='model' PropertySet='Inventor Summary Information' Property='Comments' FormatID='{F29F85E0-4FF9-1068-AB91-08002B27B3D9}' PropertyID='6'>COMMENTS</Property></StyleOverride>"
oPartNumber = "<Br/><StyleOverride Underline='False' FontSize='0.2'><Property Document='model' PropertySet='Design Tracking Properties' Property='Part Number' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'>PART NUMBER</Property></StyleOverride>"
'oStringMass = "<Br/><StyleOverride Underline='False' FontSize='0.35'>EST UNIT MASS = <PhysicalProperty PhysicalPropertyID='72449' Precision='2'>MASS</PhysicalProperty></StyleOverride>"
'oStringScale = "<Br/><StyleOverride FontSize='0.3'>(Scale <DrawingViewScale/>)</StyleOverride>"
'add to the view label
oView.Label.FormattedText = oTitle & oDescription & oComments & oPartNumber
Else
MessageBox.Show("The selected object is not a drawing view", "iLogic")
End If