<?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: getting issue to identify the window inside room. in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10644335#M23560</link>
    <description>&lt;P&gt;ok will try.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 06:37:07 GMT</pubDate>
    <dc:creator>prasannamurumkar</dc:creator>
    <dc:date>2021-09-24T06:37:07Z</dc:date>
    <item>
      <title>getting issue to identify the window inside room.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10641837#M23558</link>
      <description>&lt;P&gt;Hi facing issue with window if it is inside room.&lt;/P&gt;&lt;P&gt;tried 3 ways&lt;/P&gt;&lt;P&gt;1.Passes bounding box filter to room but all windows inside model getting.Means filter not applying properly.&lt;/P&gt;&lt;P&gt;2.tried by getting walls using boundry segment in room through loop.And then get associate element of wall.But only one window is identified.Although room has three window.Please find image. here window 2 &amp;amp;3 is not identified by API.The wall is getting identified of 2 &amp;amp;3 window but when use asssociate element api window not present in that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IEnumerable&amp;lt;Element&amp;gt; associate = new FilteredElementCollector(revitDocument).OfClass(typeof(FamilyInstance)).Where(m =&amp;gt; (m as FamilyInstance).Host == null ? false : (m as FamilyInstance).Host.Id == eleTem.Id);&lt;/P&gt;&lt;P&gt;here eleTem.Id is wall ID.&lt;/P&gt;&lt;P&gt;3.tried by "ispointinsideroom"&amp;nbsp; by giving location point of window.but window is not getting identified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is their any other way should try?&lt;/P&gt;&lt;P&gt;waiting for reply.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 09:29:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10641837#M23558</guid>
      <dc:creator>prasannamurumkar</dc:creator>
      <dc:date>2021-09-23T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting issue to identify the window inside room.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10644320#M23559</link>
      <description>&lt;P&gt;If the more complex approach fails, you might want to start by trying something simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The IsPointInRoom method tests whether a single XYZ point is contained in a room:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2022/96e29ddf-d6dc-0c40-b036-035c5001b996.htm" target="_blank"&gt;https://www.revitapidocs.com/2022/96e29ddf-d6dc-0c40-b036-035c5001b996.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to get that running and see whether it performs according to your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does, you can expand it, e.g., by checking all window corner vertices, its convex hull, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 06:29:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10644320#M23559</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-09-24T06:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: getting issue to identify the window inside room.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10644335#M23560</link>
      <description>&lt;P&gt;ok will try.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 06:37:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10644335#M23560</guid>
      <dc:creator>prasannamurumkar</dc:creator>
      <dc:date>2021-09-24T06:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: getting issue to identify the window inside room.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10645730#M23561</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seeing the image, the window(s) aren't located in the room, they border it.&lt;/P&gt;&lt;P&gt;Can't you use "ToRoom" or/and "FromRoom" for windows families hosted?&amp;nbsp;&lt;A title="ToRoom Property (Phase)" href="https://www.revitapidocs.com/2020/94e34f74-b6d1-2e4b-df44-b93aac5543c6.htm" target="_blank" rel="noopener"&gt;ToRoom Property (Phase)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take all possible Windows (from level) and compare their ToRoom/FromRoom property against the desired room.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ps. You can check it with a Window Schedule, and add the ToRoom/FromRoom room number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: If the window instance is to far from the edge of the Room it may not work, and the families should use the roomcalculation point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hints to why the approaches may not work&lt;/P&gt;&lt;P&gt;1 - bounding box can fail if room is at a angle or non-rectangle shape (will find to many windows or not right ones)&lt;/P&gt;&lt;P&gt;2 - Room boundary can be created by another wall or room seperation line. Evaluate the room edges themself, and identify walls matching those edges (not relay on the object creating the edge)&lt;/P&gt;&lt;P&gt;3 - The windows family origin point would have to be in the room?, most common it will be in the wall..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 17:57:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10645730#M23561</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2021-09-24T17:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: getting issue to identify the window inside room.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10654371#M23562</link>
      <description>&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;For above case&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works when used&amp;nbsp;get_FromRoom and&amp;nbsp;get_ToRoom api&lt;/P&gt;&lt;P&gt;FamilyInstance fasWin = elemWindow as FamilyInstance;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Room froom = fasWin.get_FromRoom(phase);&lt;/P&gt;&lt;P&gt;fasWin.get_ToRoom(phase)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and storing value of window and room in dictionary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 07:21:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-issue-to-identify-the-window-inside-room/m-p/10654371#M23562</guid>
      <dc:creator>prasannamurumkar</dc:creator>
      <dc:date>2021-09-29T07:21:43Z</dc:date>
    </item>
  </channel>
</rss>

