<?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 Find location of section heads on sheet in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7609036#M54088</link>
    <description>&lt;P&gt;I'm trying to get the location of section heads on a sheet viewport. However, I'm finding it difficult to even find the section head elements themselves using a FilteredElementCollector. I've resorted to running a FilteredElementCollector to collect all elements from the view, and then grouping them by category. In the results, I don't see ANY reference to section heads.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my C# code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var counts = new Dictionary&amp;lt;String, int&amp;gt;();
var collector = new FilteredElementCollector(document, view.Id)
foreach (var element in collector) 
{
    if (element.Category == null)
    {
        continue;
    }
    if (!counts.ContainsKey(element.Category.Name))
    {
        counts[element.Category.Name] = 0;
    }
    counts[element.Category.Name] += 1;
}&lt;/PRE&gt;&lt;P&gt;The collector is able to find a View element corresponding to the Section that's referenced from this view, but I can't figure out how to use that to find the location of the section head.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm relatively new to the Revit API, but I've put in a few hours of research on this topic and can't figure out where to even start. From reading through documentation on categories, I should be looking for elements of type BuiltInCategory.OST_SectionHeads (and if I'm not, then what on earth is this category for?!), but again I see no hint of elements of this type on this view. No elements of this category appear when running RevitLookup's "Snoop DB" command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, I'd like to repeat this process for elevation and callout markers. If that process is significantly different, any info on it would be appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 17:38:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-08T17:38:49Z</dc:date>
    <item>
      <title>Find location of section heads on sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7609036#M54088</link>
      <description>&lt;P&gt;I'm trying to get the location of section heads on a sheet viewport. However, I'm finding it difficult to even find the section head elements themselves using a FilteredElementCollector. I've resorted to running a FilteredElementCollector to collect all elements from the view, and then grouping them by category. In the results, I don't see ANY reference to section heads.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my C# code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var counts = new Dictionary&amp;lt;String, int&amp;gt;();
var collector = new FilteredElementCollector(document, view.Id)
foreach (var element in collector) 
{
    if (element.Category == null)
    {
        continue;
    }
    if (!counts.ContainsKey(element.Category.Name))
    {
        counts[element.Category.Name] = 0;
    }
    counts[element.Category.Name] += 1;
}&lt;/PRE&gt;&lt;P&gt;The collector is able to find a View element corresponding to the Section that's referenced from this view, but I can't figure out how to use that to find the location of the section head.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm relatively new to the Revit API, but I've put in a few hours of research on this topic and can't figure out where to even start. From reading through documentation on categories, I should be looking for elements of type BuiltInCategory.OST_SectionHeads (and if I'm not, then what on earth is this category for?!), but again I see no hint of elements of this type on this view. No elements of this category appear when running RevitLookup's "Snoop DB" command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, I'd like to repeat this process for elevation and callout markers. If that process is significantly different, any info on it would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 17:38:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7609036#M54088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-08T17:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find location of section heads on sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7611456#M54089</link>
      <description>&lt;P&gt;I think you can't do this through the API, but let me know why do you need the location of the marks, may be we can find out another solution!!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 12:47:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7611456#M54089</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2017-12-10T12:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find location of section heads on sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7611633#M54090</link>
      <description>&lt;P&gt;There's not really another option. I would like to export this data out of Revit.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 15:21:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7611633#M54090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-10T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find location of section heads on sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7611814#M54091</link>
      <description>&lt;P&gt;You can export the end points of the section line. Is this working for you?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 18:05:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7611814#M54091</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2017-12-10T18:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find location of section heads on sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7612124#M54092</link>
      <description>&lt;P&gt;How do I do this? Which category is the section line under?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 22:55:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7612124#M54092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-10T22:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find location of section heads on sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7612553#M54093</link>
      <description>&lt;P&gt;Does this help? &lt;A title="Obtain Section Marker Endpoint" href="http://thebuildingcoder.typepad.com/blog/2017/03/ttt-to-obtain-section-marker-endpoint.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/03/ttt-to-obtain-section-marker-endpoint.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 05:45:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7612553#M54093</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2017-12-11T05:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Find location of section heads on sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7624775#M54094</link>
      <description>&lt;P&gt;Thanks Dale! That is helpful, and gives me a hint as to how I might go about hacking my way towards a solution. But I'm still quite a ways off from being able to find the bounding box for the section heads, even with this neat hack. I suppose at this point the answer is "No, there's no good way to get bounding boxes for section heads".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any other hacks or advice, it would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 18:39:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-location-of-section-heads-on-sheet/m-p/7624775#M54094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T18:39:17Z</dc:date>
    </item>
  </channel>
</rss>

