Topsolid online Help Index
Created : v6.5
IDocument = IDocuments.Open(Name, Type, Documents)
This method opens an existing document.
|
IN: |
String Name |
Name of file, including its path and extension.
|
|
IN:
|
String Type |
Type of document to produce defined by its extension, or empty string for automatic (optional, default = Empty). |
|
OUT:
|
Variant Documents |
Documents opened (optional). |
|
RET: |
Document opened, or Nothing if none.
|
As the TopSolid "File | Open" command, this method allows to both open a TopSolid application document (Design, Draft, Mold, CAM, ...), and import an external format file (the available translators will depend on your TopSolid configuration : IGES, STEP, ...) into a new document.
In the second case, several documents may be produced (for instance, some IGES files contain a 3D model and a draft), which are returned in the "Documents" variant array.
When importing an external format file, it is possible to choose the type of TopSolid document produced by giving the extension of the document in the "Type" parameter (for instance, to import an XT file into a new CAM document, use Type = "cam").
Opening a document, Importing an IGES file.
Topsolid online Help Index