Reloads or replaces the current model document.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function ReloadOrReplace( _
ByVal ReadOnly As System.Boolean, _
ByVal ReplaceFileName As System.String, _
ByVal DiscardChanges As System.Boolean _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim ReadOnly As System.Boolean
Dim ReplaceFileName As System.String
Dim DiscardChanges As System.Boolean
Dim value As System.Integer
value = instance.ReloadOrReplace(ReadOnly, ReplaceFileName, DiscardChanges) |
Parameters
- ReadOnly
True if the model document is read-only, false if not
- ReplaceFileName
Replacement model document
- DiscardChanges
True to discard changes made to the current model document, false to abort operation if the model document was changed (see Remarks)
Return Value
Error codes as defined by swComponentReloadError_e
Example
Remarks
See Also
Availability
SOLIDWORKS 2001Plus FCS, Revision Number 10.0