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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Viewpoint2D

Represents the 2D viewpoint.
The 2D viewpoint is the object that stores data which defines how your objects
are seen to enable their display by a 2D viewer. This data includes namely the
origin of the scene, that is the center of the displayed area, and the zoom
factor.
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 NiceViewpoint
viewpoint.

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 the
point 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 double

Returns or sets the zoom factor associated with the
viewpoint.

Example:
This example retrieves in ZoomFactor the zoom factor associated with
the NiceViewpoint viewpoint, tests if it is less than 1, and if so, sets it to
one and applies it to the viewpoint.

ZoomFactor = NiceViewpoint.Zoom
If ZoomFactor < 1 Then
ZoomFactor = 1
NiceViewpoint.Zoom(ZoomFactor)
End If
Return type:

float