pycatia.in_interfaces.camera_2d

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.in_interfaces.camera_2d.Camera2D(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Camera
Camera2D

Represents a 2D camera.
The 2D camera stores a 2D viewpoint, that is a Viewpoint2D
object.
property viewpoint2_d: Viewpoint2D

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
o Property Viewpoint2D() As Viewpoint2D

Returns or sets the 2D viewpoint of a 2D camera.

Example:
Assume the active window is a SpecsAndGeomWindow object. This example
retrieves the Viewpoint2D of the SpecsViewer 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 SpecsViewer.

Dim MyCamera As Camera
Set MyCamera = CATIA.ActiveWindow.SpecsViewer.NewCamera()
MyCamera.Viewpoint2D.Zoom = 2
CATIA.ActiveWindow.SpecsViewer.Viewpoint2D = MyCamera.Viewpoint2D
Return type:

Viewpoint2D