<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing the Font of schedule headers with SetCellStyle in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/changing-the-font-of-schedule-headers-with-setcellstyle/m-p/8685659#M43546</link>
    <description>&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;This is now solved.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 21:11:49 GMT</pubDate>
    <dc:creator>Rockit_for_Revit</dc:creator>
    <dc:date>2019-03-26T21:11:49Z</dc:date>
    <item>
      <title>Changing the Font of schedule headers with SetCellStyle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/changing-the-font-of-schedule-headers-with-setcellstyle/m-p/8676218#M43544</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have project with hundreds of schedules created with the rows in the headers.&lt;/P&gt;
&lt;P&gt;I would like to use the following code to change the font of each of the cells in the headers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;For intHeaderRow As Integer = 0 To intScheduleRowColumnCountHeaderRows
                                For intHeaderColumn As Integer = 0 To intScheduleRowColumnCountHeaderColumns
                                    Dim objTableCellStyle As TableCellStyle = objTableSectionData.GetTableCellStyle(intHeaderRow, intHeaderColumn)
                                    If Not objTableCellStyle.FontName.Equals(strNewFontName) Then
                                        If objTableSectionData.AllowOverrideCellStyle(intHeaderRow, intHeaderColumn) Then
                                            'Dim tcs As TableCellStyle = New TableCellStyle()
                                            Dim options As TableCellStyleOverrideOptions = New TableCellStyleOverrideOptions With {
                                                .FontSize = False
                                            }
                                            objTableCellStyle.FontName = strNewFontName
                                            objTableCellStyle.SetCellStyleOverrideOptions(options)
                                            objTableSectionData.SetCellStyle(intHeaderRow, intHeaderColumn, objTableCellStyle)
                                        End If
                                    End If
                                Next
                            Next&lt;/PRE&gt;
&lt;P&gt;This code works well &amp;amp; changes the font, however it does not preserve the size or the boldness of the cell.&lt;/P&gt;
&lt;P&gt;The size gets changed to the same as what is set in the schedule appearance header text.&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 04:52:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/changing-the-font-of-schedule-headers-with-setcellstyle/m-p/8676218#M43544</guid>
      <dc:creator>Rockit_for_Revit</dc:creator>
      <dc:date>2019-03-22T04:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the Font of schedule headers with SetCellStyle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/changing-the-font-of-schedule-headers-with-setcellstyle/m-p/8683535#M43545</link>
      <description>&lt;P&gt;Dear David,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide a reproducible case for it? I didn't find problematic code in your sample code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In order to explore this matter further, we will need to provide a minimal reproducible case for the development team to analyse in depth.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In order to understand exactly what you mean and be able to research possible reasons for the discrepancy between the observed and expected behaviour, they require: &lt;BR /&gt;· A short exact description of what you are trying to achieve.&lt;BR /&gt;· The behavior you observe versus what you expect, and why this is a problem.&lt;BR /&gt;· A complete yet minimal Revit sample model to run a test in.&lt;BR /&gt;· A complete yet minimal macro embedded in the sample model or Visual Studio solution with add-in manifest that can be compiled, loaded, run and debugged with a single click to analyse its behavior live in the sample model.&lt;BR /&gt;· Detailed step-by-step instructions for reproducing the issue, e.g. which element to pick, what command to launch etc.&lt;BR /&gt;· &lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 08:12:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/changing-the-font-of-schedule-headers-with-setcellstyle/m-p/8683535#M43545</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2019-03-26T08:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the Font of schedule headers with SetCellStyle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/changing-the-font-of-schedule-headers-with-setcellstyle/m-p/8685659#M43546</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;This is now solved.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 21:11:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/changing-the-font-of-schedule-headers-with-setcellstyle/m-p/8685659#M43546</guid>
      <dc:creator>Rockit_for_Revit</dc:creator>
      <dc:date>2019-03-26T21:11:49Z</dc:date>
    </item>
  </channel>
</rss>

