BoM helpers#
BoM helpers represent a BoM (bill of materials) in Ansys Granta MI 2301 XML BoM format, and they support reading and writing these files.
The BillOfMaterials
represents the root object in a 24/12 BoM
hierarchy and can be used to programmatically generate a BoM.
Builders are available to help with creation of Granta MI reference objects. These assist in ensuring valid combinations of identifiers. For more information, see BoM reference builders.
Serialization and deserialization of BoM objects can be performed using the
BoMHandler
class. This class exposes methods to read a BoM from a
string or a file and to write to a string or a file. The resulting BoM can be passed to either a Sustainability or a
Compliance query.
Added in version 2.0.