pycatia.drafting_interfaces.drawing_root¶
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_root.DrawingRoot(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDrawingRootRepresents the drawing object in drawing documents.Warning: This interface is not available with 2D Layout for 3DDesign.- property active_sheet: DrawingSheet¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ActiveSheet() As DrawingSheetRetrieves or sets the active sheet of the drawing.Warning: This method is not available with 2D Layout for 3DDesign.Example:This example retrieves the active sheet in the drawing of the activedocument, supposed to be a drawing document.CATIA.ActiveDocument.DrawingRoot.GetActiveSheet
- Return type:
- reorder_sheets(i_ordered_sheets: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub reorder_Sheets(CATSafeArrayVariant iOrderedSheets)Changes the positions of the sheets in this drawing according to the givenordered list. iOrderedSheets is the result of a permutation applied to the listof all the sheets of this drawing, with the following constraint: For everynon-detail sheet, there is not any detail sheet appearing before iniOrderedSheets.Example:This example inverts the sheet order of a drawing made of exactly tworegular sheets.Set drwsheets = CATIA.ActiveDocument.SheetsSet drwsheetsorder = CATIA.ActiveDocument.DrawingRootSet sheet1 = drwsheets.item(1)Set sheet2 = drwsheets.item(2)newsheetorder = Array(sheet2, sheet1)drwsheetsorder.reorder_Sheets(newsheetorder)
- Parameters:
i_ordered_sheets (tuple) –
- Return type:
None