<?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 TableSectionData GetRowHeight not returning accurate height for rows in the body in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6529878#M63328</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I use the GetRowHeight() method of&amp;nbsp;TableSectionData it does not seem to return the correct height.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see I have a python method printing out the height of each row in each section. &amp;nbsp;If you look at "Section 1" the code shows that the row height is 1/72 (or 1/6") for each row in the section, but it is obvious that the header for Section 1, which starts with "Sheet Number", is much taller. &amp;nbsp;Also, a line 1/72 high is drawn in the row, and it does not match the height of the row on the sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this method giving me some other row height? &amp;nbsp;If so, what other height could be relevant for a schedule than the height on a sheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd really appreciate someone else telling my I'm not crazy... or that I am, and there's an easy solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image 5.png" style="width: 529px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/268009iB6A318C27CFDFE59/image-dimensions/529x267?v=v2" width="529" height="267" role="button" title="Image 5.png" alt="Image 5.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2016 21:18:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-29T21:18:12Z</dc:date>
    <item>
      <title>TableSectionData GetRowHeight not returning accurate height for rows in the body</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6529878#M63328</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I use the GetRowHeight() method of&amp;nbsp;TableSectionData it does not seem to return the correct height.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see I have a python method printing out the height of each row in each section. &amp;nbsp;If you look at "Section 1" the code shows that the row height is 1/72 (or 1/6") for each row in the section, but it is obvious that the header for Section 1, which starts with "Sheet Number", is much taller. &amp;nbsp;Also, a line 1/72 high is drawn in the row, and it does not match the height of the row on the sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this method giving me some other row height? &amp;nbsp;If so, what other height could be relevant for a schedule than the height on a sheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd really appreciate someone else telling my I'm not crazy... or that I am, and there's an easy solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image 5.png" style="width: 529px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/268009iB6A318C27CFDFE59/image-dimensions/529x267?v=v2" width="529" height="267" role="button" title="Image 5.png" alt="Image 5.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 21:18:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6529878#M63328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T21:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: TableSectionData GetRowHeight not returning accurate height for rows in the</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6943672#M63329</link>
      <description>&lt;P&gt;You are not crazy. As far as I am aware that value only represents individual Row heights and doesn't account for additional formatting, header heights etc when schedule is placed on a sheet. Here's a reference:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/06/refresh-element-graphics-display.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2014/06/refresh-element-graphics-display.html#3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, to piggy back on this question I would hope for Jeremy to perhaps help me solve this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;// place schedule on sheet
var ssi = ScheduleSheetInstance.Create(doc, sheet.Id, schedule.Id, placementPoint);

// adjust placement point for next schedule
var bbox = ssi.get_BoundingBox(sheet);
var scheduleHeight = bbox.Max.Y - bbox.Min.Y;
var newPoint = new XYZ(placementPoint.X, placementPoint.Y - scheduleHeight - margin, 0);
placementPoint = newPoint;&lt;/PRE&gt;
&lt;P&gt;Now, for reasons not obvious to me, I keep getting wrong heights when I do that. I am almost certain this has to do with the fact that schedule needs to be refreshed. I tried inserting doc.Regenerate() after ScheduleSheetInstance.Create() call, but that doesn't change a thing. Is there a sure fire way to get the size of the BoundingBox after it was placed on a sheet?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 04:40:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6943672#M63329</guid>
      <dc:creator>sobon.konrad</dc:creator>
      <dc:date>2017-03-14T04:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: TableSectionData GetRowHeight not returning accurate height for rows in the</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6944033#M63330</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2113574"&gt;@sobon.konrad&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Just&amp;nbsp;enclose the placement in a transaction, commit it, then query the bounding box.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 08:59:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6944033#M63330</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-03-14T08:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: TableSectionData GetRowHeight not returning accurate height for rows in the</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6944418#M63331</link>
      <description>&lt;P&gt;Nevermind&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 12:38:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6944418#M63331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-14T12:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: TableSectionData GetRowHeight not returning accurate height for rows in the</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6944429#M63332</link>
      <description>&lt;P&gt;That idea of placing the table in a sheet and querying its height did end up being the answer. To find out the height of each individual row we programmatically changed the schedule to add one row at a time, “measuring” the height after each row was added. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By recording the difference in the height after each row was added we could know the &amp;nbsp;real height of the row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great tip!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 12:37:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6944429#M63332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-14T12:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: TableSectionData GetRowHeight not returning accurate height for rows in the</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6944597#M63333</link>
      <description>&lt;P&gt;Matt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I should try that. I already tried doc.Regenerate() and putting it inside a SubTransaction / committing, but that did nothing to make it report the actual height. I will split that out maybe into another transaction and see if it works.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Cheers! Thanks for the tip.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 13:40:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/6944597#M63333</guid>
      <dc:creator>sobon.konrad</dc:creator>
      <dc:date>2017-03-14T13:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: TableSectionData GetRowHeight not returning accurate height for rows in the body</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/13075465#M63334</link>
      <description>&lt;P&gt;Hi is there an improvement on getting the real hight in pixels for the schedule rows yet? I am using Revit 2021 to 2023 and 2025 currently I am using the View Schedule, do i need to use the SchedulesheetInstance? I do not want to alter anything about the Schedule just gets its close to accurate as in within a pixel or two of the row height.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Process Body returns the same height in pixels&amp;nbsp;&lt;/P&gt;&lt;P&gt;TableData tableData = viewSchedule.GetTableData();&lt;BR /&gt;TableSectionData sectionDataHeader = tableData.GetSectionData(SectionType.Header);&lt;BR /&gt;TableSectionData sectionDataBody = tableData.GetSectionData(SectionType.Body);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for (int row = 0; row &amp;lt; sectionDataBody.NumberOfRows; row++)&lt;BR /&gt;{&lt;BR /&gt;double bodyHeight = sectionDataBody.GetRowHeightInPixels(row);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 02:58:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/13075465#M63334</guid>
      <dc:creator>FrankHolidaytoiling</dc:creator>
      <dc:date>2024-10-10T02:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: TableSectionData GetRowHeight not returning accurate height for rows in the body</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/13075501#M63335</link>
      <description>&lt;P&gt;So If I use the ScheduleSheetInstance boundary, i need the start height or y axis points of the corners of the schedule on the sheets headers, not the header that is the Title confusingly. The text appearance overrides the body top rows. how can i differentiate these?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 03:37:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/13075501#M63335</guid>
      <dc:creator>FrankHolidaytoiling</dc:creator>
      <dc:date>2024-10-10T03:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: TableSectionData GetRowHeight not returning accurate height for rows in the body</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/13075503#M63336</link>
      <description>&lt;P&gt;If i can maybe get their text appearance ovverides then i can make some awful but necessary approximation to the row heights for some changes the users makes before placing the viewScheduile on a sheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 03:39:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/tablesectiondata-getrowheight-not-returning-accurate-height-for/m-p/13075503#M63336</guid>
      <dc:creator>FrankHolidaytoiling</dc:creator>
      <dc:date>2024-10-10T03:39:29Z</dc:date>
    </item>
  </channel>
</rss>

