Activates a document that has already been loaded. This file becomes the active document, and this method returns a pointer to that document object.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function IActivateDoc3( _
ByVal Name As System.String, _
ByVal Silent As System.Boolean, _
ByRef Errors As System.Integer _
) As ModelDoc2 |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim Name As System.String
Dim Silent As System.Boolean
Dim Errors As System.Integer
Dim value As ModelDoc2
value = instance.IActivateDoc3(Name, Silent, Errors) |
C# | |
---|
ModelDoc2 IActivateDoc3(
System.string Name,
System.bool Silent,
out System.int Errors
) |
C++/CLI | |
---|
ModelDoc2^ IActivateDoc3(
& System.String^ Name,
& System.bool Silent,
& [Out] System.int Errors
) |
Parameters
- Name
Name of document to activate
- Silent
True if dialogs and warning messages should be avoided; false if dialogs and warning messages should be displayed to the end-user
- Errors
Status of the document activate operation as defined in swActivateDocError_e; if no errors or warnings are encountered, this value is set to 0
Return Value
Model document
Example
Remarks
See Also
Availability
SOLIDWORKS 2001Plus FCS, Revision Number 10.0