|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > BOM > GetBomPositionNumber |
Returns in the result @BOM_POSITION_NUMBER the position number of the the document with unique identifier child_unique_id in the BOM of the document with unique identifier parent_unique_id.
Returns also in the result @IS_BOM_ITEM ( as 1 ) if the item is a BOM ITEM ( negative parent-child indexes ) or not.
call DBWShell("GetBomPositionNumber ChildUID ParentUID")
ChildUID |
It is the child document Unique Id |
|---|---|
ParentUID |
It is the parent document Unique Id |
@BOM_POSITION_NUMBER |
position number of the document in the BOM list |
|---|---|
@IS_BOM_ITEM |
If 1, the item is a BOM ITEM (negative parent-child indexes). |
DBWShell("GetBOMPositionNumber 13 27")
PosNr = DBWResult("@BOM_POSITION_NUMBER")
IsBomItem = DBWResult("@IS_BOM_ITEM")