Active Member
Posts: 7
Registered: ‎03-27-2006
Message 1 of 4 (230 Views)

Problem creating rotated Viewport

230 Views, 3 Replies
03-28-2009 10:31 AM

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.
Here is my Code

Dim tAF As New DatabaseServices.Viewport

tAF.ViewCenter = midpnt
tAF.CenterPoint = AfCenterPoint
tAF.Width = AFWitdth
tAF.Height = AFHeigth
tAF.ViewHeight = imgHeigt
Dim LayIDAF As DatabaseServices.ObjectId = ISHAcTools.createLayer(ta, doc.Database, "MANSFEN")
tAF.LayerId = LayIDAF
tAF.TwistAngle = ImgCom.Rotation
ta.AddNewlyCreatedDBObject(tAF, True)

Can anybody tell me where the problem is?


Posts: 4
Registered: ‎03-30-2009
Message 2 of 4 (230 Views)

Re: Problem creating rotated Viewport

03-30-2009 12:46 PM in reply to: stephanhollaus
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.
Posts: 5
Registered: ‎11-25-2007
Message 3 of 4 (101 Views)

Re: Problem creating rotated Viewport

04-04-2013 12:43 PM in reply to: stephanhollaus



I have the same problem. Did you find a solution.

ADN Support Specialist
Posts: 669
Registered: ‎03-21-2011
Message 4 of 4 (72 Views)

Re: Problem creating rotated Viewport

04-17-2013 04:21 AM in reply to: boughannam



Here is a blog post that explains the ViewTwist calculation :



Can you please verify if the view twist that you are providing is correct ?


Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community