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

### *class* PseudoAttributeDefinition

Stores basic information about a pseudo-attribute.

* **Parameters:**
  **name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) – Name of the pseudo-attribute.

### Notes

Supported names are:

* `recordType`

* `recordHistoryIdentity`

* `recordColor`

* `recordVersionNumber`

* `tableName`

* `writable`

* `parentShortName`

* `parentName`

* `parentRecordHistoryIdentity`

* `shortName`

* `modifiedDate`

* `createdDate`

* `releasedDate`

* `lastModifier`

* `creator`

* `subsets`

* `name`

* **Raises:**
  [**ValueError**](https://docs.python.org/3/library/exceptions.html#ValueError) – If the name is not a recognized pseudo-attribute name.

#### *property* id *: [int](https://docs.python.org/3/library/functions.html#int)*

Attribute identifier.

Always 0 for pseudo-attributes.

* **Return type:**
  [int](https://docs.python.org/3/library/functions.html#int)

#### *property* name *: [str](https://docs.python.org/3/library/stdtypes.html#str)*

Name of the pseudo-attribute.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

#### *property* read\_only *: [bool](https://docs.python.org/3/library/functions.html#bool)*

Whether the current user has the correct permissions to edit the attribute.

* **Return type:**
  [bool](https://docs.python.org/3/library/functions.html#bool)

#### *property* type *: [str](https://docs.python.org/3/library/stdtypes.html#str)*

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

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

### *class* AttributeDefinition

Base attribute definition class.

Stores basic information about an attribute, such as data type or possible values. Contains information about
the attribute itself, not the data. Cannot be used to set attribute values.

### Notes

Do not create instances of this class, it represents an abstract database structure.

#### search\_criterion(less\_than=None, greater\_than=None, contains=None, contains\_any=None, contains\_all=None, does\_not\_contain=None, exists=None, equal\_to=None, between\_dates=None, in\_column=None)

Creates a search criterion for use with [`Table.search_for_records_where()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.search_for_records_where) or
[`Database.search_for_records_where()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/database#ansys.grantami.core.mi_tree_classes.Database.search_for_records_where).

Operator priority is the same as the order of the arguments.

* **Parameters:**
  * **less\_than** ([*float*](https://docs.python.org/3/library/functions.html#float) *,* *optional*) – Search for values less than this.
  * **greater\_than** ([*float*](https://docs.python.org/3/library/functions.html#float) *,* *optional*) – Search for values greater than this.
  * **contains** ([*str*](https://docs.python.org/3/library/stdtypes.html#str) *or* [*bool*](https://docs.python.org/3/library/functions.html#bool) *,* *optional*) – Search for values containing this.
  * **contains\_any** ([*list*](https://docs.python.org/3/library/stdtypes.html#list) *\[*[*str*](https://docs.python.org/3/library/stdtypes.html#str) *]* *,* *optional*) – Search for values containing any of these.
  * **contains\_all** ([*list*](https://docs.python.org/3/library/stdtypes.html#list) *\[*[*str*](https://docs.python.org/3/library/stdtypes.html#str) *]* *,* *optional*) – Search for values containing all of these.
  * **does\_not\_contain** ([*str*](https://docs.python.org/3/library/stdtypes.html#str) *,* *optional*) – Search for values not containing this.
  * **exists** ([*bool*](https://docs.python.org/3/library/functions.html#bool) *,* *optional*) – Search for existence of attribute values.
  * **equal\_to** ([*int*](https://docs.python.org/3/library/functions.html#int) *or* [*str*](https://docs.python.org/3/library/stdtypes.html#str) *,* *optional*) – Search for values equal to this.
  * **between\_dates** ([*tuple*](https://docs.python.org/3/library/stdtypes.html#tuple) *\[*[*datetime.date*](https://docs.python.org/3/library/datetime.html#datetime.date) *,* [*datetime.date*](https://docs.python.org/3/library/datetime.html#datetime.date) *]* *,* *optional*) – Two dates in chronological order to search between.
  * **in\_column** ([*str*](https://docs.python.org/3/library/stdtypes.html#str) *,* *optional*) – Name of tabular column to search.
* **Return type:**
  [`SearchCriterion`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting#ansys.grantami.core.mi_meta_classes.SearchCriterion) or [`None`](https://docs.python.org/3/library/constants.html#None)
* **Raises:**
  * [**AssertionError**](https://docs.python.org/3/library/exceptions.html#AssertionError) – If the criterion type is incompatible with the attribute type.
  * [**AssertionError**](https://docs.python.org/3/library/exceptions.html#AssertionError) – If required parameters are missing.

### Notes

To perform an exact search on a discrete attribute, use either the `contains_any` or `contains_all`
parameters. In the case of searching for a single discrete value, the argument should be a list containing
the search term.

#### *property* history *: [ObjectHistory](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting.md#ansys.grantami.core.mi_meta_classes.ObjectHistory)*

Revision history of the attribute.

* **Return type:**
  [`ObjectHistory`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting#ansys.grantami.core.mi_meta_classes.ObjectHistory)

#### *property* id *: [int](https://docs.python.org/3/library/functions.html#int)*

Attribute identifier.

* **Return type:**
  [int](https://docs.python.org/3/library/functions.html#int)

#### *property* is\_meta *: [bool](https://docs.python.org/3/library/functions.html#bool)*

Whether the attribute is a meta-attribute or not.

* **Return type:**
  [bool](https://docs.python.org/3/library/functions.html#bool)

#### *property* is\_meta\_for *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

Parent attribute name.

* **Returns:**
  Name of the parent attribute, if the attribute is a meta-attribute. Returns [`None`](https://docs.python.org/3/library/constants.html#None) if not a
  meta-attribute.
* **Return type:**
  str or [`None`](https://docs.python.org/3/library/constants.html#None)

#### *property* meta\_attributes *: [Dict](https://docs.python.org/3/library/typing.html#typing.Dict)\[[str](https://docs.python.org/3/library/stdtypes.html#str), [AttributeDefinition](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition)]*

Meta-attributes associated with this attribute, indexed by name.

* **Return type:**
  dict\[str, [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition)]

#### *property* name *: [str](https://docs.python.org/3/library/stdtypes.html#str)*

Attribute name.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

#### *property* order *: [int](https://docs.python.org/3/library/functions.html#int)*

Display order in MI Viewer.

* **Return type:**
  [int](https://docs.python.org/3/library/functions.html#int)

#### *property* table *: [Table](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table.md#ansys.grantami.core.mi_tree_classes.Table)*

Parent [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table) the attribute belongs to.

* **Return type:**
  [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table)

#### *property* type *: [str](https://docs.python.org/3/library/stdtypes.html#str)*

Attribute data type, as a four-character string.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

### Notes

* Numeric attributes: `POIN` (point), `RNGE` (range), `INPT` (integer).
* Text attributes: `STXT` (short text), `LTXT` (long text), `DISC` (discrete).
* Functional attributes: `FUNC` (float functional).
* Media attributes: `HLNK` (hyperlink), `PICT` (picture), `FILE` (file).
* Other attributes: `LOGI` (logical), `DTTM` (date time), `TABL` (tabular).

`DSFN` (discrete functional) attributes are not fully supported by the MI Scripting Toolkit. Definitions can
be obtained but attribute values are exported as `UNSUPPORTED DATA TYPE` and contain no data.

`MAFN` (maths functional) attribute definitions cannot be obtained via the MI Scripting Toolkit.

### *class* AttributeDefinitionDate

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for date attributes.

Provides properties to view the table-wide minimum and maximum values for this attribute.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

#### *property* max *: [date](https://docs.python.org/3/library/datetime.html#datetime.date) | [None](https://docs.python.org/3/library/constants.html#None)*

Maximum value of the data attribute.

Affected by user read permissions.

* **Return type:**
  datetime.date or [`None`](https://docs.python.org/3/library/constants.html#None)

#### *property* min *: [date](https://docs.python.org/3/library/datetime.html#datetime.date) | [None](https://docs.python.org/3/library/constants.html#None)*

Minimum value of the data attribute.

Affected by user read permissions.

* **Return type:**
  datetime.date or [`None`](https://docs.python.org/3/library/constants.html#None)

### *class* AttributeDefinitionDiscrete

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for discrete attributes.

Provides a method to view the possible discrete values of an attribute.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

#### *property* discrete\_values *: [List](https://docs.python.org/3/library/typing.html#typing.List)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]*

All possible discrete values of the attribute, in the order defined by the associated discrete type.

* **Return type:**
  [list](https://docs.python.org/3/library/stdtypes.html#list)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]

#### *property* is\_multivalued *: [bool](https://docs.python.org/3/library/functions.html#bool)*

Whether this attribute allows multiple values to be set.

* **Return type:**
  [bool](https://docs.python.org/3/library/functions.html#bool)

#### *property* is\_ordered *: [bool](https://docs.python.org/3/library/functions.html#bool)*

Whether the discrete type associated with the discrete attribute is ordered.

* **Return type:**
  [bool](https://docs.python.org/3/library/functions.html#bool)

### *class* AttributeDefinitionFile

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for file attributes.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

### *class* AttributeDefinitionHyperlink

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for hyperlink attributes.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

### *class* AttributeDefinitionInteger

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for integer attributes.

Provides properties to view the table-wide minimum and maximum values for this attribute.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

#### *property* is\_unique *: [bool](https://docs.python.org/3/library/functions.html#bool)*

Whether this attribute is defined as unique.

* **Return type:**
  [bool](https://docs.python.org/3/library/functions.html#bool)

#### *property* max *: [int](https://docs.python.org/3/library/functions.html#int) | [None](https://docs.python.org/3/library/constants.html#None)*

Maximum value of the data attribute.

Affected by user read permissions.

* **Return type:**
  int or [`None`](https://docs.python.org/3/library/constants.html#None)

#### *property* min *: [int](https://docs.python.org/3/library/functions.html#int) | [None](https://docs.python.org/3/library/constants.html#None)*

Minimum value of the data attribute.

Affected by user read permissions.

* **Return type:**
  int or [`None`](https://docs.python.org/3/library/constants.html#None)

### *class* AttributeDefinitionLogical

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for logical attributes.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

### *class* AttributeDefinitionLongText

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for long text attributes.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

### *class* AttributeDefinitionPicture

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for picture attributes.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

### *class* AttributeDefinitionRange

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for range attributes.

Provides access to range-specific information and methods.

#### *property* database\_unit *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

The database unit for this attribute.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str) or None

#### *property* default\_unit *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

Attribute database unit in the active unit system.

The unit used by MI Viewer or MI Explore to display this attribute in the active unit system. This
property is only affected by the unit system choice, and is not affected by [`Table.set_display_unit()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.set_display_unit).

* **Returns:**
  [`None`](https://docs.python.org/3/library/constants.html#None) if the attribute is dimensionless.
* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str) or None

#### *property* max *: [float](https://docs.python.org/3/library/functions.html#float) | [None](https://docs.python.org/3/library/constants.html#None)*

Maximum value of the data attribute.

Affected by user read permissions.

* **Return type:**
  float or [`None`](https://docs.python.org/3/library/constants.html#None)

#### *property* min *: [float](https://docs.python.org/3/library/functions.html#float) | [None](https://docs.python.org/3/library/constants.html#None)*

Minimum value of the data attribute.

Affected by user read permissions.

* **Return type:**
  float or [`None`](https://docs.python.org/3/library/constants.html#None)

#### *property* unit *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

Unit symbol.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str) or None

### *class* AttributeDefinitionShortText

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for short text attributes.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

#### *property* is\_unique *: [bool](https://docs.python.org/3/library/functions.html#bool)*

Whether this attribute is defined as unique.

* **Return type:**
  [bool](https://docs.python.org/3/library/functions.html#bool)

### *class* AttributeDefinitionTabular

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for tabular data attributes.

Provides access to tabular-specific information and methods, such as columns, linking attribute and
cross-table links.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

#### *property* column\_database\_units *: [List](https://docs.python.org/3/library/typing.html#typing.List)\[[str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)]*

Database unit symbols for each column.

* **Return type:**
  [list](https://docs.python.org/3/library/stdtypes.html#list)\[[str](https://docs.python.org/3/library/stdtypes.html#str) | None]

#### *property* column\_histories *: [List](https://docs.python.org/3/library/typing.html#typing.List)\[[ObjectHistory](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting.md#ansys.grantami.core.mi_meta_classes.ObjectHistory) | [None](https://docs.python.org/3/library/constants.html#None)]*

The revision histories of each column.

* **Returns:**
  List of equal length to the number of columns. Each item is either an object history, or [`None`](https://docs.python.org/3/library/constants.html#None) for
  unavailable columns. Use [`column_targets`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinitionTabular.column_targets) to identify unavailable columns.
* **Return type:**
  list\[[`ObjectHistory`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting#ansys.grantami.core.mi_meta_classes.ObjectHistory) or [`None`](https://docs.python.org/3/library/constants.html#None)]

#### *property* column\_targets *: [List](https://docs.python.org/3/library/typing.html#typing.List)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]*

Column meta-types.

Possible column targets are:

* `Local`: Contains local data..

* `TargetAttribute`: Contains data from a linked attribute.

* `TargetRecord`: Contains the records that the rows link to.

* `TargetTabularColumn`: Contains data from a linked tabular column.

* `Unavailable`: Data cannot be viewed, usually due to version control or permissions.

* **Return type:**
  [list](https://docs.python.org/3/library/stdtypes.html#list)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]

#### *property* column\_types *: [List](https://docs.python.org/3/library/typing.html#typing.List)\[[str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)]*

Data type for each column.

* **Returns:**
  List of equal length to the number of columns. Each item is one of a type codes for local tabular columns,
  an empty string for linked columns, or [`None`](https://docs.python.org/3/library/constants.html#None) for unavailable columns. Use [`column_targets`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinitionTabular.column_targets) to
  identify unavailable columns.
* **Return type:**
  list\[str or [`None`](https://docs.python.org/3/library/constants.html#None)]

### Examples

```python theme={null}
>>> tabular_attribute.column_types  
['STXT', 'POIN', 'DISC', '', '']
```

#### SEE ALSO

[`AttributeDefinition.type`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition.type)
: List of type codes.

#### *property* column\_units *: [List](https://docs.python.org/3/library/typing.html#typing.List)\[[str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)]*

Unit symbols for each column.

* **Return type:**
  [list](https://docs.python.org/3/library/stdtypes.html#list)\[[str](https://docs.python.org/3/library/stdtypes.html#str) | None]

#### *property* columns *: [List](https://docs.python.org/3/library/typing.html#typing.List)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]*

Column names (headers).

* **Return type:**
  [list](https://docs.python.org/3/library/stdtypes.html#list)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]

#### *property* columns\_to\_process *: [List](https://docs.python.org/3/library/typing.html#typing.List)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]*

Columns to be included when populating an AttributeTabular object.

Defaults to all columns, which will fully populate the AttributeTabular object. The content of unprocessed
columns depends on the column type:

* Ignored linked columns contain the value `<Ignored>` in all cells.
* Ignored local tabular columns contain instances of [`IgnoredLocalTabularCell`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/tabular#ansys.grantami.core._mi_tabular_value_classes.IgnoredLocalTabularCell). These objects contain no
  accessible data, and they cannot be modified.

Ignoring columns that aren’t required by the script can significantly improve performance for operations with
large amounts of tabular data.

* **Return type:**
  [list](https://docs.python.org/3/library/stdtypes.html#list)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]

### Notes

This property must be set on the AttributeDefinitionTabular object associated with the Table object
*before* data export for the setting to have an effect.

#### *property* discrete\_values *: [List](https://docs.python.org/3/library/typing.html#typing.List)\[[List](https://docs.python.org/3/library/typing.html#typing.List)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]]*

All possible discrete values, for all columns with the discrete data type.

* **Return type:**
  [list](https://docs.python.org/3/library/stdtypes.html#list)\[[list](https://docs.python.org/3/library/stdtypes.html#list)\[[str](https://docs.python.org/3/library/stdtypes.html#str)]]

#### *property* ignore\_linked\_records *: [bool](https://docs.python.org/3/library/functions.html#bool)*

Whether to ignore linked records when creating Record objects.

Defaults to [`False`](https://docs.python.org/3/library/constants.html#False). Even when set to [`True`](https://docs.python.org/3/library/constants.html#True), linking values are still available if populated.

Ignoring linked records if they aren’t required can significantly improve performance for operations with large
amounts of tabular data.

* **Return type:**
  [bool](https://docs.python.org/3/library/functions.html#bool)

### Notes

This property must be set on the AttributeDefinitionTabular object associated with the Table object
*before* data export for the setting to have an effect.

#### *property* linking\_attribute *: [None](https://docs.python.org/3/library/constants.html#None) | [AttributeDefinition](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition)*

Short text-type attribute used to link rows in the tabular data attribute to records.

* **Returns:**
  The attribute definition of the linking attribute. Returns [`None`](https://docs.python.org/3/library/constants.html#None) for purely local tabular data or if the
  user annot access the table in Granta MI.
* **Return type:**
  [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) or [`None`](https://docs.python.org/3/library/constants.html#None)

#### *property* linking\_table *: [None](https://docs.python.org/3/library/constants.html#None) | [Table](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table.md#ansys.grantami.core.mi_tree_classes.Table)*

[`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table) object which the linking attribute belongs to.

* **Returns:**
  The table object that the tabular attribute is linked to. Returns [`None`](https://docs.python.org/3/library/constants.html#None) for purely local tabular data or
  if the user cannot access the table in Granta MI.
* **Return type:**
  [`Table`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table) or [`None`](https://docs.python.org/3/library/constants.html#None)

### *class* AttributeDefinitionMultiValue

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for functional and point data attributes.

Provides access to functional data parameters.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

#### *property* parameters *: [Dict](https://docs.python.org/3/library/typing.html#typing.Dict)\[[str](https://docs.python.org/3/library/stdtypes.html#str), [AttributeParameter](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting.md#ansys.grantami.core.mi_attribute_classes.AttributeParameter)]*

Parameters associated with the attribute, indexed by name.

* **Return type:**
  dict\[str, [`AttributeParameter`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting#ansys.grantami.core.mi_attribute_classes.AttributeParameter)]

### *class* AttributeDefinitionFloatFunctional

Extended [`AttributeDefinitionMultiValue`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinitionMultiValue) class for float functional attributes.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

#### *property* axis\_name *: [str](https://docs.python.org/3/library/stdtypes.html#str)*

Y-axis label.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str)

#### *property* database\_unit *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

The database unit for this attribute.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str) or None

#### *property* parameters *: [Dict](https://docs.python.org/3/library/typing.html#typing.Dict)\[[str](https://docs.python.org/3/library/stdtypes.html#str), [AttributeParameter](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting.md#ansys.grantami.core.mi_attribute_classes.AttributeParameter)]*

Parameters associated with the attribute, indexed by name.

* **Return type:**
  dict\[str, [`AttributeParameter`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting#ansys.grantami.core.mi_attribute_classes.AttributeParameter)]

#### *property* unit *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

Unit symbol.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str) or None

### *class* AttributeDefinitionPoint

Extended [`AttributeDefinitionMultiValue`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinitionMultiValue) class for point attributes.

Provides access to point-specific information and methods.

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

#### *property* database\_unit *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

The database unit for this attribute.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str) or None

#### *property* default\_unit *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

Attribute database unit in the active unit system.

The unit used by MI Viewer or MI Explore to display this attribute in the active unit system. This
property is only affected by the unit system choice, and is not affected by [`Table.set_display_unit()`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.set_display_unit).

* **Returns:**
  [`None`](https://docs.python.org/3/library/constants.html#None) if the attribute is dimensionless.
* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str) or None

#### *property* is\_multivalued *: [bool](https://docs.python.org/3/library/functions.html#bool)*

Whether this attribute allows multiple values to be set.

* **Return type:**
  [bool](https://docs.python.org/3/library/functions.html#bool)

#### *property* max *: [float](https://docs.python.org/3/library/functions.html#float) | [None](https://docs.python.org/3/library/constants.html#None)*

Maximum value of the data attribute.

Affected by user read permissions.

* **Return type:**
  float or [`None`](https://docs.python.org/3/library/constants.html#None)

#### *property* min *: [float](https://docs.python.org/3/library/functions.html#float) | [None](https://docs.python.org/3/library/constants.html#None)*

Minimum value of the data attribute.

Affected by user read permissions.

* **Return type:**
  float or [`None`](https://docs.python.org/3/library/constants.html#None)

#### *property* parameters *: [Dict](https://docs.python.org/3/library/typing.html#typing.Dict)\[[str](https://docs.python.org/3/library/stdtypes.html#str), [AttributeParameter](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting.md#ansys.grantami.core.mi_attribute_classes.AttributeParameter)]*

Parameters associated with the attribute, indexed by name.

* **Return type:**
  dict\[str, [`AttributeParameter`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/supporting#ansys.grantami.core.mi_attribute_classes.AttributeParameter)]

#### *property* unit *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)*

Unit symbol.

* **Return type:**
  [str](https://docs.python.org/3/library/stdtypes.html#str) or None

### *class* AttributeDefinitionUnsupported

Extended [`AttributeDefinition`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinition) class for unsupported attribute types (discrete functional).

Provides access to the limited information available for unsupported attribute types (name, type and unit, if
present).

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.

### *class* AttributeDefinitionDiscreteFunctional

Extended [`AttributeDefinitionUnsupported`](#ansys.grantami.core.mi_attribute_classes.AttributeDefinitionUnsupported) class for discrete functional attributes.

Provides access to the limited information available (name, type and unit, if present).

### Notes

Do not create instances of this class; it represents a pre-existing database structure. Use
[`Table.attributes`](https://developer.synopsys.com/docs/granta-mi/granta-mi-scripting-toolkit/streamlined_api/table#ansys.grantami.core.mi_tree_classes.Table.attributes) to access instances of this class.
