pycatia.drafting_interfaces.drawing_tables¶
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_tables.DrawingTables(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionDrawingTablesA collection of all the drawing tables currently managed by a drawing view ofdrawing sheet in a drawing document.- add(i_position_x: float, i_position_y: float, i_number_of_row: int, i_number_of_column: int, i_row_height: float, i_column_width: float) DrawingTable ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Add(double iPositionX,double iPositionY,long iNumberOfRow,long iNumberOfColumn,double iRowHeight,double iColumnWidth) As DrawingTableCreates a drawing table and adds it to the DrawingTablescollection.Parameters:iPositionX,iPositionYThe drawing table x and y coordinates, expressed in millimeters,with respect to the drawing view coordinate systemiNumberOfRow,iNumberOfColumnThe drawing table number of rows and columnsiRowHeight,iColumnWidthThe row height and the column widthReturns:The created drawing tableExample:The following example creates an empty drawing table and retrieves it inMyTable in the drawing table collection of the active view MyView of thedrawing sheet MySheet.Dim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewDim MyTable As DrawingTableSet MyTable = MyView.Tables.Add(100., 100., 2, 2, 20., 50.)
- Parameters:
i_position_x (float) –
i_position_y (float) –
i_number_of_row (int) –
i_number_of_column (int) –
i_row_height (float) –
i_column_width (float) –
- Return type:
- item(i_index: int) DrawingTable ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Item(long iIndex) As DrawingTableReturns a drawing table using its index from the DrawingTablescollection.Parameters:iIndexThe index of the drawing table to retrieve from the collection ofdrawing tables. As a numerics, this index is the rank of the drawing table inthe collection. The index of the first drawing table in the collection is 1,and the index of the last drawing table is Count.Returns:The retrieved drawing tableExample:This example retrieves in ThisDrawingTable the second drawing table, 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 ThisDrawingTable As DrawingTableSet ThisDrawingTable = MyView.Tables.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 table from the DrawingTables collection.Parameters:iIndexThe index of the drawing table to remove from the collection ofdrawing tables. As a numerics, this index is the rank of the drawing table inthe collection. The index of the first drawing table in the collection is 1,and the index of the last drawing table is Count.Example:The following example removes the third drawing table in the drawingtable collection of the active view of the active document, supposed to be adrawing document.Dim MyView As DrawingViewSet MyView = MySheet.Views.ActiveViewMyView.DrawingTables.Remove(3)
- Parameters:
i_index (int) –
- Returns:
None