<?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
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
More info on Camera manipulation: http://modthemachine.typepad.com/my_weblog/2013/09/working-with-cameras-part-1.html



Leave a Reply