Opens an existing document and returns a pointer to the document object.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function OpenDoc6( _
ByVal FileName As String, _
ByVal Type As Integer, _
ByVal Options As Integer, _
ByVal Configuration As String, _
ByRef Errors As Integer, _
ByRef Warnings As Integer _
) As ModelDoc2 |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim FileName As String
Dim Type As Integer
Dim Options As Integer
Dim Configuration As String
Dim Errors As Integer
Dim Warnings As 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
- 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