Reloads or replaces this model document.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim ReadOnly As System.Boolean
Dim ReplaceFileName As System.String
Dim DiscardChanges As System.Boolean
Dim ForceReload As System.Boolean
Dim value As System.Integer
value = instance.ReloadOrReplace(ReadOnly, ReplaceFileName, DiscardChanges, ForceReload) |
Parameters
- ReadOnly
- True to set the model document read-only after reload or replace, false to allow write access
- ReplaceFileName
Replacement model document; null or Nothing to reload the current 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)
- ForceReload
- True to force the reload, false to not
Return Value
Error codes as defined by swComponentReloadError_e
Example
Remarks
See Also
Availability
SOLIDWORKS 2022 FCS, Revision Number 30