<?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: Centre line of window in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7095257#M58518</link>
    <description>&lt;P&gt;Sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a suggestion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Determine the bounding box B of the window.&lt;/LI&gt;
&lt;LI&gt;Determine the plane P defined by the location line of the wall and the Z axis.&lt;/LI&gt;
&lt;LI&gt;Project B onto P.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That gives you the four desired points.&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>Fri, 19 May 2017 12:06:30 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2017-05-19T12:06:30Z</dc:date>
    <item>
      <title>Centre line of window</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7074379#M58515</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extract the coordinates of &amp;nbsp;endpoints (centre line) of a window. Could I use the similar way, just like using LocationCurve to get the location of wall ? Or Is there better method to achieve this goal ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 12:48:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7074379#M58515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T12:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Centre line of window</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7075659#M58516</link>
      <description>&lt;P&gt;This sounds like a prime use of the new&amp;nbsp;API access to FamilyInstance references:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/04/whats-new-in-the-revit-2018-api.html#3.19" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/04/whats-new-in-the-revit-2018-api.html#3.19&lt;/A&gt;&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>Wed, 10 May 2017 20:46:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7075659#M58516</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-05-10T20:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Centre line of window</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7095099#M58517</link>
      <description>&lt;P&gt;Thanks Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This should be a good method. But, the new&amp;nbsp;API access to FamilyInstance reference is not available now.&amp;nbsp; Is these any other method to achieve my goal?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I want to achieve is that I want to extract four endpoints of the center plane of the window. The center plane of the window should be a inlay (same space position) of the center plane of the wall. The following figure shows this issue. Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="question.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/357932iC9A423EE582B47CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="question.PNG" alt="question.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hao&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 10:41:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7095099#M58517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-19T10:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Centre line of window</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7095257#M58518</link>
      <description>&lt;P&gt;Sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a suggestion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Determine the bounding box B of the window.&lt;/LI&gt;
&lt;LI&gt;Determine the plane P defined by the location line of the wall and the Z axis.&lt;/LI&gt;
&lt;LI&gt;Project B onto P.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That gives you the four desired points.&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>Fri, 19 May 2017 12:06:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7095257#M58518</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-05-19T12:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Centre line of window</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7096695#M58519</link>
      <description>&lt;P&gt;Could you not use the BoundingBox of the object to work out the extremities of the window and then from that the centre points?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 21:58:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7096695#M58519</guid>
      <dc:creator>Kevin.Bell</dc:creator>
      <dc:date>2017-05-19T21:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Centre line of window</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7099421#M58520</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not yet now. I'm trying to use this method. Have you worked it out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 13:36:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7099421#M58520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T13:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Centre line of window</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7100259#M58521</link>
      <description>&lt;P&gt;I don't follow your question...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... but if your asking how I would go about it, then look at the Element Class, this has a property called 'BoundingBox'. The issue you might have with that it that the Bounding Box is always aligned to the axes of the model coordinate system (according to the API help file), and so you'd need to work out the rotation of the window if its not orthogonal to the axes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps an easier way would be to work out the coordinates you need based on what you know of the window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could easily extract the windows insertion point coordinates probably using the Location property of the Element Class, then, your just need to extract the Width from the width parameter and (assuming the insertion point is in the middle of the window) you could calculate the coordinates...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a thought.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 20:11:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7100259#M58521</guid>
      <dc:creator>Kevin.Bell</dc:creator>
      <dc:date>2017-05-22T20:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Centre line of window</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7101020#M58522</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there may be non-rectangular windows, so I think you not only want to get four corner points if there is a round or L-shaped window.&lt;/P&gt;
&lt;P&gt;What about ExporterIFCUtils.GetInstanceCutoutFromWall() ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can project those curves to whatever plane you define.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 06:45:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/centre-line-of-window/m-p/7101020#M58522</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2017-05-23T06:45:22Z</dc:date>
    </item>
  </channel>
</rss>

