<?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 Get floor location in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-floor-location/m-p/9847429#M30638</link>
    <description>&lt;P&gt;I'm trying to get the location point of a floor, so I found this code on a other topic :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LocationCurve lc = floor.Location as LocationCurve;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line l = lc.Curve as Line;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ locPts = l.GetEndPoint(0) as XYZ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;But i get a NullReferenceExcepetion on the second line and I Don't know how to solve it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;If someone has an idea.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 10:00:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-05T10:00:35Z</dc:date>
    <item>
      <title>Get floor location</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-floor-location/m-p/9847429#M30638</link>
      <description>&lt;P&gt;I'm trying to get the location point of a floor, so I found this code on a other topic :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LocationCurve lc = floor.Location as LocationCurve;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line l = lc.Curve as Line;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ locPts = l.GetEndPoint(0) as XYZ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;But i get a NullReferenceExcepetion on the second line and I Don't know how to solve it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;If someone has an idea.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 10:00:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-floor-location/m-p/9847429#M30638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-05T10:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get floor location</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-floor-location/m-p/9847605#M30639</link>
      <description>&lt;P&gt;Floor doesn't have a location object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can get the centroid from the solid of the geometry, max/min of bounding box or you can analyse the sketch boundary to determine the point you consider to be the floors location.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 11:17:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-floor-location/m-p/9847605#M30639</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-11-05T11:17:21Z</dc:date>
    </item>
  </channel>
</rss>

