All Frameworks  Object Hierarchy  This Framework  Indexes   

DrawingRoot (Object)

Represents the drawing object in drawing documents.

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

Property Index

ActiveSheet
Retrieves or sets the active sheet of the drawing.
Parameters
Returns the collection of parameters of the drawing document.
Relations
Returns the collection of relations of the drawing document.
Sheets
Returns the collection of drawing sheets of the drawing document.
Standard
Returns or sets the drawing standard of the drawing document.

Method Index

Isolate
Isolates all the drawing views of all the drawing sheets of the drawing document.
Update
Updates all the drawing sheets of the drawing document.
reorder_Sheets
Changes the positions of the sheets in this drawing according to the given ordered list.

Properties


o 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
 
o 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
 
o 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
 
o 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
 
o 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


o 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
 
o 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
 
o 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)
 

Copyright © 2003, Dassault Systèmes. All rights reserved.