.NET Framework Class Library
BOM.CreateNewBomItem Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > BOM Class > BOM Methods >

.NET Framework Class Library
BOM.CreateNewBomItem Method

Creates a new child item only for BOM purposes.

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

Syntax

Visual Basic

Public Function CreateNewBomItem ( _

docType As DocType, _
docId As String, _
instances As Integer, _
fileName As String, _
Optional parentUid As String = "", _
Optional makeBuy As String = "" _
) As String

C#

public string CreateNewBomItem(

DocType docType,
string docId,
int instances,
string fileName,
string parentUid = "",
string makeBuy = ""
)

Visual C++

public:

String^ CreateNewBomItem(
DocType docType,
String^ docId,
int instances,
String^ fileName,
String^ parentUid = L"",
String^ makeBuy = L""
)

JavaScript

function createNewBomItem(docType, docId, instances, fileName, parentUid, makeBuy);

Parameters

docType

Type: MwPDMApi.DocType
type of document

docId

Type: System.String
document id

instances

Type: System.Int32
document number of instances to show in the BOM

fileName

Type: System.String
file name (even if the file doesn't exist).

parentUid (Optional)

Type: System.String
Optional. Document unique id.

makeBuy (Optional)

Type: System.String
Optional. The MAKE_BUY field value for the new record being created (used if parentUid is specified)

Return Value

the unique_id of the created bom item

Remarks

If no parentUid is specified, the browser must be open, Tree Page must be active and a document must be selected.

See Also

BOM Class

BOM Members

MwPDMApi Namespace