pycatia.navigator_interfaces.marker_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.navigator_interfaces.marker_2D.Marker2D(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMarker2DRepresents a marker 2D in a specified annotated view.- property fill: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Fill() As longReturns or sets the Marker2D’s filling status (1 the figure is filled, 0the figure is not filled).Example:This example retrieves the filling status of the NewMarker2DMarker2D.Dim status As Integerstatus = NewMarker2D.Fill
- Return type:
int
- property frame: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Frame() As longReturns or sets the Marker2D’s framing status (1 the figure is framed, 0the figure is not framed).Example:This example retrieves the framing status of the NewMarker2DMarker2D.Dim status As Integerstatus = NewMarker2D.Frame
- Return type:
int
- get_positions(o_coordinates: tuple) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetPositions(CATSafeArrayVariant oCoordinates)Retrieves the coordinates of the positions of theMarker2D.These positions depend on the type of the Marker2D :Line: 2 positions.Arrow: 2 positions, the first being the head and the second being thetail.Rectangle: 2 positions, the first being the bottom-left corner and thesecond being the top-right corner.Circle: 2 positions, the first being the center and the second being apoint on the circle.FreeHand: as many positions as points.Text: 1 position, the bottom-left corner.Picture: 2 positions, the first being the bottom-left corner and thesecond being the top-right corner.Parameters:oCoordinatesThe coordinates of the positions expressed as an array of variantsare:oCoordinates(0) is the X coordinate of the firstpointoCoordinates(1) is the Y coordinate of the firstpointoCoordinates(2) is the X coordinate of the secondpointoCoordinates(3) is the Y coordinate of the secondpointoCoordinates(n*2-2) is the X coordinate of the n-thpointoCoordinates(n*2-1) is the Y coordinate of the n-th pointExample:This example retrieves the coordinates of the positions of theNewMarker2D Marker2D.Dim Coordinates (3)NewMarker2D.GetPositions Coordinates
- Parameters:
o_coordinates (tuple) –
- Return type:
None
- property picture: str¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Picture() As CATBSTRReturns or sets the path to a picture file for a pictureMarker2D.Example:This example retrieves the path to a picture file of theNewMarker2D Marker2D.Dim path As Stringpath = NewMarker2D.Picture
- Return type:
str
- set_positions(i_coordinates: tuple) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetPositions(CATSafeArrayVariant iCoordinates)Sets the coordinates of the positions of the Marker2D.These positions depend on the type of the Marker2D :Line: 2 positions.Arrow: 2 positions, the first being the head and the second being thetail.Rectangle: 2 positions, the first being the bottom-left corner and thesecond being the top-right corner.Circle: 2 positions, the first being the center and the second being apoint on the circle.FreeHand: as many positions as points.Text: 1 position, the bottom-left corner.Picture: 2 positions, the first being the bottom-left corner and thesecond being the top-right corner.Parameters:iCoordinatesThe coordinates of the positions expressed as an array of variantsare:iCoordinates(0) is the X coordinate of the firstpointiCoordinates(1) is the Y coordinate of the firstpointiCoordinates(2) is the X coordinate of the secondpointiCoordinates(3) is the Y coordinate of the secondpointoCoordinates(n*2-2) is the X coordinate of the n-thpointoCoordinates(n*2-1) is the Y coordinate of the n-th pointExample:This example sets the coordinates of the positions of theNewMarker2D Marker2D.Dim Coordinates (3) ‘To be valuatedNewMarker2D.SetPositions Coordinates
- Parameters:
i_coordinates (tuple) –
- Return type:
None
- property text: str¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Text() As CATBSTRReturns or sets the text for a text Marker2D.Example:This example retrieves the text of the NewMarker2DMarker2D.Dim text As Stringtext = NewMarker2D.Text
- Return type:
str
- property text_angle: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property TextAngle() As doubleReturns or sets the text’s angle for a text Marker2D.Example:This example retrieves the text’s angle of the NewMarker2DMarker2D.Dim angle As Doublesize = NewMarker2D.TextAngle
- Return type:
float
- property text_font: str¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property TextFont() As CATBSTRReturns or sets the text’s font for a text Marker2D.Example:This example retrieves the text’s font of the NewMarker2DMarker2D.Dim font As Stringfont = NewMarker2D.TextFont
- Return type:
str
- property text_orientation: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property TextOrientation() As CatMarkerTextOrientationReturn or set the orientation of text.Example:This example retrieves the orientation of the NewMarker2DMarker2D.Dim orientation As CatMarkerTextOrientationorientation = NewMarker2D.TextOrientation
- Returns:
enum cat_marker_text_orientation
- Return type:
int
- property text_size: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property TextSize() As doubleReturns or sets the text’s size for a text Marker2D.Example:This example retrieves the text’s size of the NewMarker2DMarker2D.Dim size As Doublesize = NewMarker2D.TextSize
- Return type:
float
- property type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Type() As CatMarker2DType (Read Only)Returns the type of the marker 2D.Example:This example retrieves the type of the NewMarker2DMarker2D.Dim type As CatMarker2DTypetype = NewMarker2D.Type
- Returns:
enum cat_marker_2d_type
- Return type:
int