> ## 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.

# Attribute values

### *class* AttributeValue

Stores and provides access to attribute data values.

#### NOTE

Do not create new instances of this class; it represents a pre-existing database structure,
and empty instances are provided when needed.

The attributes in a [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) are represented in the MI Scripting Toolkit by
[`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,
with an associated [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) object containing the attribute’s data.
[`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) is the base class, and each attribute type has a specialised class that inherits from it.

#### NOTE

The ‘Notes’ meta-attribute, common to all attributes, is not accessible through the MI Scripting Toolkit.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* value

Current value of the attribute. Can be modified.

* **Returns:**
  Union\[List\[str], List\[float], str, Dict\[str, float], int, float, bool, bytes]

#### *property* record

[`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) in which the attribute value is defined. Would be None if the [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) has been
created outside a Record context, e.g.
with [`Table.create_empty_attribute_value`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table.create_empty_attribute_value).

* **Returns:**
  [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object or None

#### is\_empty()

Checks whether the attribute value is populated.

* **Returns:**
  bool

#### *property* definition

[`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) associated with this [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue).

* **Returns:**
  [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object

#### *property* id

Attribute identifier.

* **Returns:**
  int

#### *property* is\_meta

Whether the attribute is a meta-attribute.

* **Returns:**
  bool

#### *property* is\_meta\_for

Name of the parent attribute, if a meta-attribute. Returns `None` if not.

* **Returns:**
  str or None

#### *property* meta\_attributes

Meta-attributes associated with this attribute. Does not make calls to the Service Layer.

* **Returns:**
  Dict\[str, [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue)]

#### *property* name

Attribute name.

* **Returns:**
  str

#### *property* type

Attribute data type, as a four-character string. Possible attribute types are:

POIN = point,

RNGE = range,

FUNC = float functional,

INPT = integer,

LOGI = logical,

DISC = discrete,

STXT = short text,

LTXT = long text,

DTTM = date time,

HLNK = hyperlink,

PICT = picture,

FILE = file,

DSFN = discrete functional,

MAFN = maths functional (equations and logic),

TABL = tabular.

DSFN and MAFN are not supported by the MI Scripting Toolkit, and appear as UNSUPPORTED DATA TYPE.

* **Returns:**
  str

#### *property* unit

Unit symbol.

* **Returns:**
  str

#### *property* is\_applicable

Whether the attribute is applicable to the current record. Setting this to `False` will clear
any data values on the attribute.

* **Returns:**
  bool

### *class* AttributeBinary

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class to handle [`BinaryType`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.BinaryType) objects
as attribute data values.

Provides access to [`BinaryType`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.BinaryType) object methods and properties.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
  * **content\_type** – str (MIME content/file type; see [`BinaryType`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.BinaryType))
* **Returns:**
  None

#### *property* url

URL of the hosted file. Returns `None` if not populated.

The data can be retrieved by using a Python HTTP library (e.g. Requests, HTTPX) and by supplying the
appropriate authentication for your Granta MI server.

To populate this property, the [`Table.bulk_fetch()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table.bulk_fetch) method must be used with
`include_binary_data = False` (default). If `include_binary_data = True` is specified, or if the attribute
is fetched on-demand by accessing the `attributes` dictionary without performing a bulk fetch, this property
will always return `None`.

* **Returns:**
  str or None

#### *property* mime\_file\_type

MIME (Multipurpose Internet Mail Extensions) file type, if populated.

When exporting, this property is populated with the value of the MIME file type as determined by Granta MI.

When importing, this property is populated automatically by the `load()` method:

* For Picture attributes, the MIME file type is determined by the image data.
* For File attributes, this property is not used and is set to `None`.

Some commonly-used extensions are:

image/png - .png

image/gif - .gif

image/bmp - .bmp

image/tiff - .tif, .tiff

text/plain - .txt

application/zip - .zip

application/pdf - .pdf

application/vnd.ms-excel - .xls

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - .xlsx

application/vnd.ms-powerpoint - .ppt

application/vnd.openxmlformats-officedocument.presentationml.presentation - .pptx

application/msword - .doc

application/vnd.openxmlformats-officedocument.wordprocessingml.document - .docx

* **Returns:**
  str

#### is\_empty()

Checks if 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) object is populated by checking if it contains any binary data.

* **Returns:**
  bool

#### *property* value

Returns the file as a bytes object, or None if unset.

* **Returns:**
  bytes or None.

### *class* AttributePicture

Extended [`AttributeBinary`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeBinary) class for handling [`Picture`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Picture) objects.

Provides access to [`Picture`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Picture) save/load methods.

Pictures of up to 500 MB in size may be stored in Granta MI. To upload pictures larger than 20 Mb using Scripting
Toolkit:

* Granta MI Service Layer must be configured to allow large requests. If this is not configured,
  [`Session.update()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.update) will raise a [`GRANTA_ServiceLayerError`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/foundation/api#GRANTA_MIScriptingToolkit.GRANTA_Exceptions.GRANTA_ServiceLayerError) for a “413 Request Entity Too Large” HTTP
  response. For more information, contact your Ansys technical representative.
* The Python client environment must have sufficient system resources to load and Base64-encode the binary data. If
  there are insufficient system resources, unhandled Python exceptions may be raised.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### save(path)

Wraps the [`Picture.save()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Picture.save) method.

* **Parameters:**
  **path** (*Union* *\[*[*str*](https://docs.python.org/3/library/stdtypes.html#str) *,* [*pathlib.Path*](https://docs.python.org/3/library/pathlib.html#pathlib.Path) *]*) – Path where the image should be saved.
  Takes the form `C:\\Users\\yourname\\Pictures\\image.jpg` or `/home/username/Pictures/image.jpg`.
* **Returns:**
  None

#### load(path)

Wraps the [`Picture.load()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Picture.load) method (populates the [`Picture`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Picture) object with the specified image file).

* **Parameters:**
  **path** (*Union* *\[*[*str*](https://docs.python.org/3/library/stdtypes.html#str) *,* [*pathlib.Path*](https://docs.python.org/3/library/pathlib.html#pathlib.Path) *]*) – Path to the image file to load.
  Takes the form `C:\\Users\\yourname\\Pictures\\image.jpg` or `/home/username/Pictures/image.jpg`.
* **Returns:**
  None

### *class* AttributeFile

Extended [`AttributeBinary`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeBinary) class to handle [`File`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.File) objects.

Provides access to [`File`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.File) object save/load methods, file name, and description.

Files of up to 500 MB in size may be stored in Granta MI. To upload files larger than 20 Mb using Scripting Toolkit:

* Granta MI Service Layer must be configured to allow large requests. If this is not configured,
  [`Session.update()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session.update) will raise a [`GRANTA_ServiceLayerError`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/foundation/api#GRANTA_MIScriptingToolkit.GRANTA_Exceptions.GRANTA_ServiceLayerError) for a “413 Request Entity Too Large” HTTP
  response. For more information, contact your Ansys technical representative.
* The Python client environment must have sufficient system resources to load and Base64-encode the binary data. If
  there are insufficient system resources, unhandled Python exceptions may be raised.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### save(path)

Wraps the [`File.save()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.File.save) method.

* **Parameters:**
  **path** (*Union* *\[*[*str*](https://docs.python.org/3/library/stdtypes.html#str) *,* [*pathlib.Path*](https://docs.python.org/3/library/pathlib.html#pathlib.Path) *]*) – Path where the file should be saved.
  Takes the form `C:\\Users\\yourname\\Documents\\file.pdf` or `/home/username/Documents/file.pdf`.
* **Returns:**
  None

#### load(path)

Wraps the [`File.load()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.File.load) method (populates the [`File`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.File) object with the specified file).

* **Parameters:**
  **path** – Union\[str, pathlib.Path] (Path to the file to be imported.
  Takes the form `C:\\Users\\yourname\\Documents\\file.pdf` or `/home/username/Documents/file.pdf`.
* **Returns:**
  None

#### *property* file\_name

Name of the file associated with the [`File`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.File) object. Displayed in MI applications.

* **Returns:**
  str

#### *property* description

Description of the file displayed in MI applications.

* **Returns:**
  str

### *class* AttributeDate

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for date attributes.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* value\_as\_string

Return the value of the date attribute as a string.

* **Returns:**
  str | None

#### *property* value

Return the value of the date attribute as a [`datetime.datetime`](https://docs.python.org/3/library/datetime.html#datetime.datetime) object.

* **Returns:**
  [`datetime.datetime`](https://docs.python.org/3/library/datetime.html#datetime.datetime) object | None

### *class* AttributeDiscrete

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for discrete attributes.

Provides access to the list of strings that store the attribute’s data values, and their display order.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinitionDiscrete`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionDiscrete) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* value

Discrete value(s) associated with this attribute.

#### Versionchanged

Changed in version 4.1: Property `value` now validates the provided value against the attribute’s allowed discrete values.
Check [`AttributeDefinitionDiscrete.discrete_values`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionDiscrete.discrete_values) for available values. This validation is case-sensitive.

* **Returns:**
  List\[str] or str if not multivalued

#### *property* order

Display order of the discrete data values (strings) in MI Viewer. Order cannot be edited using the MI
Scripting Toolkit.

* **Returns:**
  Optional\[List\[int]]

#### *property* is\_multivalued

Whether this attribute allows multiple values to be set.

* **Returns:**
  bool

#### *property* possible\_discrete\_values

List of the attribute’s possible discrete data values.

* **Returns:**
  List\[str]

### *class* AttributeFunctional

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for functional data attributes.

Stores and provides access to a data structure, parameters (constraints), specified x-axis, and individual
columns and series within the functional data attribute. Series and Gridded data are stored identically in
[`AttributeFunctional`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional) objects. However, the two data types are imported into MI differently.

The [`AttributeFunctional`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional) object data structure is as follows:

```python theme={null}
[[ 'y min', 'y max', 'constraint 1', 'constraint 2', 'Estimated point?'],
 [  0.0,      0.0,      'Test',         0.5,       ,      False,       ],
 [   . ,       . ,         .  ,          . ,       ,        .  ,       ],
 [   . ,       . ,         .  ,          . ,       ,        .  ,       ],
 [   . ,       . ,         .  ,          . ,       ,        .  ,       ]]
```

The allowed data types are `float` for x-y data, `float`, `str` or `None` for constraints, and `bool` for
flagging whether the data point is estimated or not.

The functional data type is used to store graphical data in Granta MI. In MI Viewer there are two ways to
view the data: *Series* and *Gridded*.

* Series data is grouped according to constraints or parameters placed on x-y data. The x-axis is a
  constraint that is specified on import. Each group (‘Series’) can have a different linestyle.
* Gridded data is similar to Series data, except that the x-axis is dynamically chosen within MI Viewer, and
  all data groups share one linestyle.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### update\_header\_units()

Updates the unit symbols in the header with the currently selected units.

* **Returns:**
  None

#### *property* unit

Unit symbol for the y-axis.

To access the unit for the x-axis parameter or constraint parameters, use the `unit` property on the object
returned by the [`xaxis_parameter`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional.xaxis_parameter) or [`ParameterDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.ParameterDefinition) respectively.

* **Returns:**
  str

#### clear()

Deletes all data stored in the [`AttributeFunctional`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional) object.

* **Returns:**
  None

#### is\_empty()

Checks whether any of the data values in the attribute are populated.

* **Returns:**
  bool

#### add\_point(columns)

Adds a point value to the [`AttributeFunctional`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional) object. Requires a dictionary with keys for the y-value,
each constraint, and whether the value is estimated (optional):

* Dictionary keys for the y-value can be either ‘y’, ‘Y’, the attribute name, or the attribute name prefixed
  with ‘Y ‘ and suffixed with the unit symbol in square brackets, i.e. formatted as in [`column_headers`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional.column_headers).
* Constraint keys can be either the parameter name, or the parameter name with units.
* Constraints are optional and can either be omitted entirely or set to None.
* The key for whether the value is estimated must be ‘Estimated?’.

#### NOTE

The Estimated? flag can currently only be set for *Gridded* data, not *Series*.

* **Parameters:**
  **columns** – Dict\[str, Union\[str, float, bool, int]]
* **Returns:**
  None

#### add\_range(columns)

Adds a range value to the [`AttributeFunctional`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional) object. Requires a dictionary with keys for the two
y-values (ymin and ymax), each constraint, and whether the value is estimated (optional).

* Dictionary keys for the y-value can be either ‘ymin’, ‘ymax’, or the attribute name with units and
  ‘Y min’ or ‘Y max’ appended.
* Constraint keys can either be the parameter name, or the parameter name with units.
* Constraints are optional and can either be omitted entirely or set to None.
* The key for whether the value is estimated must be ‘Estimated?’.

#### NOTE

The Estimated? flag can currently only be set for *Gridded* data, not *Series*.

* **Parameters:**
  **columns** – dict
* **Returns:**
  None

#### *property* xaxis\_parameter

[`AttributeParameter`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeParameter) for the current x-axis parameter of the functional data attribute.

Modify the [`ParameterDefinition.unit`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.ParameterDefinition.unit) property on the returned object to specify a different unit for
import.

* **Returns:**
  [`AttributeParameter`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeParameter) object

#### *property* column\_headers

Column headers with units.

* **Returns:**
  List\[str]

#### *property* constraint\_column\_index

Mapping of columns to indices for functional data attributes.

* **Returns:**
  Dict\[str, int]

#### data\_by\_column()

Sorts data into columns (lists of values indexed by column name). Changing a dictionary generated
using this method does not affect the underlying data, and data in the dictionary will not be
refreshed automatically if the underlying data changes.

* **Returns:**
  Dict\[str, List\[Any]]

#### *property* parameters

Parameters used by the functional data attribute, indexed by name.

Modify the [`ParameterDefinition.unit`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.ParameterDefinition.unit) property on the returned objects to specify a different unit for
import.

* **Returns:**
  Dict\[str, [`AttributeParameter`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeParameter)]

### *class* FunctionalSeries

Extended [`AttributeFunctional`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional) class for Series functional data attributes.

Provides access to Series numbers and linestyles, and a method of generating a [`FunctionalGrid`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalGrid) object from a
[`FunctionalSeries`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalSeries) object ([`generate_grid_version()`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalSeries.generate_grid_version)).

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### generate\_grid\_version()

Creates a Gridded version of the [`FunctionalSeries`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalSeries) object and returns a copy of it.

* **Returns:**
  [`FunctionalGrid`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalGrid) object

#### *property* data\_with\_series\_number

Series number for all data points, returned as an additional column with the data values.

* **Returns:**
  List\[List\[Union\[str, float, bool, int]]]

#### *property* series\_linestyles

Linestyles for each series (linestyle can be ‘Lines’, ‘Markers’, or ‘Both’).

* **Returns:**
  Dict\[int, str]

#### *property* log\_yaxis

Whether the Y axis is using a logarithmic scale.

* **Returns:**
  bool

### *class* FunctionalGrid

Extended [`AttributeFunctional`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeFunctional) class for Gridded functional data attributes.

Provides access to linestyle and a method of generating a [`FunctionalSeries`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalSeries) object from a
[`FunctionalGrid`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalGrid) object ([`generate_series_version()`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalGrid.generate_series_version)).

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### generate\_series\_version()

Creates a Series version of the [`FunctionalGrid`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalGrid) object and returns a copy of it.

* **Returns:**
  [`FunctionalSeries`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.FunctionalSeries) object

#### *property* linestyle

Linestyle for gridded functional data (gridded data can only have one linestyle:
‘Lines’, ‘Markers’, or ‘Both’).

* **Returns:**
  str

### *class* AttributeHyperlink

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for hyperlink attributes.

Provides access to the `hyperlink_description` and `hyperlink_display` text properties.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* object

Hyperlink attribute object value.

* **Returns:**
  [`Hyperlink`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Hyperlink)

#### *property* value

Returns the URL as a string, or `None` if unset.

* **Returns:**
  str or `None`.

#### *property* hyperlink\_display

Indicates how the hyperlink should be opened when clicked on in MI applications. Takes one of the
following values:

* `New`: Open in a new window or tab.
* `Top`: Open in the current window or tab.
* `Content`: Open within the current MI application (for example, in a frame or dialog).

#### *property* hyperlink\_description

Text which displays instead of the URL in MI applications.

* **Returns:**
  str

### *class* AttributeInteger

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for integer attributes.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* value

Current value of the attribute. Can be modified.

* **Returns:**
  Union\[List\[str], List\[float], str, Dict\[str, float], int, float, bool, bytes]

### *class* AttributeLogical

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for logical attributes.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

### *class* AttributePoint

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for point data attributes.

Provides access to lists of point values and their parameters. Points can be multi-valued and are represented
in the Streamlined API as lists of floats. They can have multiple parameters.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinitionPoint`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionPoint) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* is\_multivalued

Whether this attribute allows multiple values to be set.

* **Returns:**
  bool

#### is\_empty()

Checks whether the attribute value is populated. [`AttributePoint`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributePoint) objects are empty if the length
of the list [`AttributePoint.value`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributePoint.value) == 0.

* **Returns:**
  bool

#### *property* is\_estimated

Whether the value has been estimated.

Defaults to False for new attribute values.

return: bool

#### *property* parameter\_definitions

Parameter definitions for the parameters associated with the point attribute, indexed by name.

Modify the [`ParameterDefinition.unit`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.ParameterDefinition.unit) property on the returned objects to specify a different unit for
import.

* **Returns:**
  Dict\[str, [`AttributeParameter`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeParameter)]

#### *property* parameters

Parameters associated with each point in [`AttributePoint.value`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributePoint.value). Each point has a
dictionary, indexed by parameter name and containing the parameter value for that point.

* **Returns:**
  List\[Dict\[str, Union\[float, str]]]

#### *property* value

Point values associated with this attribute.

* **Returns:**
  Union\[List\[float], float]

### *class* AttributeRange

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for range data attributes.  Range attribute values are represented in
the MI Scripting Toolkit by dictionaries of the form `{'low': float, 'high': float}`, and should be entered
in this form when editing them.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* value

Current value of the attribute. Can be modified.

* **Returns:**
  Union\[List\[str], List\[float], str, Dict\[str, float], int, float, bool, bytes]

#### *property* is\_estimated

Whether the value has been estimated.

Defaults to False for new attribute values.

return: bool

#### *property* high\_value\_is\_inclusive

Whether the high value is included in the range.

Defaults to True for new attribute values.

return: bool

#### *property* low\_value\_is\_inclusive

Whether the low value is included in the range.

Defaults to True for new attribute values.

return: bool

### *class* AttributeTabular

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for tabular data attributes.

Provides access to tabular data and its properties, such as linking attribute and table, and methods for
adding, deleting or swapping rows.

Importing a tabular attribute using Granta MI Scripting Toolkit replaces all data in the existing attribute. This
can have implications if you use Data Updater to manage this data.

#### WARNING

Importing an empty tabular attribute is deprecated. To delete all rows in an existing tabular attribute,
use the [`Record.clear_attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record.clear_attributes) method to delete the attribute value. To mark the attribute
as Not Applicable, set the [`AttributeValue.is_applicable`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue.is_applicable) property to `False`.

Use the [`AttributeTabular.shape`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeTabular.shape) property to determine the current number of rows in the
tabular attribute.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* columns

List of columns in the tabular data.

* **Returns:**
  List\[str]

#### *property* column\_types

Data type in each column. Only populated for local, linked attribute, or linked column tabular columns.
The element will be an empty string otherwise.

* **Example:**
  `['STXT', 'POIN', 'DISC', '', '']`
* **Returns:**
  List\[str]

#### *property* linked\_columns

Whether each column is linked or not.

* **Returns:**
  List\[bool]

#### *property* linking\_table

[`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) object which the linking attribute belongs to. Returns `None` for purely local tabular data.

* **Returns:**
  [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/table#GRANTA_MIScriptingToolkit.granta.mi_tree_classes.Table) object or None

#### *property* linking\_attribute

Linking attribute, a short text-type attribute used to link rows in the tabular data attribute to records.
Returns `None` for purely local tabular data.

* **Returns:**
  [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object or None

#### *property* value

Raw data for the attribute. Data is organized as a list of lists:

* The items in the outer list represent a row, and so the length of the outer list corresponds to the number of
  rows in the tabular attribute.
* The items in each inner list represent a cell, and so the lengths of the inner lists correspond to the number
  of columns in the tabular attribute.

When exporting data as a read user, this property may omit rows for the following reasons:

* If a row is completely empty.
* If a row contains no local data and has a linking value which does not exist in the target table.
* If a row contains no local data and has a linking value which exists in the target table, but all linked
  records are inaccessible to the user because of version control or access control.

When exporting data as a write user or above, this property will include all rows.

When assigning a value using this property, the number of items in the inner and outer lists **must** match the
existing value. To modify the number of existing rows, use the [`AttributeTabular.add_row()`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeTabular.add_row) and
[`AttributeTabular.delete_row()`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeTabular.delete_row) methods before assigning a value.

* **Returns:**
  List\[List\[Union\[str, list, [`Picture`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Picture), [`File`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.File), [`Hyperlink`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.Hyperlink), float, int, tuple]]]

#### *property* units

[`TabularUnits`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_meta_classes.TabularUnits) object associated with this [`AttributeTabular`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeTabular) object.

* **Returns:**
  [`TabularUnits`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_meta_classes.TabularUnits) object

#### show()

Displays the data as an ascii-art style table.

* **Returns:**
  None

#### load()

Loads exported tabular data.

Exported data is generally lazily loaded by any property of the tabular that requires it. This method can be
used to explicitly load the exported data or to discard staged user modifications and reset the attribute value
to the exported data.

* **Returns:**
  None

#### *property* linked\_records

The records linked to each row, indexed by the linking value of each row at loading.

These links are calculated in Granta MI, and therefore cannot be edited by the user. The dictionary is
unaffected by local changes to the tabular data, and the data must be re-imported to reflect local changes.

This property will be empty if the user cannot access the linked table, or if
[`AttributeDefinitionTabular.ignore_linked_records`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinitionTabular.ignore_linked_records) was set to `True` before data export.

* **Returns:**
  Dict\[str, List\[[`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)]]

#### is\_empty()

Checks whether the attribute value is populated.

* **Returns:**
  bool

#### *property* shape

Number of columns by number of rows.

* **Returns:**
  Tuple\[int, int]

#### add\_row(linking\_value='\<linking value not chosen>')

Inserts a new unpopulated row, and sets the linking value for that row if one is provided.

* **Parameters:**
  **linking\_value** – str
* **Returns:**
  None

#### delete\_row(index)

Removes the row at the specified index.

* **Example:**
  `delete_row(0)` deletes the first row.
* **Parameters:**
  **index** – int
* **Returns:**
  None

#### swap\_rows(row1, row2)

Change the positions of two rows with indices `row1` and `row2`.

* **Example:**
  `my_data.swap_rows(0, 4)` swaps the first and fifth rows in the Tabular data structure `my_data`.
* **Parameters:**
  * **row1** – int
  * **row2** – int
* **Returns:**
  None

### *class* AttributeShortText

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for short text attributes.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* value

Current value of the attribute. Can be modified.

* **Returns:**
  Union\[List\[str], List\[float], str, Dict\[str, float], int, float, bool, bytes]

### *class* AttributeLongText

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for long text attributes.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

### *class* AttributeUnsupported

Extended [`AttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.AttributeValue) class for attributes with unsupported data types.

Note that unsupported attribute data will not yield any information regarding its value in that record. However,
some meta-data is still available through this class (such as the attribute’s name and data type).
An unsupported attribute value remains unpopulated, and these objects cannot be edited.

#### \_\_init\_\_(attr\_def, \_mi, record)

* **Parameters:**
  * **attr\_def** – [`AttributeDefinition`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/attribute-definitions#GRANTA_MIScriptingToolkit.granta.mi_attribute_classes.AttributeDefinition) object
  * **\_mi** – [`Session`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/session#GRANTA_MIScriptingToolkit.granta.mi.Session) object
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object
* **Returns:**
  None

#### *property* object

Gets the underlying [`UnsupportedType`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/supporting#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.UnsupportedType) object representing the attribute value or the tabular cell. Does
not allow access to the data.

#### *property* is\_applicable

Whether the attribute is applicable to the current record. Setting this to `False` will clear
any data values on the attribute.

* **Returns:**
  bool

#### is\_empty()

Checks whether the attribute value is populated.

* **Returns:**
  bool

### *class* PseudoAttributeValue

Stores and provides access to pseudo-attribute data values.

#### \_\_init\_\_(name, record)

* **Parameters:**
  * **name** – str
  * **record** – Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record)
* **Returns:**
  None

#### *property* record

Parent [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) described by the [`PseudoAttributeValue`](#GRANTA_MIScriptingToolkit.granta.mi_attribute_value_classes.PseudoAttributeValue)

* **Returns:**
  [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object

#### *property* value

Current value of the pseudo-attribute. Cannot be modified. Modification of pseudo-attributes must be done
through the [`Record`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/record#GRANTA_MIScriptingToolkit.granta.mi_record_classes.Record) object properties `color`, `short_name` and `name`.

* **Returns:**
  Union\[List\[str], str, int, bool, Set\[str], [`datetime.datetime`](https://docs.python.org/3/library/datetime.html#datetime.datetime), [`RecordColor`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/4-2/api/constants#GRANTA_MIScriptingToolkit.granta.mi_constants.RecordColor)]

#### *property* id

Attribute identifier (this is always 0 for pseudo-attributes).

* **Returns:**
  int

#### is\_empty()

Checks whether the pseudo-attribute value is populated or not.

* **Returns:**
  bool

#### *property* name

Name of the pseudo-attribute.

* **Returns:**
  str

#### *property* type

Data type of the pseudo-attribute value (four-character string).

* **Returns:**
  str
