AnsweredAssumed Answered

How do I change the font (family and size) of my BOM?

Question asked by Robert Voogt on Jun 9, 2018
Latest reply on Jun 11, 2018 by Robert Voogt
        Set swBom = swBomAnn.GetAnnotation
        For i = 0 To swBom.GetTextFormatCount - 1
            Set swTextFormat = swBom.GetTextFormat(i)
            swTextFormat.CharHeight = 0.008
            swTextFormat.Bold = False
            swTextFormat.Italic = False
            swTextFormat.TypeFaceName = "Calibri"
            boolstatus = swBomTable.SetTextFormat(i, False, swTextFormat)


Code runs without error, but it doesn't change the font. I assume I'm not assigning it correctly.


I also tried

boolstatus = swBomTable.SetColumnCustomProperty(i, swTextFormat)



I was also thinking of changing the Font of tables under document property before inserting my BOM by using:

boolstatus = swModel.Extension.SetUserPreferenceTextFormat(swUserPreferenceTextFormat_e.swDetailingTableTextFormat, swUserPreferenceOption_e.swDetailingNoOptionSpecified, <Value>)


But I have no idea what to enter under <value>.