Description
This method allows you to create a new document.
Syntax
Document = CreateDocument( DocumentPath, DocumentType, DocumentUnit );
|
Input: (String) DocumentPath |
Path and name of new document. |
|
Input: (DocumentEnumType) DocumentType |
Type of new document. |
|
Input: (DocumentEnumUnit) DocumentUnit |
New document units. |
|
Return: (IDocument) Document |
Created document. |
Note
A path to a new document is the same string as in the Cimatron E Browser. For example \ Documents\Location\Folder\DocumentToCreate.
If the path is not supplied, then a document will be created and when you close it you will get the Cimatron E Browser dialog to select the path.
If a document already exists with the same name as the new file, you will get its name, an underscore and an ordinal number. For example, if the file name "Test" already exists, then the file will be saved as "Test#1".