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 String, _
ByVal Silent As Boolean, _
ByRef Errors As Integer _
) As ModelDoc2 |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim Name As String
Dim Silent As Boolean
Dim Errors As Integer
Dim value As ModelDoc2
value = instance.IActivateDoc3(Name, Silent, Errors)
|
C++/CLI | |
---|
ModelDoc2^ IActivateDoc3(
& String^ Name,
& bool Silent,
& [Out] 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