DBWComposedOf

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > Database >

DBWComposedOf

Description

Returns component documents of a specified one.

Syntax

Function DBWComposedOf(DocUid, DocTypebyref LastDocUidbyref Num_of_docbyref DocsUidIdArray)

Parameter

DocUid

document to search components about

DocType

a filter to select only a certain type of document among componing documents

Return values

The function assumes the values of the last (if more than one) document id found.

LastDocUid

uid of the last componing document found

Num_of_doc

number of componing document

DocsUidIdArray

array containing componing documents unique ids.

Example

Sub main()
 last_doc_id = DBWComposedOf("246","P",last_doc_uid, num_of_doc, doc_array)
end sub