IPdm::CreateModel



Your Ad Here

Description

This method allows you to create a new document and get its model without opening.

Syntax

Model = CreateModel( 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: (IModel) Model

Model of 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".

Return to Cimatron Index


Your Ad Here