Skip to main content

Interface: BomVariable

A variable in the Bill of Materials calculation.

This interface represents a dynamic variable used in BOM calculations to determine component quantities, sizes, or other variable properties. Variables are typically derived from product configuration options.

Properties

name

name: string

Identifier for this variable.

This name is used in BOM patterns and formulas to reference the variable.


pattern

pattern: string

Pattern used to extract this variable's value.

This defines how the variable's value is derived from the product configuration, typically using a pattern matching approach.


value

value: string

Current value of the variable for the active configuration.

This is the extracted value that will be used in BOM calculations based on the current product configuration.