CreateTemplateDoc Method
The CreateTemplateDoc method creates a new template document (.GRT) from a specified source document. This method corresponds to the File | New | Template command in the user interface.
Syntax
object.CreateTemplateDoc( sourceDoc )
Parameter
|
Parameter |
Type |
Description |
|---|---|---|
| sourceDoc | IDispatch* | The ID of the source project document to be used as a template. |
Example
The following example demonstrates how to open an existing project and convert it into a new template document.
'Open an existing document
Set Plot1 = Grapher.Documents.Open("C:\Temp\SourcePlot.gpj")
'Create a new template document from the source document
Set TemplateDoc = Grapher.Documents.CreateTemplateDoc(Plot1)
Used by: Documents Collection