pycatia.drafting_interfaces.drawing_weldings¶
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_weldings.DrawingWeldings(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionDrawingWeldingsA collection of all the drawing weldings currently managed by a drawing view ofdrawing sheet in a drawing document.- add(i_symbol: int, i_position_x: float, i_position_y: float) DrawingWelding ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Add(CatWeldingSymbol iSymbol,double iPositionX,double iPositionY) As DrawingWeldingCreates a drawing welding and adds it to the drawing weldings collection.This drawing welding becomes the active one.Parameters:iSymbolThe drawing welding symbol to assign to the drawing weldingiPositionX,iPositionYThe drawing welding x and y coordinates, expressed in millimeters,and expressed with respect to the view coordinate systemReturns:The created drawing weldingExample:The following example creates a drawing welding, retrieved in MyWelding, inthe MyView drawing view. This view belongs to the drawing view collection ofthe drawing sheet.Dim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewDim MyWelding As DrawingWeldingSet MyWelding =MyView.Weldings.Add(catSquareWelding, 0., 0.)
- Parameters:
i_symbol (int) – enum cat_welding_symbol
i_position_x (float) –
i_position_y (float) –
- Return type:
- item(i_index: int) DrawingWelding ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Item(long iIndex) As DrawingWeldingReturns a drawing welding using its index from the drawing weldingscollection.Parameters:iIndexThe index of the drawing welding to retrieve from the collection ofdrawing weldings. As a numerics, this index is the rank of the drawing weldingin the collection. The index of the first drawing welding in the collection is1, and the index of the last drawing welding is Count.Returns:The retrieved drawing weldingExample:This example retrieves in ThisDrawingWelding the second drawing welding, inthe drawing welding 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 ThisDrawingWelding As DrawingWeldingSet ThisDrawingWelding = MyView.Weldings.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 welding from the drawing weldingscollection.Parameters:iIndexThe index of the drawing welding to remove from the collection ofdrawing weldings. As a numerics, this index is the rank of the drawing text inthe collection. The index of the first drawing welding in the collection is 1,and the index of the last drawing welding is Count.Example:The following example removes the third drawing welding from thedrawing welding collection of the active view of the active document, supposedto be a drawing document.Dim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewMyView.Drawing.Remove(3)
- Parameters:
i_index (int) –
- Return type:
None