powergate:code_reference:commandlets:show-bomwindow:objects:bomrow

BomRow

The BomRow object is of type PsObject and represents an individual row in a BOM.

$bomRows are generated based on the result of the Get-BomRows function and therefore they are usually extended powerVault FileBomRows or powerVault ItemBomRows.

$bomRow.Bom_Number

Following properties are always available :

TypeNameDescription
Status_StatusThe current status of the BomRow that is displayed in the 'Status' column in the BOM Tab.
string_TooltipThe BomRow's tooltip message that is displayed when hovering over the status icon in the BOM Tab.
stringBom_NumberThe number of the row, that gets displayed in the BOM Tab column 'Number'.
double / stringBom_PositionNumberThe position in the BOM, that gets displayed in the BOM Tab column 'Position'.
doubleBom_QuantityThe quantity of the row, that gets displayed in the BOM Tab column 'Quantity'.
string_NameThe name of the according item of the row, that gets displayed in the BOM Tab column 'Name'.

$bomRows of a specific BOM can be retrieved directly via the Children property on the according $bom variable.

BOM Properties

BOM properties can only be displayed in the BOM Tab, because they can provide additional information for an Item instance in the BOM.
This could simply be the different positions of the same instance of an Item in the whole BOM.
These properties are declared with the 'Bom_' prefix.

At least following standard properties should always be available: Bom_Number,Bom_PositionNumber and Bom_Quantity.

All the other BOM properties are custom properties that can be additionally displayed in the BOM Tab without the 'Bom_' prefix.
For example Bom_Unit or all the other dynamically generated 'Bom_' members of a powerVault FileBomRow or ItemBomRow.

Entity Properties

Entity properties are displayed in both: the BOM Tab and the Item Tab, and they provide directly the information of the according Item.
This could be e.g. the item's name, which is always the same for all the different instances of an item in the BOM.
Entity properties are all the properties declared with simple names (not starting with the prefix 'Bom_') e.g. _Name, Description, _Category, ….

BomRows with a linked Item do provide only one standard properties: _Name.

All the other properties are custom properties that can be additionally displayed in both the BOM Tab and Item Tab
For example Description, _Category or all the other dynamically generated members of a powerVault File or Item.