Closes and reopens the specified drawing document without unloading its references from memory.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function CloseAndReopen2( _
ByVal Doc As System.Object, _
ByVal Option As System.Integer, _
ByRef NewDoc As System.Object _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim Doc As System.Object
Dim Option As System.Integer
Dim NewDoc As System.Object
Dim value As System.Integer
value = instance.CloseAndReopen2(Doc, Option, NewDoc) |
C# | |
---|
System.int CloseAndReopen2(
System.object Doc,
System.int Option,
out System.object NewDoc
) |
C++/CLI | |
---|
System.int CloseAndReopen2(
& System.Object^ Doc,
& System.int Option,
& [Out] System.Object^ NewDoc
) |
Parameters
- Doc
- IModelDoc2; drawing document to close and reopen
- Option
- Reopen options as defined in swCloseReopenOption_e
- NewDoc
- IModelDoc2; reopened drawing document
Return Value
Error code as defined in
swCloseReopenError_e
Example
Contact SOLIDWORKS API Support to obtain Close and Reopen a Drawing Document (VBA, VB.NET, C#).
Remarks
See Also
Availability
SOLIDWORKS 2022 FCS, Revision Number 30