Opens an existing document and returns a pointer to the document object.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function OpenDoc6( _
ByVal FileName As System.String, _
ByVal Type As System.Integer, _
ByVal Options As System.Integer, _
ByVal Configuration As System.String, _
ByRef Errors As System.Integer, _
ByRef Warnings As System.Integer _
) As ModelDoc2 |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim FileName As System.String
Dim Type As System.Integer
Dim Options As System.Integer
Dim Configuration As System.String
Dim Errors As System.Integer
Dim Warnings As System.Integer
Dim value As ModelDoc2
value = instance.OpenDoc6(FileName, Type, Options, Configuration, Errors, Warnings) |
Parameters
- FileName
Document name or full path if not in current directory, including extension
- Type
Document type as defined in swDocumentTypes_e
- Options
Mode in which to open the document as defined in swOpenDocOptions_e
- Configuration
Model configuration in which to open this document
- Errors
Load errors as defined in swFileLoadError_e (See Remarks)
- Warnings
Warnings or extra information generated during the open operation as defined in swFileLoadWarning_e
Return Value
Newly loaded
model document or NULL if document failed to open
Example
Remarks
See Also
Availability
SOLIDWORKS 2001Plus FCS, Revision Number 10.0