Camera2D (Object)

Represents a 2D camera.
The 2D camera stores a 2D viewpoint, that is a object.

Properties


Property Viewpoint2D() As
Returns or sets the 2D viewpoint of a 2D camera.
Example:
Assume the active window is a object. This example retrieves the of the and creates from it a Camera2D you handle using the MyCamera variable. Then the camera zoom is set to 2, and the camera's viewpoint is assigned to the .
 Dim MyCamera As Camera
 Set MyCamera = CATIA.ActiveWindow.SpecsViewer.NewCamera()
 MyCamera.Viewpoint2D.Zoom = 2
 CATIA.ActiveWindow.SpecsViewer.Viewpoint2D = MyCamera.Viewpoint2D