pycatia.drafting_interfaces.drawing_threads¶
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_threads.DrawingThreads(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionDrawingThreadsA collection of all the drawing threads currently managed by a drawing view ofdrawing sheet in a drawing document.- add(i_geom_elem) DrawingThread ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Add(CATBaseDispatch iGeomElem) As DrawingThreadCreates a drawing thread and adds it to the DrawingThreadscollection.Parameters:iGeomElemGeometry to create the thread on. Be careful, this geometry must bea 2D geometryReturns:The created drawing threadExample:The following example creates a drawing thread and retrieved in MyThread inthe drawing view collection of the MyView drawing view. This view belongs tothe drawing view collection of the drawing sheetDim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewDim MyThread As DrawingThreadSet MyThread = MyView.Threads.Add(iGeomElem)
- Parameters:
i_geom_elem –
- Return type:
- item(i_index: int) DrawingThread ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Item(long iIndex) As DrawingThreadReturns a drawing thread using its index from the DrawingThreadscollection.Parameters:iIndexThe index of the drawing thread to retrieve from the collection ofdrawing threads. As a numerics, this index is the rank of the drawing thread inthe collection. The index of the first drawing thread in the collection is 1,and the index of the last drawing thread is Count.Returns:The retrieved drawing threadExample:This example retrieves in ThisDrawingThread the second drawing thread,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 ThisDrawingThread As DrawingThreadSet ThisDrawingThread = MyView.Threads.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 thread from the DrawingThreadscollection.Parameters:iIndexThe index of the drawing thread to remove from the collection ofdrawing threads. As a numerics, this index is the rank of the drawing thread inthe collection. The index of the first drawing thread in the collection is 1,and the index of the last drawing thread is Count.Example:The following example removes the third drawing thread in the drawingthread collection of the active view of the active document, supposed to be adrawing document.Dim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewMyView.DrawingThreads.Remove(3)
- Parameters:
i_index (int) –
- Return type:
None