Replaces the specified instances of a model in the specified drawing views.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function ReplaceViewModel( _
ByVal NewModelPathName As System.String, _
ByVal Views As System.Object, _
ByVal Instances As System.Object _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IDrawingDoc
Dim NewModelPathName As System.String
Dim Views As System.Object
Dim Instances As System.Object
Dim value As System.Boolean
value = instance.ReplaceViewModel(NewModelPathName, Views, Instances) |
Parameters
- NewModelPathName
- Full path and filename of the replacement model
- Views
- Array of IViews in which to replace the model
- Instances
- Array of IComponent2s that are specific instances of the model to replace in the drawing
Return Value
True if the model is replaced, false if not
Example
Remarks
See Also
Availability
SOLIDWORKS 2014 FCS, Revision Number 22.0