pycatia.navigator_interfaces.marker_2Ds¶
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_2Ds.Marker2Ds(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionMarker2DsA collection of Marker2Ds objects.- add2_d_arrow(i_coordinates: tuple) → Marker2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add2DArrow(CATSafeArrayVariant iCoordinates) AsMarker2DCreates an arrow marker 2D and adds it to the marker 2D collection. Thearrow is defined using the coordinates of its head and tailpoints.Parameters:iCoordinatesThe coordinatesiCoordinates(0) is the X coordinate of the headpointiCoordinates(1) is the Y coordinate of the headpointiCoordinates(2) is the X coordinate of the tailpointiCoordinates(3) is the Y coordinate of the tail pointReturns:The created marker 2DExample:This example creates a new marker 2D in the TheMarker2Dscollection.Dim NewMarker2DArrow As Marker2DSet NewMarker2DArrow = TheMarker2Ds.Add2DArrow(Positions)
- Parameters:
i_coordinates (tuple) –
- Return type:
- add2_d_circle(i_coordinates: tuple, i_fill_status: int) → Marker2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add2DCircle(CATSafeArrayVariant iCoordinates,long iFillStatus) As Marker2DCreates a circle marker 2D and adds it to the marker 2D collection. Thecircle is defined using the coordinates of its center and a point through whichit passes.Parameters:iCoordinatesThe coordinatesiCoordinates(0) is the X coordinate of thecenteriCoordinates(1) is the Y coordinate of thecenteriCoordinates(2) is the X coordinate of the a point on thecircleiCoordinates(3) is the Y coordinate of the a point on thecircleiFillStatusThe filling status (1 the figure is filled, 0 the figure is notfilled).Returns:The created marker 2DExample:This example creates a new marker 2D in the TheMarker2Dscollection.Dim NewMarker2DCircle As Marker2DSet NewMarker2DCircle = TheMarker2Ds.Add2DCircle(Positions, 0)
- Parameters:
i_coordinates (tuple) –
i_fill_status (int) –
- Return type:
- add2_d_free_hand(i_coordinates: tuple) → Marker2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add2DFreeHand(CATSafeArrayVariant iCoordinates) AsMarker2DCreates a free hand drawing marker 2D and adds it to the marker 2Dcollection. The free hand drawing is defined using the coordinates of a seriesof points.Parameters:iCoordinatesThe coordinatesiCoordinates(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 secondpointiCoordinates(n*2-2) is the X coordinate of the n-thpointiCoordinates(n*2-1) is the Y coordinate of the n-th pointReturns:The created marker 2DExample:This example creates a new marker 2D in the TheMarker2Dscollection.Dim NewMarker2DFreeHand As Marker2DSet NewMarker2DFreeHand = TheMarker2Ds.Add2DFreeHand(Positions)
- Parameters:
i_coordinates (tuple) –
- Return type:
- add2_d_line(i_coordinates: tuple) → Marker2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add2DLine(CATSafeArrayVariant iCoordinates) AsMarker2DCreates a line marker 2D and adds it to the marker 2D collection. The linesegment is defined using the coordinates of its twoendpoints.Parameters:iCoordinatesThe coordinates of the endpointsiCoordinates(0) is the X coordinate of the firstendpointiCoordinates(1) is the Y coordinate of the firstendpointiCoordinates(2) is the X coordinate of the secondendpointiCoordinates(3) is the Y coordinate of the second endpointReturns:The created marker 2DExample:This example creates a new marker 2D in the TheMarker2Dscollection.Dim NewMarker2DLine As Marker2DSet NewMarker2DLine = TheMarker2Ds.Add2DLine(Positions)
- Parameters:
i_coordinates (tuple) –
- Return type:
- add2_d_picture(i_coordinates: tuple, i_path: str) → Marker2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add2DPicture(CATSafeArrayVariant iCoordinates,CATBSTR iPath) As Marker2DCreates a picture marker 2D and adds it to the marker 2D collection. Thepicture is defined as a rectangle whose bottom-left and top-right corners aregiven.Parameters:iCoordinatesThe coordinates of the cornersiCoordinates(0) is the X coordinate of the bottom-leftpointiCoordinates(1) is the Y coordinate of the bottom-leftpointiCoordinates(2) is the X coordinate of the top-rightpointiCoordinates(3) is the Y coordinate of the top-right pointiPathThe path to the picture fileReturns:The created marker 2DExample:This example creates a new marker 2D in the TheMarker2Dscollection.Dim NewMarker2DPicture As Marker2DSet NewMarker2DPicture = TheMarker2Ds.Add2DPicture(Positions, “e:picture.bmp”)
- Parameters:
i_coordinates (tuple) –
i_path (str) –
- Return type:
- add2_d_rectangle(i_coordinates: tuple, i_fill_status: int) → Marker2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add2DRectangle(CATSafeArrayVariant iCoordinates,long iFillStatus) As Marker2DCreates a rectangle marker 2D and adds it to the marker 2D collection. Therectangle is defined using the coordinates of its bottom-left and top-rightcorners.Parameters:iCoordinatesThe coordinatesiCoordinates(0) is the X coordinate of the bottom-leftpointiCoordinates(1) is the Y coordinate of the bottom-leftpointiCoordinates(2) is the X coordinate of the top-rightpointiCoordinates(3) is the Y coordinate of the top-right pointiFillStatusThe filling status (1 the figure is filled, 0 the figure is notfilled).Returns:The created marker 2DExample:This example creates a new marker 2D in the TheMarker2Dscollection.Dim NewMarker2DRectangle As Marker2DSet NewMarker2DRectangle = TheMarker2Ds.Add2DRectangle(Positions, 0)
- Parameters:
i_coordinates (tuple) –
i_fill_status (int) –
- Return type:
- add2_d_text(i_coordinates: tuple, i_text: str) → Marker2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add2DText(CATSafeArrayVariant iCoordinates,CATBSTR iText) As Marker2DCreates a text marker 2D and adds it to the marker 2D collection. The textis anchored using the coordinates of its bottom-leftpoint.Parameters:iCoordinatesThe coordinatesiCoordinates(0) is the X coordinate of the bottom-leftpointiCoordinates(1) is the Y coordinate of the bottom-left pointiTextThe textReturns:The created marker 2DExample:This example creates a new marker 2D in the TheMarker2Dscollection.Dim NewMarker2DText As Marker2DSet NewMarker2DText = TheMarker2Ds.Add2DText(Positions, “example”)
- Parameters:
i_coordinates (tuple) –
i_text (str) –
- Return type:
- item(i_index: cat_variant) → Marker2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Item(CATVariant iIndex) As Marker2DReturns a marker 2D using its index from the Marker2Dscollection.Parameters:iIndexThe index of the marker 2D to retrieve from the collection ofMarker2Ds. As a numerics, this index is the rank of the marker 2D in thecollection. The index of the first marker 2D in the collection is 1, and theindex of the last marker 2D is Count.Returns:The retrieved marker 2DExample:This example retrieves in ThisMarker2D the ninth marker 2Dfrom the TheMarker2Ds collection.Dim ThisMarker2D As Marker2DSet ThisMarker2D = TheMarker2Ds.Item(9)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove(i_index: cat_variant) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Remove(CATVariant iIndex)Removes a marker 2D from the Marker2Ds collection.Parameters:iIndexThe index of the marker 2D to retrieve from he collection ofMarker2Ds. As a numerics, this index is the rank of the marker 2D in thecollection. The index of the first marker 2D in the collection is 1, and theindex of the last marker 2D is Count.Example:The following example removes the tenth marker 2D from theTheMarker2Ds collection.TheMarker2Ds.Remove(10)
- Parameters:
i_index (cat_variant) –
- Return type:
None