GetUniqueIdFromRelatedDocuments

<< Click to Display Table of Contents >>

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

GetUniqueIdFromRelatedDocuments

Description

Gets the list of the document uniqued ids related to the assigned document unique id;
the list is calculated by the Drawing↔Part Link Mode functionality.

Syntax

call DBWShell("GetUniqueIdFromRelatedDocuments UniqueID [CheckStateAndRev]")

Parameters

UniqueID

unique id of the document to look related documents for.

CheckStateAndRev

Optional.
0: the command returns the list of related documents unique IDs without a strong check on the state/revision, so just returning the links as recorded in the PARENT_CHILD table
1: the command returns the list of related documents uids resulted suitable also after a strong check

Results

@RELATED_DOCUMENTS_ID_LIST

list of related documents ids

Example

DBWShell ("GetUniqueIdFromRelatedDocuments 74 0")

uidList = DBWResult("@RELATED_DOCUMENTS_UID_LIST")
DBWMsgBox "Related Documents Uid List = " & uidList