Quick code ========== To show how the ``grantami-bomanalytics`` package works, this brief compliance example shows how to find the percentage content of all SVHCs (substances of very high concern) in an ABS/PVC blend: .. code:: python >>> from pprint import pprint >>> from ansys.grantami.bomanalytics import Connection, queries >>> cxn = Connection(servicelayer_url="http://my_mi_server/mi_servicelayer") \ ... .with_autologon().connect() >>> query = ( ... queries.MaterialImpactedSubstancesQuery() ... .with_material_ids(['plastic-abs-pvc-flame']) ... .with_legislation_ids(['Candidate_AnnexXV']) ... ) >>> result = cxn.run(query) >>> pprint(result.impacted_substances) [, , , ... The sequence of events is as follows: #. Connect to Granta MI. #. Create the appropriate query with the relevant parameters and references. For more information, see :ref:`ref_grantami_bomanalytics_api_index`. #. Run the query. #. Process the results.