|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > BOM > IsFakeDocument |
Checks if the passed document is an entry for the BOM (also referred asfake/virtual documents).
call DBWShell("IsFakeDocument UniqueID [parent_UID]")
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. |
@IS_FAKE_DOCUMENT |
0: it is normal record |
...
call DBWShell("CurrentDocument")
docUId = DBWResult("@DOCUMENT_UNIQUE_ID")
call DBWShell("IsFakeDocument " & docUId)
isFake = DBWResult("@IS_FAKE_DOCUMENT")
...