Skip to main content
Create a record link between two records in a Granta MI database. This example demonstrates:
  • Retrieve a list of record groups within a Granta MI database
  • Import a new record
  • Create a link between the new record and another record

Create a Granta MI session

Import the GRANTA_MIScriptingToolkit package, and create a connection to a Granta MI server.
Find the record link groups that can be created within MaterialUniverse.
Previous cell output:
Import a new record into the “Training Exercise for Import” table, with the current time as the record name. This will be the target record to create a link to later.
Set “PMMA (cast sheet)” in MaterialUniverse as the source record to create a link from.
Use the ModifyRecordLinks operation to create a link called “Training Exercise” from “PMMA (cast sheet)” to the new imported record.
Print the record names and GUIDs for the newly-linked records. You can also check this new link in MI Viewer, by viewing the link on the “PMMA (cast sheet)” datasheet.
Previous cell output: