Replaces one or more selected components with another model.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IAssemblyDoc
Dim FileName As System.String
Dim ConfigName As System.String
Dim ReplaceAllInstance As System.Boolean
Dim UseConfigChoice As System.Integer
Dim ReAttachMates As System.Boolean
Dim value As System.Boolean
value = instance.ReplaceComponents2(FileName, ConfigName, ReplaceAllInstance, UseConfigChoice, ReAttachMates) |
Parameters
- FileName
- Path and file name of the replacement component
- ConfigName
- Name of a configuration in the replacement component; an emtpy string indicates the default configuration of the replacement component
- ReplaceAllInstance
- True to replace all instances of the selected components with the replacement component, false to not
- UseConfigChoice
Configuration to use as defined in swReplaceComponentsConfiguration_e
- ReAttachMates
- True to reattach existing mates to the replacement component, false to not
Return Value
True if the selected components are replaced, false if not
Example
Remarks
See Also
Availability
SOLIDWORKS 2017 FCS, Revision Number 25.0