<?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: Surface automatic generator in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/surface-automatic-generator/m-p/7281013#M56864</link>
    <description>&lt;P&gt;Dear Benoit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your interesting query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea how the built-in Revit room generator is implemented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I right in assuming that your problem is entirely embedded in a 2D plane, e.g., in the XY plane?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe it would help if you describe your exact needs in a more abstract fashion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it might very well map easily to existing computational geometry algorithms:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Computational_geometry" target="_blank"&gt;https://en.wikipedia.org/wiki/Computational_geometry&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you simplify your walls to be simple straight lines?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the desired surfaces to be polygons using these lines as their edges?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to make use of 2D Boolean operations and adjacent area analysis, which The Building Coder has already discussed in some depth:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.28" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.28&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2017 11:51:11 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2017-08-07T11:51:11Z</dc:date>
    <item>
      <title>Surface automatic generator</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/surface-automatic-generator/m-p/7270438#M56862</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have an issue that is close to the existing Revit tool that generates all the rooms automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is what I do :&lt;/P&gt;&lt;P&gt;- I use a given model with walls of any types and width&lt;/P&gt;&lt;P&gt;- I select the walls I am interested in&lt;/P&gt;&lt;P&gt;- I want the surfaces enclosed by these new walls.&lt;/P&gt;&lt;P&gt;They are different of the Rooms since I selected fewer walls than in the global model.&lt;/P&gt;&lt;P&gt;Ideally I would create a SpatialElement object for each surface and link it to the surrounding walls.&lt;/P&gt;&lt;P&gt;The question is : what is the best solution ?&lt;/P&gt;&lt;P&gt;Obviously when they designed the automatic room generator Revit programmers had this issue. Any idea how this was solved?&lt;/P&gt;&lt;P&gt;Thanks by advance&lt;/P&gt;&lt;P&gt;Benoit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 07:59:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/surface-automatic-generator/m-p/7270438#M56862</guid>
      <dc:creator>BenoitE&amp;A</dc:creator>
      <dc:date>2017-08-02T07:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Surface automatic generator</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/surface-automatic-generator/m-p/7270550#M56863</link>
      <description>&lt;P&gt;Here are a few comments that explain the paths I followed :&lt;/P&gt;&lt;P&gt;- either I try to create a plan circuit which encloses a surface, using for examples walls intersecting each other. But I don't figure out which object I should use once I have my circuit to get the given surface ;&lt;/P&gt;&lt;P&gt;- either I use methods like ReferenceIntersection to follow a given wall and turn around my walls. This sounds more reliable but I don't get how to follow walls going outward (which are not intersected by my ray using ReferenceIntersection).&lt;/P&gt;&lt;P&gt;So in fact there are 2 questions in 1.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 08:52:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/surface-automatic-generator/m-p/7270550#M56863</guid>
      <dc:creator>BenoitE&amp;A</dc:creator>
      <dc:date>2017-08-02T08:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Surface automatic generator</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/surface-automatic-generator/m-p/7281013#M56864</link>
      <description>&lt;P&gt;Dear Benoit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your interesting query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea how the built-in Revit room generator is implemented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I right in assuming that your problem is entirely embedded in a 2D plane, e.g., in the XY plane?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe it would help if you describe your exact needs in a more abstract fashion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it might very well map easily to existing computational geometry algorithms:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Computational_geometry" target="_blank"&gt;https://en.wikipedia.org/wiki/Computational_geometry&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you simplify your walls to be simple straight lines?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the desired surfaces to be polygons using these lines as their edges?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to make use of 2D Boolean operations and adjacent area analysis, which The Building Coder has already discussed in some depth:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.28" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.28&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 11:51:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/surface-automatic-generator/m-p/7281013#M56864</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-08-07T11:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Surface automatic generator</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/surface-automatic-generator/m-p/7354070#M56865</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;Thanks for the kind answer.&amp;nbsp;It does not help me much in this topic but anyway...&lt;/P&gt;&lt;P&gt;If you get to know how the room generator is implemented (or who implemented it) I would appreciate the answer !&lt;/P&gt;&lt;P&gt;Sincerely&lt;/P&gt;&lt;P&gt;Benoit&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 09:47:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/surface-automatic-generator/m-p/7354070#M56865</guid>
      <dc:creator>BenoitE&amp;A</dc:creator>
      <dc:date>2017-09-05T09:47:50Z</dc:date>
    </item>
  </channel>
</rss>

