pycatia.drafting_interfaces.drawing_texts¶
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.drafting_interfaces.drawing_texts.DrawingTexts(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionDrawingTextsA collection of all the drawing texts currently managed by a drawing view ofdrawing sheet in a drawing document.- add(i_drawing_text: str, i_position_x: float, i_position_y: float) DrawingText ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Add(CATBSTR iDrawingText,double iPositionX,double iPositionY) As DrawingTextCreates a drawing text and adds it to the DrawingTextscollection.Parameters:iDrawingTextThe character string that makes up the drawing text to createiPositionX,iPositionYThe drawing text x and y coordinates, expressed in millimeters,with respect to the drawing view coordinate systemReturns:The created drawing textExample:The following example creates a drawing text with the string ComplexTextand retrieved in MyText in the drawing view collection of the MyView drawingview. This view belongs to the drawing view collection of the drawingsheetDim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewDim MyText As DrawingTextSet MyText = MyView.Texts.Add(“ComplexText”, 0., 0.)
- Parameters:
i_drawing_text (str) –
i_position_x (float) –
i_position_y (float) –
- Return type:
- item(i_index: int) DrawingText ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Item(long iIndex) As DrawingTextReturns a drawing text using its index from the DrawingTextscollection.Parameters:iIndexThe index of the drawing text to retrieve from the collection ofdrawing texts. As a numerics, this index is the rank of the drawing text in thecollection. The index of the first drawing text in the collection is 1, and theindex of the last drawing text is Count.Returns:The retrieved drawing viewExample:This example retrieves in ThisDrawingText the second drawing text, inthe drawing view collection of the active view in the active sheet, in theactive document supposed to be a drawing document.Dim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewDim ThisDrawingText As DrawingTextSet ThisDrawingText = MyView.Texts.Item(2)
- Parameters:
i_index (int) –
- Return type:
- remove(i_index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub Remove(long iIndex)Removes a drawing text from the DrawingTexts collection.Parameters:iIndexThe index of the drawing text to remove from the collection ofdrawing texts. As a numerics, this index is the rank of the drawing text in thecollection. The index of the first drawing text in the collection is 1, and theindex of the last drawing text is Count.Example:The following example removes the third drawing text in the drawingtext collection of the active view of the active document, supposed to be adrawing document.Dim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewMyView.DrawingTexts.Remove(3)
- Parameters:
i_index (int) –
- Return type:
None