Skip to main content
View tabular data information, and export the values from a record. Create a new record containing tabular data, and import this into a Granta MI database. This example demonstrates:
  • Get tabular data attribute information from a Granta MI database
  • Export tabular data from a record
  • Import a new record and contains tabular data
  • Update tabular data for a record in a database

Create a Granta MI Session

Import the GRANTA_MIScriptingToolkit package, and create a connection to a Granta MI server.

Get tabular data attribute information

Search for the record “Shore A75, flame retarded” in the “MI_Training” database.
Use the browse service to get the column headers for the tabular data attribute “Specifications”.
Previous cell output:

Export tabular data

Perform a data export request to get column data for the tabular data attribute.
Previous cell output:
Print the data exported from the Granta MI database for this record. Note that attribute values, row cells, and list items all have a dataType attribute to help you pick the right data member to inspect.
Previous cell output:

Import tabular data

Search the database for a parent record under which you can create a new record.
Create an empty data structure, and populate it with tabular data values.
Previous cell output:
Create a new import attribute, “Characterization of this material”, that contains these tabular data values.
Create a new import record.
Previous cell output:
Import the record to a Granta MI database.
Previous cell output:

Update the record

Retrieve the row ID of the data that you want to update.
Previous cell output:
Create a table containing the values you want to update. You only need to specify the columns that contain updated data values.
Previous cell output:
Import the updated data into Granta MI using SetRecordAttributes.
Previous cell output: