Skip to main content

Module bom_compare

Module bom_compare 

Source
Expand description

BOM comparison between two revisions (Teamcenter’s structure compare): which lines were added, removed or changed (quantity, find number, notes and, over all levels, the resolved child revision). Lines are matched by child item and find number first, then by child item. Over all levels, the children of two matched lines are compared the same way, and an added or removed line brings its whole sub-tree.

Structs§

LineDiff
One child of either BOM.
LineValues
Summary
Counts of a comparison, for the summary line.

Enums§

Change
Depth
How deep a comparison goes: the direct BOM lines or every level.

Functions§

compare
Compares the BOMs of two revisions: the direct lines, or every level with each child resolved by rule.
default_rule
Default revision rule of a comparison over all levels (states of the two revisions). Latest and Latest released resolve a child by its item alone, so both sides always get the same child revision and sub-tree; only As released uses the child revisions a released parent was released with. Without a released side, Latest still shows children that were never released.
diff
Compares the BOM lines before with after (pure, see compare).
diff_trees
Compares two expanded BOMs over all levels (pure, see compare); the rows follow the structure, children right below their line.
summary
to_xlsx
Builds the comparison as an .xlsx workbook: a header row and one row per line (child numbers indented by level), with the values of the older and the newer revision side by side.