-
Reads a document stored in a file.
This method has to be used only for Browse purpose,
for instance to retrieve Product properties.
Be careful, it doesn't open any editor (no visualization, no
undo/redo capabilities...)
As soon as you want to modify the V5 document, you have to use
the VB Open method collection.
If this solution is not satisfactory because it opens an
editor for every document, you have to move to C++ and use the CAA methods
CATDocumentServices::Open and CATDocumentServices::SaveAs with the same file
name as the initial one.
- Parameters:
-
- iFileName
- The name of the file containing the document
- Returns:
- The retrieved document
- Example:
-
The following example reads the Doc document
contained in the FileToOpen file.
FileToOpen = "e:\users\psr\Parts\ThisIsANicePart.CATPart"
Dim Doc As Document
Set Doc = Documents.Read(FileToOpen)
Copyright © 2003, Dassault Systèmes. All rights reserved.