Skip to main content
Search a Granta MI database for records containing a specified text value. This example demonstrates:
  • Creating a connection to a Granta MI server
  • Retrieving Granta MI databases from the server
  • Searching a Granta MI database with the SimpleTextSearch operation

Create a Granta MI Session

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

Select a database

View the databases available on your Granta MI server.
Previous cell output:

Search a database

Search in the MI Training database for records containing the text Leather.
Print the results returned by the search.
Previous cell output: