Closes and reopens the specified drawing document without unloading its references from memory.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function CloseAndReopen( _
ByVal Doc As ModelDoc2, _
ByVal Option As System.Integer, _
ByRef NewDoc As ModelDoc2 _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim Doc As ModelDoc2
Dim Option As System.Integer
Dim NewDoc As ModelDoc2
Dim value As System.Integer
value = instance.CloseAndReopen(Doc, Option, NewDoc) |
C# | |
---|
System.int CloseAndReopen(
ModelDoc2 Doc,
System.int Option,
out ModelDoc2 NewDoc
) |
C++/CLI | |
---|
System.int CloseAndReopen(
& ModelDoc2^ Doc,
& System.int Option,
& [Out] ModelDoc2^ 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
Download Close and Reopen a Drawing Document (VBA, VB.NET, C#) from the SOLIDWORKS API forum. You must be a SOLIDWORKS subscription customer to access the SOLIDWORKS API forum's documents.
Remarks
See Also
Availability
SOLIDWORKS 2012 FCS, Revision Number 20.0