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 ReAttachMates As System.Boolean
Dim value As System.Boolean
value = instance.ReplaceComponents(FileName, ConfigName, ReplaceAllInstance, ReAttachMates) |
Parameters
- FileName
- Path and new file name
- ConfigName
- Name of configuration
- ReplaceAllInstance
- True if all instances should be replaced, false if not
- ReAttachMates
- True if all of the mates should be reattached if the component is found in the subassembly component, false if not
Return Value
True if the component was successfully replaced, false if not
Example
Remarks
See Also
Availability
SOLIDWORKS 2003 FCS, Revision Number 11.0