Set drawing’s view back to normal

<?xml encoding=”UTF-8″>By Adam Nagy

Just like the Camera of the View of a part or an assembly, a drawing view’s camera can be modified as well. However, this is not possible through the UI. Using an ISO view can give an insight into the iternals of Inventor: what seems to be just a bunch of 2d lines are actually 3d:

Sub DrawingIsoView()
Dim v As View
Set v = ThisApplication.ActiveView
Dim c As Camera
Set c = v.Camera
c.ViewOrientationType = kIsoTopRightViewOrientation
c.ApplyWithoutTransition
End Sub

Drawingview

If you ended up with such a view by accident – it happened to someone somehow – then you can easily set things back to normal:

Sub DrawingNormalView()
Dim v As View
Set v = ThisApplication.ActiveView
Dim c As Camera
Set c = v.Camera
c.ViewOrientationType = kFrontViewOrientation
c.ApplyWithoutTransition
End Sub

Drawingview2

More info on Camera manipulation: http://modthemachine.typepad.com/my_weblog/2013/09/working-with-cameras-part-1.html


Comments

2 responses to “Set drawing’s view back to normal”

  1. I’ve heard this is possible with a 3D-mouse.

  2. Thanks, Johan.
    Maybe that’s how the customer ended up with an ISO view :)

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading