<?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 Problem creating rotated Viewport in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/problem-creating-rotated-viewport/m-p/2456710#M71234</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to create a rotated vie but have a big problem. When I create the View "non rotated" everythig is fine. But when I try to rotate the View via twistangle the Viewcenter is wrong.&lt;BR /&gt;
Here is my Code&lt;BR /&gt;
&lt;BR /&gt;
     Dim tAF As New DatabaseServices.Viewport&lt;BR /&gt;
&lt;BR /&gt;
      tAF.ViewCenter = midpnt&lt;BR /&gt;
      tAF.CenterPoint = AfCenterPoint&lt;BR /&gt;
      tAF.Width = AFWitdth&lt;BR /&gt;
      tAF.Height = AFHeigth&lt;BR /&gt;
      tAF.ViewHeight = imgHeigt&lt;BR /&gt;
      Dim LayIDAF As DatabaseServices.ObjectId = ISHAcTools.createLayer(ta, doc.Database, "MANSFEN")&lt;BR /&gt;
      tAF.LayerId = LayIDAF&lt;BR /&gt;
      tAF.TwistAngle = ImgCom.Rotation&lt;BR /&gt;
      tLayoutBlDef.AppendEntity(tAF)&lt;BR /&gt;
      ta.AddNewlyCreatedDBObject(tAF, True)&lt;BR /&gt;
&lt;BR /&gt;
Can anybody tell me where the problem is?&lt;BR /&gt;
&lt;BR /&gt;
thx&lt;BR /&gt;
&lt;BR /&gt;
sincerly</description>
    <pubDate>Sat, 28 Mar 2009 17:31:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-03-28T17:31:44Z</dc:date>
    <item>
      <title>Problem creating rotated Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-creating-rotated-viewport/m-p/2456710#M71234</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to create a rotated vie but have a big problem. When I create the View "non rotated" everythig is fine. But when I try to rotate the View via twistangle the Viewcenter is wrong.&lt;BR /&gt;
Here is my Code&lt;BR /&gt;
&lt;BR /&gt;
     Dim tAF As New DatabaseServices.Viewport&lt;BR /&gt;
&lt;BR /&gt;
      tAF.ViewCenter = midpnt&lt;BR /&gt;
      tAF.CenterPoint = AfCenterPoint&lt;BR /&gt;
      tAF.Width = AFWitdth&lt;BR /&gt;
      tAF.Height = AFHeigth&lt;BR /&gt;
      tAF.ViewHeight = imgHeigt&lt;BR /&gt;
      Dim LayIDAF As DatabaseServices.ObjectId = ISHAcTools.createLayer(ta, doc.Database, "MANSFEN")&lt;BR /&gt;
      tAF.LayerId = LayIDAF&lt;BR /&gt;
      tAF.TwistAngle = ImgCom.Rotation&lt;BR /&gt;
      tLayoutBlDef.AppendEntity(tAF)&lt;BR /&gt;
      ta.AddNewlyCreatedDBObject(tAF, True)&lt;BR /&gt;
&lt;BR /&gt;
Can anybody tell me where the problem is?&lt;BR /&gt;
&lt;BR /&gt;
thx&lt;BR /&gt;
&lt;BR /&gt;
sincerly</description>
      <pubDate>Sat, 28 Mar 2009 17:31:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-creating-rotated-viewport/m-p/2456710#M71234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-28T17:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating rotated Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-creating-rotated-viewport/m-p/2456711#M71235</link>
      <description>Since you typically have to choose something within the viewport to use "twist", I would guess that you have to choose items within that viewport.</description>
      <pubDate>Mon, 30 Mar 2009 19:46:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-creating-rotated-viewport/m-p/2456711#M71235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-30T19:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating rotated Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-creating-rotated-viewport/m-p/3823856#M71236</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the same problem. Did you find a solution.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2013 19:43:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-creating-rotated-viewport/m-p/3823856#M71236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-04T19:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating rotated Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-creating-rotated-viewport/m-p/3873821#M71237</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a blog post that explains the ViewTwist calculation :&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/06/calculating-viewtwist-variable.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/06/calculating-viewtwist-variable.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please verify if the view twist that you are providing is correct ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2013 11:21:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-creating-rotated-viewport/m-p/3873821#M71237</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2013-04-17T11:21:24Z</dc:date>
    </item>
  </channel>
</rss>

