pycatia.drafting_interfaces.drawing_leaders¶
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_leaders.DrawingLeaders(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionDrawingLeadersA collection of all the drawing leaders currently managed by a drawing view ofdrawing sheet in a drawing document.- add(i_head_point_x: float, i_head_point_y: float) DrawingLeader ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Add(double iHeadPointX,double iHeadPointY) As DrawingLeaderCreates a drawing leader and adds it to the DrawingLeaderscollection.Parameters:iHeadPointX,iHeadPointYThe x and y coordinates of head side of drawing leaderReturns:The created drawing leaderExample:The following example creates a drawing leader and retrieved in MyLeader inthe drawing text collection of the MyText drawing text. This text belongs tothe drawing text collection of the drawing viewDim MyTexts As DrawingTextsSet MyTexts = MySheet.Views.ActiveViewDim MyText As DrawingTextSet MyText = MyTexts.Item(1)Dim MyLeader As DrawingLeaderSet MyLeader = MyText.Leaders.Add(20., 50)
- Parameters:
i_head_point_x (float) –
i_head_point_y (float) –
- Return type:
- item(i_index: int) DrawingLeader ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Item(long iIndex) As DrawingLeaderReturns a drawing leader using its index from the DrawingLeaderscollection.Parameters:iIndexThe index of the drawing leader to retrieve from the collection ofdrawing arrows. As a numerics, this index is the rank of the drawing leader inthe collection. The index of the first drawing leader in the collection is 1,and the index of the last drawing leader is Count.Returns:The retrieved drawing viewExample:This example retrieves in ThisDrawingLeader the second drawing leader,in the 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 ThisDrawingLeader As DrawingLeaderSet ThisDrawingLeader = MyView.Leaders.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 leader from the DrawingLeaderscollection.Parameters:iIndexThe index of the drawing leader to remove from the collection ofdrawing leaders. As a numerics, this index is the rank of the drawing leader inthe collection. The index of the first drawing leader in the collection is 1,and the index of the last drawing leader is Count.Example:The following example removes the third drawing leader in the drawingleader collection of the active view of the active document, supposed to be adrawing document.Dim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewMyView.DrawingLeaders.Remove(3)
- Parameters:
i_index (int) –
- Return type:
None