Topsolid online Help Index
Created : v6.5
IDocument = IDocuments.Add(Template)
This method creates a new document from scratch or by using a given template.
To create a new document from scratch, just give the extension of the type of file you want to create (for example, to create a new design document, use Template = "top", to create a new draft document use Template = "dft", ...).
To use a given template, just give the name of the template file (including extension) as Template parameter (for example Template = "MyTemplate.top").
|
IN: |
String Template |
Name of template file with extension, or just extension.
|
|
RET: |
Document created.
|
Creating a new document from scratch is equivalent to using the "File | New" menu function of TopSolid, in the mode "Without template", and accepting the default options in the final dialog box.
When giving the name of a template file, the file is searched sequentially in the following directories : $TOPCONFIG\template, $TOPGROUP\template, $TOPHOME\local\$TOPLANG\template (if the file is not found, the method fails).
The document created is automatically made visible.
Creating a new design document.
Topsolid online Help Index