<?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: Named View from Rectangle .NET in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/named-view-from-rectangle-net/m-p/8354507#M24514</link>
    <description>&lt;P&gt;Views are like cameras, their calculations are about center (target of camera), and zoom (distance from target).&amp;nbsp; If you want to turn a pline box into a view, you will need to calc the center of the pline, the rotation of the pline, and use the size of the pline to calculated the distance from target and get a proper zoom.&amp;nbsp; The latter being the more complicated, you will want to get the size of the viewport in pixels, compare to the size of the plinebox and set.&lt;/P&gt;&lt;P&gt;Non numerically, you can set a view to the center of the plinebox, rotate, then zoom to fit box.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 22:01:54 GMT</pubDate>
    <dc:creator>JamieVJohnson2</dc:creator>
    <dc:date>2018-10-23T22:01:54Z</dc:date>
    <item>
      <title>Named View from Rectangle .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/named-view-from-rectangle-net/m-p/8344274#M24513</link>
      <description>&lt;P&gt;I have been struggling trying to get this to work properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have the user select a polyline, polyline is a rectangle and may be rotated (must be closed and contain only 4 points);&lt;/P&gt;&lt;P&gt;Determine the upper left &amp;amp; right, and the lower left &amp;amp; right (as the corners of the polyline, not the bounding box);&lt;/P&gt;&lt;P&gt;Create a ucs where origin = LowerLeft, xAxis = LowerLeft to LowerRight, yAxis = LowerLeft to UpperLeft&lt;/P&gt;&lt;P&gt;Create a named view aligned to the rotation of the polyline and bound by the dimensions of the polyline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling with the center point of the named view and the twist or rotation. Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 19:59:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/named-view-from-rectangle-net/m-p/8344274#M24513</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2018-10-18T19:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Named View from Rectangle .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/named-view-from-rectangle-net/m-p/8354507#M24514</link>
      <description>&lt;P&gt;Views are like cameras, their calculations are about center (target of camera), and zoom (distance from target).&amp;nbsp; If you want to turn a pline box into a view, you will need to calc the center of the pline, the rotation of the pline, and use the size of the pline to calculated the distance from target and get a proper zoom.&amp;nbsp; The latter being the more complicated, you will want to get the size of the viewport in pixels, compare to the size of the plinebox and set.&lt;/P&gt;&lt;P&gt;Non numerically, you can set a view to the center of the plinebox, rotate, then zoom to fit box.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 22:01:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/named-view-from-rectangle-net/m-p/8354507#M24514</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2018-10-23T22:01:54Z</dc:date>
    </item>
  </channel>
</rss>

