Replaces a component within the current model.
This task allows the replacement of:
Components with the same name but different type can be swapped.
/source/componentA.sldprt cannot be replaced with /target/componentA.sldprt
/source/componentA.sldprt can be replaced with /target/componentA.sldasm
|(Name)||The unique name for this task.|
|Component Name||The name of the top level component in the assembly to be replaced, including its instance number.|
|Replacement File Path||The replacement file path including its extension. This can be a full path, otherwise it will be considered relative to the driven assembly path.|
|Configuration Match||Use specified configuration name or let SOLIDWORKS attempt to match configurations of the old component with a configuration in the replacement component.|
|Configuration Name||The name of a configuration in the replacement component. The components default configuration will be used if left empty.|
Instance Name Syntax
Instances are suffixed immediately after the component name (no space), with a dash and then the instance number.
For a component that appears in the SOLIDWORKS Feature Manager (after DriveWorks Model Generation) as - Part1 MyProject 0004<1>
Would be referenced as:
Part1 MyProject 0004-1
This task is easier to implement if instances are listed in numeric order in the SOLIDWORKS Feature Manager.
Instance <1> - is the first instance.
Instance <2> - is the second instance.
Instance <3> - is the third instance.
Unordered instances are renumbered, by SOLIDWORKS, when the assembly is driven.
If instances do not follow an order we recommend generating a new clone and noting the new instance numbers to be driven.
|Property Name||Example Rule||Example Result||Meaning|
|Configuration Match||UseSpecified||Will use the Configuration specified in the Configuration Name property.
When this property is set to MatchName, the configuration of the replacement file will be switched to match the configuration of the file to be replaced (if it exists).
|Configuration Name||ColorReturn||Red||Will switch the configuration in the replacement file to the configuration named Red|
|Component Name||"Bracket " & DWSpecification & "-2"||Bracket Canopy Assembly 0006 -2||Will replace the second (-2) instance in the assembly.|
|Replacement File Path||"D:\DriveWorks\Part2.SLDPRT"||D:\DriveWorks\Part2.SLDPRT||Will use this file as the replacement file.|