DrawingRoot (Object)

Represents the drawing object in drawing documents.

Warning: This interface is not available with 2D Layout for 3D Design.

Properties


Property ActiveSheet() As
Retrieves or sets the active sheet of the drawing.
Warning: This method is not available with 2D Layout for 3D Design.
Example:
This example retrieves the active sheet in the drawing of the active document, supposed to be a drawing document.
 CATIA.ActiveDocument.DrawingRoot.GetActiveSheet
 
Property Parameters() As (Read Only)
Returns the collection of parameters of the drawing document.
Warning: This method is not available with 2D Layout for 3D Design.
Example:
 This example retrieves in DrawingParameters the collection of
 parameters currently managed by the active document, supposed to be a
 drawing document.
 
 Dim DrawingParameters As Parameters
 Set DrawingParameters = CATIA.ActiveDocument.Parameters
 
Property Relations() As (Read Only)
Returns the collection of relations of the drawing document.
Warning: This method is not available with 2D Layout for 3D Design.
Example:
 This example retrieves in DrawingRelations the collection of
 relations currently managed by the active document, supposed to be a
 drawing document.
 
 Dim DrawingRelations As Relations
 Set DrawingRelations = CATIA.ActiveDocument.Relations
 
Property Sheets() As (Read Only)
Returns the collection of drawing sheets of the drawing document.
Warning: This method is not available with 2D Layout for 3D Design.
Example:
This example retrieves in SheetCollection the collection of sheets currently managed by the active document, supposed to be a drawing document.
 Dim SheetCollection As DrawingSheets
 Set SheetCollection = CATIA.ActiveDocument.Sheets
 
Property Standard() As
Returns or sets the drawing standard of the drawing document.
Warning: This method is not available with 2D Layout for 3D Design.
Example:
This example sets the drawing standard of the active document, supposed to be a drawing document, to ISO.
 CATIA.ActiveDocument.Standard = catISO
 

Methods


Sub Isolate()
Isolates all the drawing views of all the drawing sheets of the drawing document.
Warning: This method is not available with 2D Layout for 3D Design.
Example:
This example isolates all the drawing views of all the drawing sheets of the active document, supposed to be a drawing document.
 CATIA.ActiveDocument.Isolate
 
Sub Update()
Updates all the drawing sheets of the drawing document.
Warning: This method is not available with 2D Layout for 3D Design.
Example:
This example updates the active document, supposed to be a drawing document.
 CATIA.ActiveDocument.Update
 
Sub reorder_Sheets( iOrderedSheets)
Changes the positions of the sheets in this drawing according to the given ordered list. iOrderedSheets is the result of a permutation applied to the list of all the sheets of this drawing, with the following constraint: For every non-detail sheet, there is not any detail sheet appearing before in iOrderedSheets.
Example:
This example inverts the sheet order of a drawing made of exactly two regular sheets.
 Set drwsheets = CATIA.ActiveDocument.Sheets
 Set drwsheetsorder =  CATIA.ActiveDocument.DrawingRoot
 Set sheet1 = drwsheets.item(1)
 Set sheet2 = drwsheets.item(2)
 newsheetorder = Array(sheet2, sheet1)
 drwsheetsorder.reorder_Sheets(newsheetorder)