pycatia.in_interfaces.viewpoint_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.viewpoint_2d.Viewpoint2D(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectViewpoint2DRepresents the 2D viewpoint.The 2D viewpoint is the object that stores data which defines how your objectsare seen to enable their display by a 2D viewer. This data includes namely theorigin of the scene, that is the center of the displayed area, and the zoomfactor.- get_origin(o_origin: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetOrigin(CATSafeArrayVariant oOrigin)Gets the coordinates of the origin of the viewpoint.Example:This example Gets the origin of the NiceViewpointviewpoint.Dim origin(1)NiceViewpoint.GetOrigin origin
- Parameters:
o_origin (tuple) –
- Return type:
None
- put_origin(o_origin: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub PutOrigin(CATSafeArrayVariant oOrigin)Sets the coordinates of the origin of the viewpoint.Example:This example sets the origin of the NiceViewpoint viewpoint to thepoint with coordinates (5, 8).NiceViewpoint.PutOrigin Array(5, 8)
- Parameters:
o_origin (tuple) –
- Return type:
None
- property zoom: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Zoom() As doubleReturns or sets the zoom factor associated with theviewpoint.Example:This example retrieves in ZoomFactor the zoom factor associated withthe NiceViewpoint viewpoint, tests if it is less than 1, and if so, sets it toone and applies it to the viewpoint.ZoomFactor = NiceViewpoint.ZoomIf ZoomFactor < 1 ThenZoomFactor = 1NiceViewpoint.Zoom(ZoomFactor)End If
- Return type:
float