<?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: Extracting co-ordinates from geometry of room or any other structure in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/extracting-co-ordinates-from-geometry-of-room-or-any-other/m-p/5573407#M73138</link>
    <description>&lt;P&gt;Your approach sounds fine to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Duplicate corrdinates are to be expected, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can eliminate them in many ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest, I find, is to implement a fuzzy point equality comparer and then add the points as keys to a dictionary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I do that in my concrete setout point add-in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/11/concrete-setout-points-for-revit-structure-2015.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2014/11/concrete-setout-points-for-revit-structure-2015.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also demonstrate this approach in many other samples on The Building Coder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search for XyzEqualityComparer, for instance.&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;</description>
    <pubDate>Tue, 07 Apr 2015 09:30:36 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2015-04-07T09:30:36Z</dc:date>
    <item>
      <title>Extracting co-ordinates from geometry of room or any other structure</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/extracting-co-ordinates-from-geometry-of-room-or-any-other/m-p/5565050#M73137</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;DIV&gt;I am a newbie in using C# and Revit API programming for creating plugins.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am trying to retrieve co-ordinates of any structure. Let's say, for a room with four walls, I need to retrieve the co-ordinates of the four corners and write them to a text file.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have used a wall filter to extract the elements and then applied get_Geometry() method on each element.&lt;/DIV&gt;&lt;DIV&gt;This approach gives me a lot of duplicate co-ordinates.&lt;/DIV&gt;&lt;DIV&gt;I have tried the same way for using different filters for roofs, floors, doors and windows.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I don't know for sure whether I am correct or not.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please let me know if this a correct way of extracting the co-ordinates of any structure.&lt;/DIV&gt;&lt;DIV&gt;If there is a better and more correct method to do it, please let me know.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:47:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/extracting-co-ordinates-from-geometry-of-room-or-any-other/m-p/5565050#M73137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-31T13:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting co-ordinates from geometry of room or any other structure</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/extracting-co-ordinates-from-geometry-of-room-or-any-other/m-p/5573407#M73138</link>
      <description>&lt;P&gt;Your approach sounds fine to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Duplicate corrdinates are to be expected, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can eliminate them in many ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest, I find, is to implement a fuzzy point equality comparer and then add the points as keys to a dictionary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I do that in my concrete setout point add-in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/11/concrete-setout-points-for-revit-structure-2015.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2014/11/concrete-setout-points-for-revit-structure-2015.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also demonstrate this approach in many other samples on The Building Coder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search for XyzEqualityComparer, for instance.&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;</description>
      <pubDate>Tue, 07 Apr 2015 09:30:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/extracting-co-ordinates-from-geometry-of-room-or-any-other/m-p/5573407#M73138</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-04-07T09:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting co-ordinates from geometry of room or any other structure</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/extracting-co-ordinates-from-geometry-of-room-or-any-other/m-p/5576231#M73139</link>
      <description>&lt;P&gt;Thank you Jeremy.&lt;/P&gt;&lt;P&gt;I will look into the code for the removal of the duplicate points.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;Your approach sounds fine to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Duplicate corrdinates are to be expected, of course.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can eliminate them in many ways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easiest, I find, is to implement a fuzzy point equality comparer and then add the points as keys to a dictionary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I do that in my concrete setout point add-in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://thebuildingcoder.typepad.com/blog/2014/11/concrete-setout-points-for-revit-structure-2015.html"&gt;http://thebuildingcoder.typepad.com/blog/2014/11/concrete-setout-points-for-revit-structure-2015.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also demonstrate this approach in many other samples on The Building Coder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search for XyzEqualityComparer, for instance.&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;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 17:58:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/extracting-co-ordinates-from-geometry-of-room-or-any-other/m-p/5576231#M73139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T17:58:41Z</dc:date>
    </item>
  </channel>
</rss>

