API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.CreateDocumentFrom method
Creates a copy of a document containing the shapes in the range
Syntax:
Function CreateDocumentFrom(Optional ByVal TemporaryDocument As Boolean = False) As Document
Parameters:
Name Type Description
TemporaryDocument
Boolean
Specifies whether the document is temporary. The default for this Boolean value is False.
Remarks:
The CreateDocumentFrom method creates a copy of the document that contains a shape range.