Skip to main content
Find a list of FEA exporters for a record in a Granta MI database, and export relevant parameter values. This example demonstrates:
  • Retrieving a list of available exporters
  • Retrieving a list exporters applicable to a specific record in a Granta MI database
  • Get the parameters that can be exported for a specific exporter and record combination
  • Run the FEA exporter on the specific record

Create a Granta MI Session

Import the ansys.grantami.backend.soap package, and create a connection to a Granta MI server.

List the available exporters

Retrieve the list of FEA exporters that will export data from the database MI_Training into Ansys Workbench format.
Previous cell output:
Get a record by name.
Previous cell output:

Get exporters for a specific record

Use the engineering data service to find valid FEA exporters for Inconel 718.
Previous cell output:

Get a list of parameters that can be exported

Get the parameters that can be exported from Inconel 718 using an exporter that supports them.
Previous cell output:

Perform an FEA Export

Get all applicable attributes for this record.
If exporting a functional data attribute, you also need to define a parameter value to evaluate the attribute at. Here, a parameter is fixed at 1.337.
Run the FEA exporter, and print the output.
Previous cell output:
Write the output to file. First create an output directory if it doesn’t exist, and then save the XML file into that directory.