Examples#
The following examples demonstrate key aspects of Granta MI BoM Analytics.
To run these examples, install dependencies with this code:
pip install ansys-grantami-bomanalytics[examples]
Basic usage example
How to connect to Granta MI and perform a basic query
Database-specific configuration
How to configure BoM Analytics for a customized database
Impacted substances examples
How to perform impacted substance queries for materials, parts, and BoMs
Compliance examples
How to perform compliance substance queries for substances, materials, parts, and with external data sources
Sustainability examples
How to perform sustainability queries and to analyze the results
Sustainability summary examples
How to perform sustainability summary queries and to analyze the results
BoM examples
How to create XML BoMs