<?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: ViewSchedule cell style override (border) - help needed in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5495188#M74544</link>
    <description>&lt;P&gt;Can you please provide a sample code of the solution that you are suggesting? I believe I did try that already and the result was still the same, but just to make sure code would be appreciated. Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Feb 2015 19:04:52 GMT</pubDate>
    <dc:creator>sobon.konrad</dc:creator>
    <dc:date>2015-02-04T19:04:52Z</dc:date>
    <item>
      <title>ViewSchedule cell style override (border) - help needed</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5457088#M74542</link>
      <description>&lt;P&gt;I have been trying to override the Header section of the schedule with some border styles. I can easily change text properties (underline, italics, bold, text size etc) but cant seem to be able to change the border display/lineweight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I am doing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;gStyles = FilteredElementCollector(doc).OfClass(GraphicsStyle).ToElements()

for i in gStyles:
	if i.GraphicsStyleCategory.Name == "veryFatLineStyle":
		lineStyle = i

hsd = tableData.GetSectionData(SectionType.Header)
hsd.SetCellText(hsd.FirstRowNumber, hsd.FirstColumnNumber, "XYZ Schedule")
if hsd.AllowOverrideCellStyle(hsd.FirstRowNumber, hsd.FirstColumnNumber):

	options = TableCellStyleOverrideOptions()

	options.BorderLineStyle = True
	options.BorderBottomLineStyle = True
	options.BorderLeftLineStyle = True
	options.BorderRightLineStyle = True
	options.BorderTopLineStyle = True
	
	tcs = TableCellStyle()
	tcs.SetCellStyleOverrideOptions(options)

	tcs.BorderBottomLineStyle = lineStyle.Id
	tcs.BorderLeftLineStyle = lineStyle.Id
	tcs.BorderRightLineStyle = lineStyle.Id
	tcs.BorderTopLineStyle = lineStyle.Id

	hsd.SetCellStyle(hsd.FirstRowNumber, hsd.FirstColumnNumber, tcs)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Can anyone tell me if I am making any mistakes? I am only confused by the BorderLineStyle method present in the TableCellStyleOverrideOptions while its not available in the TableCellStyle class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2015 16:57:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5457088#M74542</guid>
      <dc:creator>sobon.konrad</dc:creator>
      <dc:date>2015-01-02T16:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: ViewSchedule cell style override (border) - help needed</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5495176#M74543</link>
      <description>&lt;P&gt;Hi Konrad.Sobon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks to me that BorderLineStyle indicates if any of the 4 borders are overridden.&amp;nbsp; And setting this flag sets all 4 border styles to be overridden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe try setting only BorderLineStyle and then modify the 4 lines that this property will make them avalible to be overridden.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know how it goes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:57:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5495176#M74543</guid>
      <dc:creator>rosalesduquej</dc:creator>
      <dc:date>2015-02-04T18:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: ViewSchedule cell style override (border) - help needed</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5495188#M74544</link>
      <description>&lt;P&gt;Can you please provide a sample code of the solution that you are suggesting? I believe I did try that already and the result was still the same, but just to make sure code would be appreciated. Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 19:04:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5495188#M74544</guid>
      <dc:creator>sobon.konrad</dc:creator>
      <dc:date>2015-02-04T19:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: ViewSchedule cell style override (border) - help needed</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5569607#M74545</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am experiencing the same issue. Did you find a solution?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 02:46:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5569607#M74545</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2015-04-03T02:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: ViewSchedule cell style override (border) - help needed</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5569987#M74546</link>
      <description>&lt;P&gt;I am sorry but i didn't and judging by the responses from Autodesk folks they dont know either.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 13:13:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5569987#M74546</guid>
      <dc:creator>sobon.konrad</dc:creator>
      <dc:date>2015-04-03T13:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: ViewSchedule cell style override (border) - help needed</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5570634#M74547</link>
      <description>&lt;P&gt;Hi, I know it is possible as I have seen other API's doing what we are trying...&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 22:46:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5570634#M74547</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2015-04-03T22:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: ViewSchedule cell style override (border) - help needed</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5647955#M74548</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have resolved this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;instead of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tcs.BorderBottomLineStyle = styleLines.Id;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use the GraphicsStyleCategory Id:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tcs.BorderBottomLineStyle = styleLines.GraphicsStyleCategory.Id;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2015 06:31:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewschedule-cell-style-override-border-help-needed/m-p/5647955#M74548</guid>
      <dc:creator>chris.j.mckeown</dc:creator>
      <dc:date>2015-05-22T06:31:44Z</dc:date>
    </item>
  </channel>
</rss>

