> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Streamlined API structure

The Streamlined [Streamlined API reference](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api) documents all the classes and functions that make up the
interface, and is split up into sections which represent the different logical components of the Streamlined API. These
logical components are described in the sections below:

## Session object

The [Session](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session.md) section documents the [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) class. The [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) class is instantiated by
specifying Granta MI connection information, and the returned object represents a connection to the server. It acts as
the root object from which most other Streamlined API objects are spawned, and is typically used to:

* Get [`Database`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/database#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Database) objects, which can be used to access [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) and [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) objects.
* Perform text searches across all records on the server with the [`Session.search_for_records_by_text()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.search_for_records_by_text) and
  [`Session.search_for_records_by_name()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.search_for_records_by_name) methods.
* Write changes to the Granta MI server with the [`Session.update()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.update) and [`Session.update_links()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.update_links) methods.

This section also documents other classes which perform bulk activities across multiple records in different databases
and tables.

## Database and table classes

The [Database](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/database.md) section documents the [`Database`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/database#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Database) class, which represents Granta MI databases.
[`Database`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/database#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Database) objects are typically obtained by using the [`Session.get_db()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.get_db) method.

The [Table](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table.md) section documents [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) class, which represents tables on the Granta MI server.
[`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) objects are typically obtained by using the [`Database.get_table()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/database#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Database.get_table) method.

[`Database`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/database#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Database) and [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) objects are used to:

* Get [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) objects from a [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) object based on their location in the record tree.
* Get [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) objects from a [`Database`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/database#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Database) or [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) object by text, record name, or attribute
  value searching.
* Access schema information, such as [`mi_meta_classes.TableLayout`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_meta_classes.TableLayout) and
  [`mi_meta_classes.LinkGroupDetails`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_meta_classes.LinkGroupDetails) objects.

## Record classes

The [Record](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record.md) section documents the [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) class, which represents a record on the Granta MI server.
[`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) objects are used to:

* Access and modify data stored in attributes via the [`Record.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.attributes) dictionary.
* Access and modify properties of the record, such as [`Record.name`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.name) and [`Record.color`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.color)
* Access links via the [`Record.links`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.links) dictionary, and modify them with the [`Record.set_links()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.set_links) method.
* Copy and move the record with the [`Record.copy_to()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.copy_to) and [`Record.move_to()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.move_to) methods.

## Attribute definition classes

The [Attribute definitions](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions.md) section documents the [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) class and all sub-classes.
These classes represent the *definition* of an attribute on a Granta MI server, as opposed to an instance of an
attribute which contains data. They are not associated with a particular record, only with the table that they are
defined in. [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) classes can be used to access the attribute name, attribute unit, and
additional schema-level configuration based on the type of the attribute.

The [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) class is subclassed according to the hierarchy described below:

* [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) (no objects are direct instances of this type)
  * [`AttributeDefinitionDatetime`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionDatetime)
  * [`AttributeDefinitionDiscrete`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionDiscrete)
  * [`AttributeDefinitionFile`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionFile)
  * [`AttributeDefinitionHyperlink`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionHyperlink)
  * [`AttributeDefinitionInteger`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionInteger)
  * [`AttributeDefinitionLogical`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionLogical)
  * [`AttributeDefinitionLongText`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionLongText)
  * [`AttributeDefinitionPicture`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionPicture)
  * [`AttributeDefinitionRange`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionRange)
  * [`AttributeDefinitionShortText`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionShortText)
  * [`AttributeDefinitionTabular`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionTabular)
  * [`AttributeDefinitionMultiValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionMultiValue) (no objects are direct instances of this type)
    * [`AttributeDefinitionFloatFunctional`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionFloatFunctional)
    * [`AttributeDefinitionPoint`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionPoint)
  * [`AttributeDefinitionUnsupported`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionUnsupported) (no objects are direct instances of this type)
    * [`AttributeDefinitionDiscreteFunctional`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionDiscreteFunctional)

This section also documents the [`PseudoAttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.PseudoAttributeDefinition) class. Objects of this type can generally be used in
place of [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) objects to search or export pseudo-attributes.

## Attribute classes

The [Attribute values](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values.md) section documents the
[`AttributeValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class and all sub-classes. These
classes are analogous to the attribute definition classes, but represent attribute *values*. They are associated with
both the table and record that they relate to. In addition to being able to access the attribute name and attribute
unit, they can be used to access data values (if the attribute is populated for the associated record).

The [`AttributeValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class is subclassed according to
the hierarchy described below:

* [`AttributeValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue): Base class for all attributes
  * [`AttributeBinary`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeBinary): Parent class for binary attributes (no objects are direct instances of this type)
    * [`AttributePicture`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributePicture): Picture data
    * [`AttributeFile`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFile): File data
  * [`AttributeDate`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeDate): Datetime data
  * [`AttributeDiscrete`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeDiscrete): Discrete data
  * [`AttributeFunctional`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional): Parent class for float functional data (no objects are direct instances of this type)
    * [`FunctionalSeries`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalSeries): Float functional series data
    * [`FunctionalGrid`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalGrid): Float functional gridded data
  * [`AttributeHyperlink`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeHyperlink): Hyperlink data
  * [`AttributeInteger`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeInteger): Integer data
  * [`AttributeLogical`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeLogical): Logical data
  * [`AttributePoint`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributePoint): Point (optionally with parameter) data
  * [`AttributeRange`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeRange): Range data
  * [`AttributeTabular`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeTabular): Tabular data
  * [`AttributeShortText`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeShortText): Short text data
  * [`AttributeLongText`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeLongText): Long text data
  * [`AttributeUnsupported`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeUnsupported): Unsupported data
  * [`PseudoAttributeValue`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-values#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.PseudoAttributeValue): Pseudo-attribute value class covering all pseudo-attribute types

## Sub-attribute classes

The [Schema and supporting items](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting.md) section documents classes that are used by attribute objects but are not attributes
themselves. This includes:

* The [`ParameterDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.ParameterDefinition) section, which documents the classes used to describe parameters.
* The [`ObjectHistory`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_meta_classes.ObjectHistory), [`RecordVersionHistory`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_meta_classes.RecordVersionHistory), and [`DataRevisionHistory`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_meta_classes.DataRevisionHistory) classes, which are used
  to describe revision information of certain items within a Granta MI database.
* The [`Hyperlink`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Hyperlink) class, which describes a Granta MI hyperlink attribute’s URL, target, and description.
* The [`BinaryType`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.BinaryType), [`Picture`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Picture), and [`File`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.File) classes, which contain binary data, and provide
  methods or saving and loading that data to/from disk.
