GetSheets2 Method (IDocument) Send Feedback
See Also  Example
SheetArray[out]
Array of Sheets
Gets the Sheets for the document.

Syntax

Visual Basic 
Function GetSheets2() As System.Object
C# 
System.object GetSheets2()
JavaScript 
GetSheets2() : Array
COM native C++ 
HRESULT GetSheets2(
   VARIANT* SheetArray
)  
C++ 
DSRESULT GetSheets2(
   dsObjectPtrArray* SheetArray
)  

Parameters

SheetArray[out] or Return Value
Array of Sheets

Example

This code snippet shows how to get the Sheets in a document.

COM native C++

_variant_t pVariantArray = dsDoc->GetSheets2();
    if( V_VT( &pVariantArray ) != VT_EMPTY )

    {

                . . .

    }

Example

Remarks

The difference between this method and the now obsolete IDocument::GetSheets is that the obsolete method returned the model as the first element in the array. This method returns all of the Sheets in the drawing, excluding the model.

 

See Also

Availability

DraftSight V1R6.0