pycatia.navigator_interfaces.annotated_view¶
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.navigator_interfaces.annotated_view.AnnotatedView(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectAnnotatedViewRepresents an annotated view.- property behavior_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property BehaviorMode() As CatAnnotatedViewBehaviorReturns or sets the behavior mode of the annotated view. This behavior modeenables the annotated view to be independant from theviewpoint.Example:This example retrieves the behavior mode of the NewAnnotatedViewannotated view.Dim ModeMode = NewAnnotatedView.BehaviorMode
- Returns:
enum cat_annotated_view_behavior
- Return type:
int
- property comment: str¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Comment() As CATBSTRReturns or sets the comment associated with the annotatedview.Example:This example retrieves the comment of NewAnnotatedView annotatedview.Dim text As Stringtext = NewAnnotatedView.Comment
- Return type:
str
- property field_of_view: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FieldOfView() As double (Read Only)Returns the field of view associated with the annotated view. The field ofview is half of the vertical angle of the viewpoint, expressed in degrees. Thisproperty exists with the perspective (conic) projection modeonly.Example:This example retrieves the field of view of the NewAnnotatedViewannotated view.Dim Field As DoubleField = NewAnnotatedView.FieldOfView
- Return type:
float
- get_origin(o_origin: tuple) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetOrigin(CATSafeArrayVariant oOrigin)Retrieves the coordinates of the origin of the 3D viewpoint of theannotated view.Parameters:oOriginThe coordinates of the view point origin expressed as an array of 3variants are:oOrigin(0) is the X coordinate of the originoOrigin(1) is the Y coordinate of the originoOrigin(2) is the Z coordinate of the originExample:This example retrieves the origin of the 3D viewpoint of theNewAnnotatedView annotated view.Dim origin(2)NewAnnotatedView.GetOrigin origin
- Parameters:
o_origin (tuple) –
- Return type:
None
- get_sight_direction(o_sight: tuple) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetSightDirection(CATSafeArrayVariant oSight)Retrieves the components of the sight direction of the 3D viewpoint of theannotated view. The sight direction is the line that passes by the origin ofthe viewpoint and by the target.Parameters:oSightThe components of the viewpoint sight direction expressed as anarray of 3 variants are:oSight(0) is the X component of the sightdirectionoSight(1) is the Y component of the sightdirectionoSight(2) is the Z component of the sight directionExample:This example retrieves the sight direction of the NewAnnotatedViewannotated view.Dim sight(2)NewAnnotatedView.GetSightDirection sight
- Parameters:
o_sight (tuple) –
- Return type:
None
- get_up_direction(o_up: tuple) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetUpDirection(CATSafeArrayVariant oUp)Retrieves the components of the up direction of the 3D viewpoint of theannotated view.Parameters:oUpThe components of the viewpoint up direction expressed as an arrayof 3 variants are:oUp(0) is the X component of the up directionoUp(1) is the Y component of the up directionoUp(2) is the Z component of the up directionExample:This example retrieves the up direction of the NewAnnotatedViewannotated view.Dim up(2)NewAnnotatedView.GetUpDirection up
- Parameters:
o_up (tuple) –
- Return type:
None
- property marker2_ds: Marker2Ds¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Marker2Ds() As Marker2Ds (Read Only)Returns the Marker2D Collection associated with the annotatedview.Example:This example retrieves the TheMarker2Dscollectionfrom the NewAnnotatedView annotated view.Dim TheMarker2Ds As AnnotatedViewSet TheMarker2Ds = NewAnnotatedView.Marker2Ds(9)
- Return type:
- property projection_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property ProjectionMode() As CatProjectionMode (Read Only)Returns the projection mode of the annotated view. This projection mode isthe one of the associated 3D View point.Example:This example retrieves the projection mode of the NewAnnotatedViewannotated view.Dim ModeMode = NewAnnotatedView.ProjectionMode
- Returns:
enum cat_projection_mode
- Return type:
int
- property sound: str¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Sound() As CATBSTRReturns or sets the path of the sound file associated with the annotatedview.Parameters:iPathThe path of the sound file. If this path is not empty, the soundreplaces the old associated one (if it exists) or creates a new association (ifnot). If this path is empty, the sound is removed.Returns:The path of the sound file. If this path is empty, the annotated viewhas no associated sound.Example:This example retrieves the path of the sound file associated withthe NewAnnotatedView annotated view.Dim path As Stringpath = NewAnnotatedView.Sound
- Return type:
str
- update() → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Update()Updates the annotated view: that is to take into account all modificationswhich occur since last update.Example:This example updates the NewAnnotatedView annotatedview.NewAnnotatedView.Update
- Return type:
None
- property zoom: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Zoom() As double (Read Only)Returns the zoom factor associated with the annotated view. This propertyexists with the parallel (cylindric) projection mode only. This zoom factor isthe one of the associated 3D View point.Example:This example retrieves in ZoomFactor the zoom of theNewAnnotatedView annotated view.Dim ZoomFactor As DoubleZoomFactor = NewAnnotatedView.Zoom
- Return type:
float