<?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: How to get schedulable field values using C#? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8135716#M48697</link>
    <description>&lt;P&gt;You could make it faster like this:&lt;BR /&gt;&lt;BR /&gt;First just get the tablesection data&amp;nbsp;separately:&lt;/P&gt;&lt;PRE&gt;TableSectionData tableSectionData = viewSchedule.GetTableData().GetSectionData(SectionType.Body);&lt;/PRE&gt;&lt;P&gt;Get the size of the table:&lt;/P&gt;&lt;PRE&gt;int Rows = tableSectionData.NumberOfRows;
int Columns = tableSectionData.NumberOfColumns;&lt;/PRE&gt;&lt;P&gt;And if you have all these, you can use the new variables like this:&lt;/P&gt;&lt;PRE&gt; for (int i = 0; i &amp;lt; Rows; i++)&lt;BR /&gt; {&lt;BR /&gt;     for (int j = 0; j &amp;lt; Columns; j++)&lt;BR /&gt;     {&lt;BR /&gt;         data += tableSectionData.GetCellText(i, j) + ",";&lt;BR /&gt;     }&lt;BR /&gt;     // remove the trailing "," after the last cell and add a newline for the end of this row&lt;BR /&gt;     data = data.TrimEnd(',') + "\n";&lt;BR /&gt; }&lt;/PRE&gt;&lt;P&gt;I modified the for loop you linked, so it will be easier to use.&lt;/P&gt;&lt;P&gt;Make sure you use the tableSectionData in the for loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my test schedule it reduced the time from 4900ms to 13ms.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 15:31:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-17T15:31:37Z</dc:date>
    <item>
      <title>How to get schedulable field values using C#?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8135401#M48696</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Revit API and am working in C#. I would like to know how to get the schedulable field values using c#. I followed the below article but it seems taking long time to get the table data.&lt;/P&gt;&lt;P&gt;&lt;A href="https://boostyourbim.wordpress.com/2013/03/27/getcelltext-contents-of-schedule-cells-in-2014/" target="_blank"&gt;https://boostyourbim.wordpress.com/2013/03/27/getcelltext-contents-of-schedule-cells-in-2014/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share the alternate details of how to get the value of schedulable fields using C#? These schedulable fields are shared parameter. One field type is instance and other one is Count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 14:10:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8135401#M48696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T14:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get schedulable field values using C#?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8135716#M48697</link>
      <description>&lt;P&gt;You could make it faster like this:&lt;BR /&gt;&lt;BR /&gt;First just get the tablesection data&amp;nbsp;separately:&lt;/P&gt;&lt;PRE&gt;TableSectionData tableSectionData = viewSchedule.GetTableData().GetSectionData(SectionType.Body);&lt;/PRE&gt;&lt;P&gt;Get the size of the table:&lt;/P&gt;&lt;PRE&gt;int Rows = tableSectionData.NumberOfRows;
int Columns = tableSectionData.NumberOfColumns;&lt;/PRE&gt;&lt;P&gt;And if you have all these, you can use the new variables like this:&lt;/P&gt;&lt;PRE&gt; for (int i = 0; i &amp;lt; Rows; i++)&lt;BR /&gt; {&lt;BR /&gt;     for (int j = 0; j &amp;lt; Columns; j++)&lt;BR /&gt;     {&lt;BR /&gt;         data += tableSectionData.GetCellText(i, j) + ",";&lt;BR /&gt;     }&lt;BR /&gt;     // remove the trailing "," after the last cell and add a newline for the end of this row&lt;BR /&gt;     data = data.TrimEnd(',') + "\n";&lt;BR /&gt; }&lt;/PRE&gt;&lt;P&gt;I modified the for loop you linked, so it will be easier to use.&lt;/P&gt;&lt;P&gt;Make sure you use the tableSectionData in the for loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my test schedule it reduced the time from 4900ms to 13ms.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:31:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8135716#M48697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T15:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get schedulable field values using C#?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8136036#M48698</link>
      <description>&lt;P&gt;I just answered the same question on StackOverflow:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/51335990/how-to-get-schedule-element-data-in-revit-using-c-sharp" target="_blank"&gt;https://stackoverflow.com/questions/51335990/how-to-get-schedule-element-data-in-revit-using-c-sharp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can also use `ViewSchedule.Export` as demonstrated by The Building Coder discussing The Schedule API and Access to Schedule Data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/05/the-schedule-api-and-access-to-schedule-data.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2012/05/the-schedule-api-and-access-to-schedule-data.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 17:12:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8136036#M48698</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-07-17T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get schedulable field values using C#?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8136038#M48699</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I applied your code but it seems no luck and it is taking 10 seconds to get the data.&lt;/P&gt;&lt;P&gt;Is any other alternate solution?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 17:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8136038#M48699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T17:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get schedulable field values using C#?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8136086#M48700</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;It's also taking 10 to 15 seconds for exporting the data into txt file.&lt;/P&gt;&lt;P&gt;Could you please share any other solution? I used the below code to get the schedulable fields for the view. But I am unable to get the values of these fields. CONTROL_MARK is instance type and Count is Count type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var fields = viewSchedule.Definition.GetSchedulableFields()
                                .Where(f =&amp;gt; f.GetName(document) == "CONTROL_MARK" || f.GetName(document) == "Count")
                                .ToList();&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jul 2018 17:35:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-schedulable-field-values-using-c/m-p/8136086#M48700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T17:35:30Z</dc:date>
    </item>
  </channel>
</rss>

