IsFakeDocument

<< Click to Display Table of Contents >>

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

IsFakeDocument

Description

Checks if the passed document is an entry for the BOM (also referred asfake/virtual documents).

Syntax

call DBWShell("IsFakeDocument UniqueID [parent_UID]")

Parameters

UniqueID

unique id of the document

parent_UID

Optional. Unique id of the parent document; when not passed as argument, the command checks on all possible parents.

Results

@IS_FAKE_DOCUMENT

0: it is normal record
1: it is a fake part

Example

...
call DBWShell("CurrentDocument")
docUId = DBWResult("@DOCUMENT_UNIQUE_ID")
call DBWShell("IsFakeDocument " & docUId)
isFake = DBWResult("@IS_FAKE_DOCUMENT")
...