<?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 2D coordinates of curve endpoints in View3D in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/2d-coordinates-of-curve-endpoints-in-view3d/m-p/5425365#M74832</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to obtain 2D coordinates at the viewport of curve endpoints within a View3D.&lt;/P&gt;&lt;P&gt;Therefore, I filter the visible elements with the FilteredElementCollector. Is there a way to directly obtain the 2D coordinates on the screen without doing perspective transformation of the element to the camera coordinates and project it to the image plane?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2014 14:56:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-26T14:56:59Z</dc:date>
    <item>
      <title>2D coordinates of curve endpoints in View3D</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/2d-coordinates-of-curve-endpoints-in-view3d/m-p/5425365#M74832</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to obtain 2D coordinates at the viewport of curve endpoints within a View3D.&lt;/P&gt;&lt;P&gt;Therefore, I filter the visible elements with the FilteredElementCollector. Is there a way to directly obtain the 2D coordinates on the screen without doing perspective transformation of the element to the camera coordinates and project it to the image plane?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:56:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/2d-coordinates-of-curve-endpoints-in-view3d/m-p/5425365#M74832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-26T14:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: 2D coordinates of curve endpoints in View3D</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/2d-coordinates-of-curve-endpoints-in-view3d/m-p/5461529#M74833</link>
      <description>&lt;P&gt;Dear Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, there is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the UIView class and its two methods&amp;nbsp;GetZoomCorners and&amp;nbsp;GetWindowRectangle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The former returns Revit XYZ coordinates, the latter a&amp;nbsp;Rectangle&amp;nbsp;on the screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I show how to make use of this in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/10/uiview-windows-coordinates-referenceintersector-and-my-own-tooltip.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2012/10/uiview-windows-coordinates-referenceintersector-and-my-own-tooltip.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you find any other interesting solution in the (long) meantime?&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, 07 Jan 2015 17:22:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/2d-coordinates-of-curve-endpoints-in-view3d/m-p/5461529#M74833</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-01-07T17:22:04Z</dc:date>
    </item>
  </channel>
</rss>

