.NET Framework Class Library
Component.ReplaceSelectedComponents Method
|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > .NET API > MwPDMApi Namespace > Component Class > Component Methods > .NET Framework Class Library |
Replaces the currently selected components in the currently opened assembly with the passed unique_id one or with the one currently selected in the browser.
Namespace: MwPDMApi
Assembly: MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
|---|
Public Sub ReplaceSelectedComponents ( _ Optional docUid As String = "", _ |
C# |
|---|
public void ReplaceSelectedComponents( string docUid = "", |
Visual C++ |
|---|
public: void ReplaceSelectedComponents( |
JavaScript |
|---|
function replaceSelectedComponents(docUid, rMode); |
Parameters
docUid (Optional)
Type: System.String
Optional. The unique id of the component to add
rMode (Optional)
Type: MwPDMApi.ReplaceType
Optional. If true, all the instances of the selected component will be replaced (used if docUid is specified)
Remarks
If no unique id is passed, DBWorks browser must be open
See Also