.NET Framework Class Library
CADSystem.ReplaceReferencedConfiguration Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > CADSystem Class > CADSystem Methods >

.NET Framework Class Library
CADSystem.ReplaceReferencedConfiguration Method

Replaces in an assembly file a specific configuration of a component with another configuration of a different component.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Sub ReplaceReferencedConfiguration ( _

 asmPath As String, _
 asmCfg As String, _
 componentToBeReplacedPath As String, _
 componentToBeReplacedCfg As String, _
 replacingComponentPath As String, _
 replacingComponentCfg As String _
)

C#

public void ReplaceReferencedConfiguration(

 string asmPath,
 string asmCfg,
 string componentToBeReplacedPath,
 string componentToBeReplacedCfg,
 string replacingComponentPath,
 string replacingComponentCfg
)

Visual C++

public:

void ReplaceReferencedConfiguration(
 StringasmPath,
 StringasmCfg,
 StringcomponentToBeReplacedPath,
 StringcomponentToBeReplacedCfg,
 StringreplacingComponentPath,
 StringreplacingComponentCfg
)

JavaScript

function replaceReferencedConfiguration(asmPathasmCfgcomponentToBeReplacedPathcomponentToBeReplacedCfgreplacingComponentPathreplacingComponentCfg);

Parameters

asmPath

Type: System.String
the containing assembly path

asmCfg

Type: System.String
the containing assembly configuration

componentToBeReplacedPath

Type: System.String
the path of the component to be replaced in the assembly

componentToBeReplacedCfg

Type: System.String
the specific configuration of the component to be replaced in the assembly

replacingComponentPath

Type: System.String
the path of the replacing component in the assembly

replacingComponentCfg

Type: System.String
the specific configuration of the replacing component in the assembly

Remarks

Available only on SolidWorks files.

See Also

CADSystem Class

CADSystem Members

MwPDMApi Namespace