Sub CATMain()
Dim oCamera as Camera
Dim oViewer as Viewer
Set oCamera = CATIA.ActiveDocument.Cameras.Item(1) 'or per Name "* iso"
Set oViewer = CATIA.ActiveWindow.ActiveViewer
oViewer.Viewpoint3D = oCamera.Viewpoint3D
End Sub
I recommend to avoid StartCommands as much as possible.
Also I recommend you to get used to: recording macros, analyse them with the object resolution/object browser and the V5Automation.chm to get an entry in the available objects and methods.
You can use the predefined cameras for that:
I recommend to avoid StartCommands as much as possible.
Also I recommend you to get used to: recording macros, analyse them with the object resolution/object browser and the V5Automation.chm to get an entry in the available objects and methods.