Skip to main content

Granta MI Scripting Toolkit 4.2

Foundation API reference

Last update: 16.07.2025

Services reference

BrowseService

class BrowseService(mi_session, retries=0)

The Browse service provides read-only operation for a Granta MI Server.

GetDatabases()

List the databases available on the Granta MI Server.

GetTables(_req)

List the tables contained in a particular Granta MI Database.

GetRootNode(_req)

Returns information about the root node of a particular Table in a Granta MI Database. This can be passed to GetChildNodes operation to find the contents of the rest of the node-tree of the Table.

GetChildNodes(_req)

Returns information about the child nodes of the given node in the node-tree of a Granta MI Table.

GetSubsets(_req)

List the Subsets for a Granta MI Database or for one Table in a Database.

GetAssociatedRecords(_req)

Returns all the Records, in a single target Table, that are associated with each of a given set of source Records, via Tabular Data links. These links can be in the forward or reverse direction. Note that, if there is more than one Tabular Attribute linking the source and target Tables, the Associated Records are the union of all those linked by each of the Tabular Attributes.

GetAttributeDetails(_req)

Returns detailed meta-information about given Attribute(s) in a Granta MI Database. Does not retrieve values of the Data; for that, use the DataExport service.

GetTreeRecords(_req)

Returns name, record type, and some tree information for the given record(s). Does not retrieve the tree children; for that, use the GetChildRecords operation.

GetRecordAttributes(_req)

Returns information about which Attributes have Data, for given Record(s). Includes information about when Data was created and retired, in a Version-Controlled Table. Does not retrieve values of the Data; for that, use the DataExport or EngineeringData services.

GetUnitSystems(_req)

Returns information about the unit systems known to a Granta MI Database

GetRecordVersions(_req)

Returns version information about the records specified in the request object.

GetRecordLinkGroups(_req)

Gets details of Record Link Groups in a Granta MI Database.

GetLinkedRecords(_req)

Returns the linked records for specified records, for one or more record link groups.

GetAttributeParameters(_req)

Gets detailed information about the Parameters that are declared to be usable with given Attribute(s) in a Granta MI Database. Can only be used with Functional Attributes or Multi-Valued Attributes.

GetParameterDetails(_req)

Returns detailed information about the given Parameter(s) in a Granta MI Database.

GetMetaAttributes(_req)

Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.

GetDatabaseParameters(_req)

List the parameter(s) in a Granta MI Database.

GetIntegrationProfiles(_req)

List the profiles available on a Granta MI Database.

GetLayouts(_req)

List the Layouts for an MI Database or for one Table in a Database.

ResolveReferences(_req)

Checks whether the specified Granta MI entities exist in the database and, if so, whether the current user has read permissions or write permissions for it.

GetUnitConversions(_req)

Gets all the unit conversions available for a specified unit or unit system.

GetDatasheetPath(_req)

For each record reference gets the relative portion of an HTTP URL to a Granta MI datasheet, served by MI Viewer.

GetDatasheetPathParameterized(_req)

Gets information that may be used to construct an HTTP URL to a Granta MI datasheet, served by MI Viewer.

GetCurrencies()

Returns the currencies available in the Granta MI Server.

GetUnits(_req)

Returns information about the units known to one or more Granta MI Databases

SearchService

class SearchService(mi_session, retries=0)

The Search service finds Records, within Granta MI Databases, matching specified criteria.

SimpleTextSearch(_req)

Searches for records matching simple text criteria.

CriteriaSearch(_req)

Searches for records matching attribute-based criteria.

RecordNameSearch(_req)

Searches for Records with a given exact Record name.

DataImportService

class DataImportService(mi_session, retries=0)

The DataImport service writes data to attributes of records in Granta MI Databases.

SetRecordAttributes(_req)

Sets the data values for the given attribute(s) and record(s) in a Granta MI Database. This method will create any records or folders which do not already exist in the database (however, new folders should be created with ‘EnsureRecordFolderPaths’ instead). Note: This operation can accept an arbitrary number of attributes and records to be imported, but in practice there is a fairly low limit to the amount of data that can be imported in a single operation. Client code should perform large imports in small chunks.

Adds or removes static Links between record(s) in a Granta MI Database.

GetUploadAddresses(_req)

Returns an address to which a datum can be uploaded, for each combination of given sets of records and attributes in a Granta MI database. Each address will be an HTTP or HTTPS URL. The upload service only supports a subset of all available Granta MI attribute types, but this operation will give an address for an attribute of any type.

EnsureRecordFolderPaths(_req)

Checks whether given hierarchies of folders exist, creating them if not. Each hierarchy is specified as a sequence of tree names; where the folder needs to be created, this name is also used as the full name of the created folder. New folders will be assigned to their parents’ subsets; existing folders are not assigned or removed from any subsets. If a colour is specified, new folders will be of that colour; existing folders’ colours are never changed. Note: this operation can accept an arbitrary number of Record Folder paths to be ensured, but in practice there is a limit to the amount of changes that can be done in a single operation.

DeleteOrWithdrawIfLatestRecordVersion(_req)

Deletes or withdraws the latest version of the specified record(s). In a version-controlled table, the latest version of a record can be seen by Write users in Edit mode of MI Viewer. This operation will revert (or delete) unreleased record versions, withdraw released versions, and skip withdrawn versions. In a non-version-controlled table, records will only have one version. This operation will delete specified records of this type. Note: this operation will only act on the latest record version. In the case where the specified record corresponds to a record version that is an earlier version, the operation will return a fault.

DataExportService

class DataExportService(mi_session, retries=0)

The DataExport service retrieves and returns data from attributes of records in Granta MI Databases.

GetRecordAttributesByRef(_req)

Retrieves the data values for the given attribute(s) and record(s) in a Granta MI Database.

EngineeringDataService

class EngineeringDataService(mi_session, retries=0)

The EngineeringData service provides custom data export operations for a Granta MI Server.

GetAvailableExporters(_req)

Returns the FEA Exporter configurations known to the MI Server, optionally filtering for their applicability to particular situations.

ExportRecordData(_req)

Performs an FEA Export and returns the result as the response.

GetExporterParameters(_req)

Returns information about the MI Parameter Values that will need to be chosen, to run the specified Exporter on the specified Record(s).

ExportersForRecords(_req)

Returns the FEA Exporter configurations, known to the MI Server, filtering for their applicability to given Record(s) and optionally to particular situations.

RecordManipulatorService

class RecordManipulatorService(mi_session, retries=0)

The Record Manipulator service provides a way to move a record whilst preserving its metadata and attribute values.

MoveRecord(_req)

Reparents a record. Metadata such as creation date will be preserved, along with attribute values.

Objects reference

AssociatedRecords

class AssociatedRecords(associatedRecords=None, sourceRecord=None, _isOwner=True)

Bases: object

Object containing a source RecordReference object and an array of associated RecordReference objects.

property associatedRecords

Property associatedRecords is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property sourceRecord

Property sourceRecord is of type RecordReference.

property c_obj

Pointer to the underlying C-object

AttributeAddress

class AttributeAddress(URL=None, attributeID=None, attributeName=None, attributeStandardName=None, _isOwner=True)

Bases: object

The upload URL of an attribute and an attribute identifier. The attribute is identified by the identity, name, and where available, standard name.

  • Parameters:
    • URL (str)
    • attributeID (int)
    • attributeName (str)
    • attributeStandardName (str)

property attributeID

Property attributeID is of type int.

  • Return type: int

property attributeName

Property attributeName is of type str.

  • Return type: str

property attributeStandardName

Property attributeStandardName is of type str.

  • Return type: str

property URL

Property URL is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

AttributeCategory

class AttributeCategory(categoryAttributeDetails=None, name=None, order=None, recordLinkGroupDetails=None, displayNames=None, _isOwner=True)

Bases: object

Gives the details of contents of a category in a layout. Does not include Tabular Data Association Chains.

property categoryAttributeDetails

Property categoryAttributeDetails is a list of CategoryAttributeDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

property recordLinkGroupDetails

Property recordLinkGroupDetails is a list of RecordLinkGroupDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

property displayNames

Property displayNames is a list of DisplayName objects.

WARNING

Do not attempt to edit or append to the returned value.

property name

Property name is of type str.

  • Return type: str

property order

Property order is of type int.

  • Return type: int

AddCategoryAttributeDetail(_categoryAttributeDetail)

Appends _categoryAttributeDetail to categoryAttributeDetails property on AttributeCategory C-object.

AddRecordLinkGroupDetail(_recordLinkGroupDetail)

Appends _recordLinkGroupDetail to recordLinkGroupDetails property on AttributeCategory C-object.

property c_obj

Pointer to the underlying C-object

AttributeDetail

class AttributeDetail(about=None, attribute=None, axisName=None, chartable=None, databaseUnit=None, defaultThreshold=None, discreteValues=None, identity=None, isMeta=None, isMultiValued=None, isSearchable=None, isUnique=None, minMax=None, name=None, order=None, revisionInfo=None, tabular=None, type=None, isFunctionalRange=None, isOrdered=None, displayNames=None, helpInfo=None, _isOwner=True)

Bases: object

Detailed meta-information about an attribute in a Granta MI database. Does not include values of the attribute. For requests, the name, and type are required.

property about

Property about is of type NamedAttribute. Only populated if ‘isMeta’ is True.

property attribute

Property attribute is of type AttributeReference.

property axisName

Property axisName is of type str.

  • Return type: str

property chartable

Property chartable is of type bool.

property databaseUnit

Property databaseUnit is of type str.

  • Return type: str

property defaultThreshold

Property defaultThreshold is of type str.

  • Return type: str

property discreteValues

Property discreteValues is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property displayNames

Property displayNames is a list of DisplayName objects.

WARNING

Do not attempt to edit or append to the returned value.

property helpInfo

Property helpInfo is of type HelpInfo.

property identity

Property identity is of type int.

  • Return type: int

property isFunctionalRange

Property isFunctionalRange is of type bool.

property isMeta

Property isMeta is of type bool. If this is True, the ‘about’ property may have additional information about the related parent attribute.

property isMultiValued

Property isMultiValued is of type bool.

property isOrdered

Property isOrdered is of type bool.

property isSearchable

Property isSearchable is of type bool.

property isUnique

Property isUnique is of type bool.

property minMax

Property minMax is of type MinMax.

property name

Property name is of type str.

  • Return type: str

property order

Property order is of type int.

  • Return type: int

property revisionInfo

Property revisionInfo is of type RevisionInfo.

property tabular

Property tabular is of type TabularDetail.

property type

Property type is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

AttributeExporterParameters

class AttributeExporterParameters(attribute=None, dataPresence=None, graphDomains=None, parameters=None, _isOwner=True)

Bases: object

A type to contain an attribute along with associated parameters and domains. All Parameters are declared on the MI parameterised Attribute, even if not used in some combination of Exporter and Record. It also contains the possible domains in which the fixed Parameter values must be chosen.

class DataPresence

Bases: object

Unknown = 0

Present = 1

NotApplicable = 2

Missing = 3

DataIncompatibleWithConfiguration = 4

property graphDomains

Property graphDomains is a list of GraphDomain objects. Each graph domain contains information on the possible values that the corresponding parameter (by list index) can take.

WARNING

Do not attempt to edit or append to the returned value.

property parameters

Property parameters is a list of ExporterParameter objects. This is a list of parameters that parameterize the attribute in question.

WARNING

Do not attempt to edit or append to the returned value.

property attribute

Property attribute is of type NamedAttribute.

property dataPresence

Property dataPresence is of type int. See AttributeExporterParameters.DataPresence for supported values.

  • Return type: int

AddGraphDomain(_graphDomain)

Appends _graphDomain to graphDomains property on AttributeExporterParameters C-object.

AddParameter(_exporterParameter)

Appends _exporterParameter to parameters property on AttributeExporterParameters C-object.

property c_obj

Pointer to the underlying C-object

AttributeMetaAttributes

class AttributeMetaAttributes(metaAttributes=None, parentAttribute=None, _isOwner=True)

Bases: object

Lists the Meta-Attributes of a particular Attribute in a Granta MI Database Table.

property metaAttributes

Property metaAttributes is a list of NamedAttribute objects.

WARNING

Do not attempt to edit or append to the returned value.

property parentAttribute

Property parentAttribute is of type AttributeReference.

property c_obj

Pointer to the underlying C-object

AttributeReference

class AttributeReference(DBKey=None, attributeID=None, isStandardName=None, name=None, partialTableReference=None, pseudoAttribute=None, _isOwner=True)

Bases: object

Identification of a particular attribute in a Granta MI database. For requests, a DBKey is required and either the attribute ID or the attribute name. If the name is not a standard name, then a PartialTableReference is also required.

class MIPseudoAttributeReference

Bases: object

name = 0

shortName = 1

subsets = 2

releasedDate = 3

modifiedDate = 4

recordType = 5

recordHistoryIdentity = 6

recordColor = 7

recordGUID = 10

recordHistoryGUID = 11

recordVersionNumber = 12

tableName = 13

writable = 16

parentName = 17

parentShortName = 18

parentRecordHistoryIdentity = 19

parentRecordHistoryGUID = 20

createdDate = 21

creator = 22

lastModifier = 23

property attributeID

Property attributeID is of type int.

  • Return type: int

property DBKey

Property DBKey is of type str.

  • Return type: str

property isStandardName

Property isStandardName is of type bool.

property name

Property name is of type str.

  • Return type: str

property partialTableReference

Property partialTableReference is of type PartialTableReference.

property pseudoAttribute

Property pseudoAttribute is of type int. See AttributeReference.MIPseudoAttributeReference for supported values.

  • Return type: int

property c_obj

Pointer to the underlying C-object

AttributeValue

class AttributeValue(attributeID=None, attributeName=None, attributeStandardName=None, dataType=None, dateDataType=None, dateTimeDataType=None, discreteDataValue=None, fileDataType=None, floatFunctionalGriddedDataType=None, floatFunctionalSeriesDataType=None, hyperlinkDataValue=None, integerDataValue=None, logicalDataValue=None, longTextDataType=None, pictureDataType=None, pointDataType=None, rangeDataType=None, shortTextDataType=None, subsetsDataType=None, tabularDataType=None, discreteFunctionalGriddedDataType=None, discreteFunctionalSeriesDataType=None, _isOwner=True)

Bases: object

Type representing the value of a piece of data for a particular attribute. Access supported data types, and the attribute identity by Name, ID, or Standard Name.

property attributeID

Property attributeID is of type int.

  • Return type: int

property attributeName

Property attributeName is of type str.

  • Return type: str

property attributeStandardName

Property attributeStandardName is of type str.

  • Return type: str

property dataType

Property dataType is of type str.

  • Return type: str

property dateDataType

Property dateDataType is of type DateDataType.

property dateTimeDataType

Property dateTimeDataType is of type DateTimeDataType.

property discreteDataValue

Property discreteDataValue is of type DiscreteDataType.

property discreteFunctionalGriddedDataType

Property discreteFunctionalGriddedDataType is of type DiscreteFunctionalGriddedDataType.

property discreteFunctionalSeriesDataType

Property discreteFunctionalSeriesDataType is of type DiscreteFunctionalSeriesDataType.

property fileDataType

Property fileDataType is of type FileDataType.

property floatFunctionalGriddedDataType

Property floatFunctionalGriddedDataType is of type FloatFunctionalGriddedDataType.

property floatFunctionalSeriesDataType

Property floatFunctionalSeriesDataType is of type FloatFunctionalSeriesDataType.

property hyperlinkDataValue

Property hyperlinkDataValue is of type HyperlinkDataType.

property integerDataValue

Property integerDataValue is of type IntegerDataType.

property logicalDataValue

Property logicalDataValue is of type LogicalDataType.

property longTextDataType

Property longTextDataType is of type LongTextDataType.

property pictureDataType

Property pictureDataType is of type PictureDataType.

property pointDataType

Property pointDataType is of type PointDataType.

property rangeDataType

Property rangeDataType is of type RangeDataType.

property shortTextDataType

Property shortTextDataType is of type ShortTextDataType.

property subsetsDataType

Property subsetsDataType is of type SubsetsDataType.

property tabularDataType

Property tabularDataType is of type TabularDataType.

property c_obj

Pointer to the underlying C-object

BetweenDateTimesSearchValue

class BetweenDateTimesSearchValue(highEnd=None, lowEnd=None, tabularColumn=None, _isOwner=True)

Bases: object

Search criterion to search for data between two times. This criterion type is specific to DateTime Attributes. Both a LowEnd and a HighEnd value are required. The date format is in XSD’s dateTime data type (YYYY-MM-DDThh:mm:ss).

  • Parameters:
    • highEnd (str)
    • lowEnd (str)
    • tabularColumn (str)

property highEnd

Property highEnd is of type str.

  • Return type: str

property lowEnd

Property lowEnd is of type str.

  • Return type: str

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

BetweenSearchValue

class BetweenSearchValue(highEnd=None, lowEnd=None, tabularColumn=None, _isOwner=True)

Bases: object

Search criterion to search for data between two values. Only Point, Range, and Integer attributes are supported by this search criteria. Both a LowEnd and a HighEnd value are required.

property highEnd

Property highEnd is of type HighEndSearchValue.

property lowEnd

Property lowEnd is of type LowEndSearchValue.

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

BinaryDataSettings

class BinaryDataSettings(binaryDataRepresentation=None, maxImageSize=None, _isOwner=True)

Bases: object

Settings for exporting file and picture data.

  • Parameters:

property binaryDataRepresentation

Property binaryDataRepresentation is of type int. See GRANTA_Constants for supported values.

  • Return type: int

property maxImageSize

Property maxImageSize is of type RasterSize.

property c_obj

Pointer to the underlying C-object

BrowseService

class BrowseService(mi_session, retries=0)

Bases: Service

The Browse service provides read-only operation for a Granta MI Server.

GetDatabases()

List the databases available on the Granta MI Server.

GetTables(_req)

List the tables contained in a particular Granta MI Database.

GetRootNode(_req)

Returns information about the root node of a particular Table in a Granta MI Database. This can be passed to GetChildNodes operation to find the contents of the rest of the node-tree of the Table.

GetChildNodes(_req)

Returns information about the child nodes of the given node in the node-tree of a Granta MI Table.

GetSubsets(_req)

List the Subsets for a Granta MI Database or for one Table in a Database.

GetAssociatedRecords(_req)

Returns all the Records, in a single target Table, that are associated with each of a given set of source Records, via Tabular Data links. These links can be in the forward or reverse direction. Note that, if there is more than one Tabular Attribute linking the source and target Tables, the Associated Records are the union of all those linked by each of the Tabular Attributes.

GetAttributeDetails(_req)

Returns detailed meta-information about given Attribute(s) in a Granta MI Database. Does not retrieve values of the Data; for that, use the DataExport service.

GetTreeRecords(_req)

Returns name, record type, and some tree information for the given record(s). Does not retrieve the tree children; for that, use the GetChildRecords operation.

GetRecordAttributes(_req)

Returns information about which Attributes have Data, for given Record(s). Includes information about when Data was created and retired, in a Version-Controlled Table. Does not retrieve values of the Data; for that, use the DataExport or EngineeringData services.

GetUnitSystems(_req)

Returns information about the unit systems known to a Granta MI Database

GetRecordVersions(_req)

Returns version information about the records specified in the request object.

GetRecordLinkGroups(_req)

Gets details of Record Link Groups in a Granta MI Database.

GetLinkedRecords(_req)

Returns the linked records for specified records, for one or more record link groups.

GetAttributeParameters(_req)

Gets detailed information about the Parameters that are declared to be usable with given Attribute(s) in a Granta MI Database. Can only be used with Functional Attributes or Multi-Valued Attributes.

GetParameterDetails(_req)

Returns detailed information about the given Parameter(s) in a Granta MI Database.

GetMetaAttributes(_req)

Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.

GetDatabaseParameters(_req)

List the parameter(s) in a Granta MI Database.

GetIntegrationProfiles(_req)

List the profiles available on a Granta MI Database.

GetLayouts(_req)

List the Layouts for an MI Database or for one Table in a Database.

ResolveReferences(_req)

Checks whether the specified Granta MI entities exist in the database and, if so, whether the current user has read permissions or write permissions for it.

GetUnitConversions(_req)

Gets all the unit conversions available for a specified unit or unit system.

GetDatasheetPath(_req)

For each record reference gets the relative portion of an HTTP URL to a Granta MI datasheet, served by MI Viewer.

GetDatasheetPathParameterized(_req)

Gets information that may be used to construct an HTTP URL to a Granta MI datasheet, served by MI Viewer.

GetCurrencies()

Returns the currencies available in the Granta MI Server.

GetUnits(_req)

Returns information about the units known to one or more Granta MI Databases

CategoryAttributeDetail

class CategoryAttributeDetail(about=None, attribute=None, axisName=None, chartable=None, databaseUnit=None, defaultThreshold=None, discreteValues=None, helpInfo=None, identity=None, isMeta=None, isMultiValued=None, isReadOnly=None, isRequired=None, isSearchable=None, name=None, order=None, revisionInfo=None, type=None, _isOwner=True)

Bases: object

Gives the attribute details with a client read only and is required flag.

property about

Property about is of type NamedAttribute.

property attribute

Property attribute is of type AttributeReference.

property axisName

Property axisName is of type str.

  • Return type: str

property chartable

Property chartable is of type bool.

property databaseUnit

Property databaseUnit is of type str.

  • Return type: str

property defaultThreshold

Property defaultThreshold is of type str.

  • Return type: str

property discreteValues

Property discreteValues is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property helpInfo

Property helpInfo is of type HelpInfo.

property identity

Property identity is of type int.

  • Return type: int

property isMeta

Property isMeta is of type bool.

property isMultiValued

Property isMultiValued is of type bool.

property isReadOnly

Property isReadOnly is of type bool.

property isRequired

Property isRequired is of type bool.

property isSearchable

Property isSearchable is of type bool.

property name

Property name is of type str.

  • Return type: str

property order

Property order is of type int.

  • Return type: int

property revisionInfo

Property revisionInfo is of type RevisionInfo.

property type

Property type is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

Constraint

class Constraint(label=None, parameter=None, parameterValue=None, _isOwner=True)

Bases: object

A constraint on functional data. For requests, both parameter and parameter value are required.

property label

Property label is of type str.

  • Return type: str

property parameter

Property parameter is of type ParameterReference.

property parameterValue

Property parameterValue is of type ParameterValue.

property c_obj

Pointer to the underlying C-object

Constraints

class Constraints(constraints=None, _isOwner=True)

Bases: object

A container of constraints.

property constraints

Property constraints is a list of Constraint objects.

WARNING

Do not attempt to edit or append to the returned value.

AddConstraint(_constraint)

Appends _constraint to constraints property on Constraints C-object.

property c_obj

Pointer to the underlying C-object

ContainsAllSearchValue

class ContainsAllSearchValue(tabularColumn=None, values=None, _isOwner=True)

Bases: object

Search criterion to search for discrete data types that contain all of the specified search values. If the discrete values of the data include further values, it still passes. This criterion type is specific to discrete attributes.

  • Parameters:

property values

Property values is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

AddValue(value)

Appends value to values property on ContainsAllSearchValue C-object.

  • Parameters: value (str)

property c_obj

Pointer to the underlying C-object

ContainsAnySearchValue

class ContainsAnySearchValue(tabularColumn=None, values=None, _isOwner=True)

Bases: object

Search criterion to search for discrete data types that contain any of the specified search values. This criterion type is specific to discrete attributes.

  • Parameters:

property values

Property values is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

AddValue(value)

Appends value to values property on ContainsAnySearchValue C-object.

  • Parameters: value (str)

property c_obj

Pointer to the underlying C-object

ContainsSearchValue

class ContainsSearchValue(tabularColumn=None, value=None, _isOwner=True)

Bases: object

Search criterion to search for data that contains the specified search text value. Search criterion applies to text, logical, and discrete attributes. For logicals, specify ‘true’ or ‘false’ as the text.

  • Parameters:
    • tabularColumn (str)
    • value (str)

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

CriteriaSearch

class CriteriaSearch(DBKey=None, parameterValues=None, populateGUIDs=None, recordFilter=None, searchCriteria=None, searchFilter=None, searchMode=None, significantFigures=None, _isOwner=True)

Bases: object

The input for the CriteriaSearch operation. Both the DBKey and searchCriteria parameters are required. If no subsets are specified, only the default subset will be searched.

property parameterValues

Property parameterValues is a list of UnittedParameterValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property searchCriteria

Property searchCriteria is a list of RecordSearchCriterion objects.

WARNING

Do not attempt to edit or append to the returned value.

property DBKey

Property DBKey is of type str.

  • Return type: str

property populateGUIDs

Property populateGUIDs is of type bool.

property recordFilter

Property recordFilter is of type RecordFilter.

property searchFilter

Property searchFilter is of type int. See GRANTA_Constants for supported values.

  • Return type: int

property searchMode

Property searchMode is of type int. See GRANTA_Constants for supported values.

  • Return type: int

property significantFigures

Property significantFigures is of type int.

  • Return type: int

AddParameterValue(_unittedParameterValue)

Appends _unittedParameterValue to parameterValues property on CriteriaSearch C-object.

AddSearchCriteria(_recordSearchCriterion)

Appends _recordSearchCriterion to searchCriteria property on CriteriaSearch C-object.

property c_obj

Pointer to the underlying C-object

CurrencyDetail

class CurrencyDetail(code=None, factor=None, name=None, _isOwner=True)

Bases: object

Provides the currency code and name. Currencies are uniquely identified by their ISO 4217 code, the currency name is also provided.

property code

Property code is of type str.

  • Return type: str

property factor

Property factor is of type float.

property name

Property name is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DataExportService

class DataExportService(mi_session, retries=0)

Bases: Service

The DataExport service retrieves and returns data from attributes of records in Granta MI Databases.

GetRecordAttributesByRef(_req)

Retrieves the data values for the given attribute(s) and record(s) in a Granta MI Database.

DataImportService

class DataImportService(mi_session, retries=0)

Bases: Service

The DataImport service writes data to attributes of records in Granta MI Databases.

SetRecordAttributes(_req)

Sets the data values for the given attribute(s) and record(s) in a Granta MI Database. This method will create any records or folders which do not already exist in the database (however, new folders should be created with ‘EnsureRecordFolderPaths’ instead). Note: This operation can accept an arbitrary number of attributes and records to be imported, but in practice there is a fairly low limit to the amount of data that can be imported in a single operation. Client code should perform large imports in small chunks.

Adds or removes static Links between record(s) in a Granta MI Database.

GetUploadAddresses(_req)

Returns an address to which a datum can be uploaded, for each combination of given sets of records and attributes in a Granta MI database. Each address will be an HTTP or HTTPS URL. The upload service only supports a subset of all available Granta MI attribute types, but this operation will give an address for an attribute of any type.

EnsureRecordFolderPaths(_req)

Checks whether given hierarchies of folders exist, creating them if not. Each hierarchy is specified as a sequence of tree names; where the folder needs to be created, this name is also used as the full name of the created folder. New folders will be assigned to their parents’ subsets; existing folders are not assigned or removed from any subsets. If a colour is specified, new folders will be of that colour; existing folders’ colours are never changed. Note: this operation can accept an arbitrary number of Record Folder paths to be ensured, but in practice there is a limit to the amount of changes that can be done in a single operation.

DeleteOrWithdrawIfLatestRecordVersion(_req)

Deletes or withdraws the latest version of the specified record(s). In a version-controlled table, the latest version of a record can be seen by Write users in Edit mode of MI Viewer. This operation will revert (or delete) unreleased record versions, withdraw released versions, and skip withdrawn versions. In a non-version-controlled table, records will only have one version. This operation will delete specified records of this type. Note: this operation will only act on the latest record version. In the case where the specified record corresponds to a record version that is an earlier version, the operation will return a fault.

DatabaseDetail

class DatabaseDetail(DBKey=None, author=None, company=None, volumeName=None, DBGUID=None, DBVersionGUID=None, _isOwner=True)

Bases: object

Detailed meta-information about a Granta MI database.

  • Parameters:
    • DBKey (str)
    • author (str)
    • company (str)
    • volumeName (str)
    • DBGUID (str)
    • DBVersionGUID (str)

property author

Property author is of type str.

  • Return type: str

property company

Property company is of type str.

  • Return type: str

property DBGUID

Property DBGUID is of type str.

  • Return type: str

property DBKey

Property DBKey is of type str.

  • Return type: str

property DBVersionGUID

Property DBVersionGUID is of type str.

  • Return type: str

property volumeName

Property volumeName is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DatabaseRevision

class DatabaseRevision(revisionDate=None, revisionNote=None, username=None, hasRevisionNote=None, _isOwner=True)

Bases: object

Information about a specific database revision. Includes the author, the date and time, and the transaction note (if present).

  • Parameters:
    • revisionDate (str)
    • revisionNote (str)
    • username (str)
    • hasRevisionNote (bool)

property hasRevisionNote

Property hasRevisionNote is of type bool.

property revisionDate

Property revisionDate is of type str.

  • Return type: str

property revisionNote

Property revisionNote is of type str.

  • Return type: str

property username

Property username is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DatabaseUnitSet

class DatabaseUnitSet(DBKey=None, unitSymbols=None, _isOwner=True)

Bases: object

An array of UnitSymbols for a specific database.

property DBKey

Property DBKey is of type str.

  • Return type: str

property unitSymbols

Property unitSymbols is a list of UnitSymbol objects.

WARNING

Do not attempt to edit or append to the returned value.

property c_obj

Pointer to the underlying C-object

DatasheetPath

class DatasheetPath(URL=None, recordReference=None, _isOwner=True)

Bases: object

Link to a record in a Granta MI database. Includes a RecordReference and a URL for the record datasheet.

property recordReference

Property recordReference is of type RecordReference.

property URL

Property URL is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DateDataType

class DateDataType(isApplicable=None, value=None, _isOwner=True)

Bases: IDataValue

Container of date data. The format is YYYY-MM-DD.

  • Parameters:

property isApplicable

Property isApplicable is of type bool.

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DateTimeDataType

class DateTimeDataType(isApplicable=None, value=None, _isOwner=True)

Bases: IDataValue

Container of datetime data. The format is YYYY-MM-DDThh:mm:ss and is compatible with ISO 8601.

  • Parameters:

property isApplicable

Property isApplicable is of type bool.

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DefaultParameterValue

class DefaultParameterValue(discreteValue=None, numericValue=None, type=None, _isOwner=True)

Bases: object

Type representing the default value of a parameter, may be overridden at the datum level, or inherited from the attribute or the database default.

  • Parameters:

property discreteValue

Property discreteValue is of type str.

  • Return type: str

property numericValue

Property numericValue is of type float.

property type

Property type is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DeleteOrWithdrawIfLatestRecordVersionRequest

class DeleteOrWithdrawIfLatestRecordVersionRequest(deleteOrWithdrawRecords=None, notes=None, _isOwner=True)

Bases: object

DeleteOrWithdrawIfLatestRecordVersionRequest. Input for the DeleteOrWithdrawIfLatestRecordVersion operation, containing the DeleteOrWithdrawRecord objects.

property deleteOrWithdrawRecords

Property deleteOrWithdrawRecords is a list of DeleteOrWithdrawRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property notes

Property notes is of type str.

  • Return type: str

AddDeleteOrWithdrawRecord(_deleteOrWithdrawRecord)

Appends _deleteOrWithdrawRecord to deleteOrWithdrawRecords property on DeleteOrWithdrawIfLatestRecordVersionRequest C-object.

property c_obj

Pointer to the underlying C-object

DeleteOrWithdrawIfLatestRecordVersionResponse

class DeleteOrWithdrawIfLatestRecordVersionResponse(c_obj)

Bases: Response

DeleteOrWithdrawIfLatestRecordVersionResponse. Output of the DeleteOrWithdrawIfLatestRecordVersion operation.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a DeleteOrWithdrawIfLatestRecordVersionResponse object.

DeleteOrWithdrawRecord

class DeleteOrWithdrawRecord(recordReference=None, _isOwner=True)

Bases: object

Record to be deleted or withdrawn. Contains a RecordReference.

property recordReference

Property recordReference is of type RecordReference.

property c_obj

Pointer to the underlying C-object

DiscreteDataType

class DiscreteDataType(discreteValues=None, isApplicable=None, _isOwner=True)

Bases: IDataValue

Container of discrete data.

property discreteValues

Property discreteValues is a list of DiscreteValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property isApplicable

Property isApplicable is of type bool.

AddDiscreteValue(_discreteValue)

Appends _discreteValue to discreteValues property on DiscreteDataType C-object.

property c_obj

Pointer to the underlying C-object

DiscreteFunctionalGriddedDataType

class DiscreteFunctionalGriddedDataType(defaultXAxisParameter=None, functionalDataParameterSettings=None, isApplicable=None, values=None, _isOwner=True)

Bases: IDataValue

A type to contain the values of discrete-valued functional gridded data. This type is only valid for export.

property functionalDataParameterSettings

Property functionalDataParameterSettings is a list of FunctionalDataParameterSettings objects.

WARNING

Do not attempt to edit or append to the returned value.

property defaultXAxisParameter

Property defaultXAxisParameter is of type ParameterInformation.

property isApplicable

Property isApplicable is of type bool.

property values

Property values is of type DiscreteFunctionalValues.

AddFunctionalDataParameterSettings(_functionalDataParameterSettings)

Appends _functionalDataParameterSettings to functionalDataParameterSettings property on DiscreteFunctionalGriddedDataType C-object.

property c_obj

Pointer to the underlying C-object

DiscreteFunctionalSeriesDataType

class DiscreteFunctionalSeriesDataType(functionalDataParameterSettings=None, graph=None, isApplicable=None, _isOwner=True)

Bases: IDataValue

A type to contain the values of discrete-valued functional series data. This type is only valid for export.

property functionalDataParameterSettings

Property functionalDataParameterSettings is a list of FunctionalDataParameterSettings objects.

WARNING

Do not attempt to edit or append to the returned value.

property graph

Property graph is of type DiscreteFunctionalSeriesGraph.

property isApplicable

Property isApplicable is of type bool.

AddFunctionalDataParameterSettings(_functionalDataParameterSettings)

Appends _functionalDataParameterSettings to functionalDataParameterSettings property on DiscreteFunctionalSeriesDataType C-object.

property c_obj

Pointer to the underlying C-object

DiscreteFunctionalSeriesGraph

class DiscreteFunctionalSeriesGraph(XAxisParameter=None, hideGraph=None, series=None, _isOwner=True)

A type to contain a collection of DiscreteSeries objects that contain the functional data.

property series

Property series is a list of DiscreteSeries objects.

WARNING

Do not attempt to edit or append to the returned value.

property hideGraph

Property hideGraph is of type bool.

property XAxisParameter

Property XAxisParameter is of type ParameterInformation.

AddSeries(_discreteSeries)

Appends _discreteSeries to series property on DiscreteFunctionalSeriesGraph C-object.

property c_obj

Pointer to the underlying C-object

DiscreteFunctionalValue

class DiscreteFunctionalValue(constraints=None, value=None, isEstimated=None, _isOwner=True)

Bases: object

A single grid point in Gridded Discrete-Valued Functional Data, where the Y-axis value is a discrete value.

property constraints

Property constraints is of type Constraints.

property isEstimated

Property isEstimated is of type bool.

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DiscreteFunctionalValues

class DiscreteFunctionalValues(values=None, _isOwner=True)

Bases: object

A collection of DiscreteFunctionalValue objects.

property values

Property values is a list of DiscreteFunctionalValue objects.

WARNING

Do not attempt to edit or append to the returned value.

AddValue(_discreteFunctionalValue)

Appends _discreteFunctionalValue to values property on DiscreteFunctionalValues C-object.

property c_obj

Pointer to the underlying C-object

DiscreteSeries

class DiscreteSeries(XYPoints=None, constraints=None, _isOwner=True)

Bases: object

Type for functional data which includes X-Y discrete data and any constraints.

property constraints

Property constraints is of type Constraints.

property XYPoints

Property XYPoints is of type XYDiscreteData.

property c_obj

Pointer to the underlying C-object

DiscreteValue

class DiscreteValue(order=None, value=None, _isOwner=True)

Bases: object

The value of a discrete data type. Contains an order and a value.

  • Parameters:

property order

Property order is of type int.

  • Return type: int

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DisplayName

class DisplayName(language=None, translation=None, _isOwner=True)

Bases: object

A language identifier and localized string for the display name of an object.

  • Parameters:
    • language (str)
    • translation (str)

property language

Property language is of type str.

  • Return type: str

property translation

Property translation is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DoesNotContainSearchValue

class DoesNotContainSearchValue(tabularColumn=None, value=None, _isOwner=True)

Bases: object

Search criterion to search for discrete data types that contain none of the specified search values. This criterion type is specific to discrete attributes.

  • Parameters:
    • tabularColumn (str)
    • value (str)

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

DoesNotExistSearchValue

class DoesNotExistSearchValue(tabularColumn=None, _isOwner=True)

Bases: object

Search criterion to search for attributes with no data. All attribute types supported.

  • Parameters: tabularColumn (str)

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

EmptyDataType

class EmptyDataType(_isOwner=True)

Bases: IDataValue

A type that indicates that the TabularDataCell is empty. This type is specific to Tabular attributes, and can be used in update operations to clear the contents of a TabularDataCell.

property c_obj

Pointer to the underlying C-object

EmptyRestResponse

class EmptyRestResponse(c_obj)

Bases: Response

A response from a REST service that contains no data. This type contains only a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a EmptyRestResponse object.

EngineeringDataService

class EngineeringDataService(mi_session, retries=0)

Bases: Service

The EngineeringData service provides custom data export operations for a Granta MI Server.

GetAvailableExporters(_req)

Returns the FEA Exporter configurations known to the MI Server, optionally filtering for their applicability to particular situations.

ExportRecordData(_req)

Performs an FEA Export and returns the result as the response.

GetExporterParameters(_req)

Returns information about the MI Parameter Values that will need to be chosen, to run the specified Exporter on the specified Record(s).

ExportersForRecords(_req)

Returns the FEA Exporter configurations, known to the MI Server, filtering for their applicability to given Record(s) and optionally to particular situations.

EnsureRecordFolderPathsRequest

class EnsureRecordFolderPathsRequest(folderPaths=None, importErrorMode=None, notes=None, _isOwner=True)

Bases: object

Input for the EnsureRecordFolderPaths operation, containing the folder paths to check and the import error mode.

property folderPaths

Property folderPaths is a list of RecordFolderPath objects.

WARNING

Do not attempt to edit or append to the returned value.

property importErrorMode

Property importErrorMode is of type str.

  • Return type: str

property notes

Property notes is of type str.

  • Return type: str

AddFolderPath(_recordFolderPath)

Appends _recordFolderPath to folderPaths property on EnsureRecordFolderPathsRequest C-object.

property c_obj

Pointer to the underlying C-object

EnsureRecordFolderPathsResponse

class EnsureRecordFolderPathsResponse(c_obj)

Bases: Response

Output of the EnsureRecordFolderPaths operation.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a EnsureRecordFolderPathsResponse object.

property pathLeaves

Property pathLeaves is a list of PathLeaf objects.

WARNING

Do not attempt to edit or append to the returned value.

EqualToSearchValue

class EqualToSearchValue(tabularColumn=None, value=None, _isOwner=True)

Bases: object

Search criterion to search for short text values that exactly match the specified search value. Applies to short text attributes only.

  • Parameters:
    • tabularColumn (str)
    • value (str)

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

ExactlySearchValue

class ExactlySearchValue(tabularColumn=None, value=None, _isOwner=True)

Bases: object

Search criterion to search for integer values that exactly match the specified search value. Applies to integer attributes only.

  • Parameters:
    • tabularColumn (str)
    • value (int)

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property value

Property value is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

ExistsSearchValue

class ExistsSearchValue(tabularColumn=None, _isOwner=True)

Bases: object

Search criterion to search for attributes that contain data. All attribute types supported.

  • Parameters: tabularColumn (str)

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

ExportRecordDataRequest

class ExportRecordDataRequest(attributeReferences=None, exporterKey=None, filter=None, parameterValues=None, records=None, sigFigs=None, stopBeforeId=None, stopBeforeIndex=None, unitConversionContext=None, _isOwner=True)

Bases: object

Input for the ExportRecordData operation. For this request to be valid, you must set the references and the exporter key. StopBeforeIndex is 0-indexed.

property attributeReferences

Property attributeReferences is a list of AttributeReference objects. If this property is not specified, the attributes from the exporter configuration are used. If this element is included and non-empty, the attributes specified are used.

WARNING

Do not attempt to edit or append to the returned value.

property parameterValues

Property parameterValues is a list of UnittedParameterValue objects. Parameter values to use for any parameterised Data in the export. Each Parameter can only have one value for all parameterised Attributes in an export. Note that the true Parameter names (or Standard Names) in the MI Database must be used; aliases defined in the exporter configuration will not be understood.

WARNING

Do not attempt to edit or append to the returned value.

property records

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property exporterKey

Property exporterKey is of type str.

  • Return type: str

property filter

Property filter is of type RecordFilter. If specified, this filters the records that can be included when traversing record links within Tabular Data. This filter is NOT applied to the explicit list of records passed to this operation.

property sigFigs

Property sigFigs is of type int.

  • Return type: int

property stopBeforeId

Property stopBeforeId is of type str. Stops the export process before the step specified by the identifier (for example, after the initial XML is generated but before conversion into the specified CAE format). Contact your MI Administrator if you require this feature.

  • Return type: str

property stopBeforeIndex

Property stopBeforeIndex is of type int. Stops the export process before the step specified by the index (for example, after the initial XML is generated but before conversion into the specified CAE format). Contact your MI Administrator if you require this feature.

  • Return type: int

property unitConversionContext

Property unitConversionContext is of type UnitConversionContext.

AddAttributeReference(_attributeReference)

Appends _attributeReference to attributeReferences property on ExportRecordDataRequest C-object.

AddParameterValues(_unittedParameterValue)

Appends _unittedParameterValue to parameterValues property on ExportRecordDataRequest C-object.

AddRecord(_recordReference)

Appends _recordReference to records property on ExportRecordDataRequest C-object.

property c_obj

Pointer to the underlying C-object

ExportRecordDataResponse

class ExportRecordDataResponse(c_obj)

Bases: Response

Output for the ExportRecordData operation.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a ExportRecordDataResponse object.

property text

Property text is of type str.

  • Return type: str

ExportedAttribute

class ExportedAttribute(DBKey=None, attributeID=None, isStandardName=None, name=None, partialTableReference=None, preferredXAxisParameter=None, pseudoAttribute=None, specificUnitConversionContext=None, _isOwner=True)

Bases: object

A type that allows identification of a particular attribute in a Granta MI, and also specifies how that Attribute should be exported.

property attributeID

Property attributeID is of type int.

  • Return type: int

property DBKey

Property DBKey is of type str.

  • Return type: str

property isStandardName

Property isStandardName is of type bool.

property name

Property name is of type str.

  • Return type: str

property partialTableReference

Property partialTableReference is of type PartialTableReference.

property preferredXAxisParameter

Property preferredXAxisParameter is of type ParameterReference.

property specificUnitConversionContext

Property specificUnitConversionContext is of type SpecificUnitConversionContext.

property pseudoAttribute

Property pseudoAttribute is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

Exporter

class Exporter(absoluteUnitsOptional=None, description=None, key=None, model=None, name=None, outputFile=None, package=None, transforms=None, unitSystems=None, useAbsoluteUnits=None, validatedOk=None, version=None, _isOwner=True)

Bases: object

Details of a particular FEA Exporter configuration, typically obtained from an Exporter Configuration File (EXP file) on the MI Server.

property absoluteUnitsOptional

Property absoluteUnitsOptional is of type bool.

property description

Property description is of type str.

  • Return type: str

property key

Property key is of type str. The key that uniquely identifies this Exporter. This value is generated by the MI Server at runtime and may change between runs.

  • Return type: str

property model

Property model is of type str.

  • Return type: str

property name

Property name is of type str.

  • Return type: str

property transforms

Property transforms is a list of ExporterTransform objects.

WARNING

Do not attempt to edit or append to the returned value.

property unitSystems

Property unitSystems is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property outputFile

Property outputFile is of type ExporterOutputFile.

property package

Property package is of type str.

  • Return type: str

property useAbsoluteUnits

Property useAbsoluteUnits is of type bool.

property validatedOk

Property validatedOk is of type bool.

property version

Property version is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

ExporterOutputFile

class ExporterOutputFile(convention=None, customFileName=None, encoding=None, extension=None, folder=None, includeBOM=None, _isOwner=True)

Bases: object

Specifies how an output file should be named. All values have the same meaning as in the Exporter configuration schema. It is up to the client to adhere (or not) to this.

  • Parameters:
    • convention (int)
    • customFileName (str)
    • encoding (str)
    • extension (str)
    • folder (str)
    • includeBOM (bool)

class ExporterFileNameConvention

Bases: object

Default = 0

TreeName = 1

TableName = 2

RecordName = 3

Custom = 4

property convention

Property convention is of type int. See ExporterOutputFile.ExporterFileNameConvention for supported values.

  • Return type: int

property customFileName

Property customFileName is of type str.

  • Return type: str

property encoding

Property encoding is of type str.

  • Return type: str

property extension

Property extension is of type str.

  • Return type: str

property folder

Property folder is of type str.

  • Return type: str

property includeBOM

Property includeBOM is of type bool.

property c_obj

Pointer to the underlying C-object

ExporterParameter

class ExporterParameter(Id=None, name=None, parameterReference=None, unit=None, usage=None, _isOwner=True)

Bases: object

Information about a Parameter of Functional Data.

class Usage

Bases: object

Unknown = 0

free = 1

fixed = 2

unused = 3

property Id

Property Id is of type str.

  • Return type: str

property name

Property name is of type str.

  • Return type: str

property parameterReference

Property parameterReference is of type ParameterReference.

property unit

Property unit is of type UnitInformation.

property usage

Property usage is of type int. See ExporterParameter.Usage for supported values.

  • Return type: int

property c_obj

Pointer to the underlying C-object

ExporterPopulation

class ExporterPopulation(description=None, key=None, model=None, name=None, package=None, populationState=None, transforms=None, validatedOk=None, version=None, _isOwner=True)

Bases: object

Details of a particular FEA Exporter configuration, typically obtained from an Exporter Configuration File (EXP file) on the MI Server.

class PopulationState

Bases: object

Unknown = 0

FullyPopulated = 1

PartiallyPopulated = 2

property description

Property description is of type str.

  • Return type: str

property key

Property key is of type str.

  • Return type: str

property model

Property model is of type str.

  • Return type: str

property name

Property name is of type str.

  • Return type: str

property transforms

Property transforms is a list of ExporterTransform objects.

WARNING

Do not attempt to edit or append to the returned value.

property package

Property package is of type str.

  • Return type: str

property populationState

Property populationState is of type int. See ExporterPopulation.PopulationState for supported values.

  • Return type: int

property validatedOk

Property validatedOk is of type bool.

property version

Property version is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

ExporterTransform

class ExporterTransform(Id=None, type=None, _isOwner=True)

Bases: object

Contains a type and an ID for an Exporter Transform.

  • Parameters:

class Type

Bases: object

Unknown = 0

XSLT = 1

property Id

Property Id is of type str.

  • Return type: str

property type

Property type is of type int. See ExporterTransform.Type for supported values.

  • Return type: int

property c_obj

Pointer to the underlying C-object

ExportersForRecord

class ExportersForRecord(exporters=None, record=None, _isOwner=True)

Bases: object

A type to contain a record and its associated exporters.

property exporters

Property exporters is a list of ExporterPopulation objects.

WARNING

Do not attempt to edit or append to the returned value.

property record

Property record is of type RecordReference.

property c_obj

Pointer to the underlying C-object

ExportersForRecordsRequest

class ExportersForRecordsRequest(applicabilityTag=None, model=None, package=None, packageAndModelRequired=None, records=None, specificAttributeExportersOnly=None, versionPolicy=None, _isOwner=True)

Bases: object

Input for the ExportersForRecords operation.

  • Parameters:

property records

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property applicabilityTag

Property applicabilityTag is of type str.

  • Return type: str

property model

Property model is of type str.

  • Return type: str

property package

Property package is of type str.

  • Return type: str

property packageAndModelRequired

Property packageAndModelRequired is of type bool.

property specificAttributeExportersOnly

Property specificAttributeExportersOnly is of type bool.

property versionPolicy

Property versionPolicy is of type int. See GRANTA_Constants for supported values.

  • Return type: int

AddRecord(_recordReference)

Appends _recordReference to records property on ExportersForRecordsRequest C-object.

property c_obj

Pointer to the underlying C-object

ExportersForRecordsResponse

class ExportersForRecordsResponse(c_obj)

Bases: Response

Output from the ExportersForRecords operation. Contains a list of records and supported exporters.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a ExportersForRecordsResponse object.

property records

Property records is a list of ExportersForRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

FileDataType

class FileDataType(URL=None, contentType=None, data=None, description=None, fileName=None, isApplicable=None, _isOwner=True)

Bases: IDataValue

A type representing a piece of File data in a Granta MI database. The URL can be used to data export a file from a Granta MI database. For importing a file into a Granta MI database, the values of ‘fileName’, file ‘contentType’ and file ‘data’ must be specified, where ‘fileName’ is the name you want the file to appear as in Granta MI, the ‘contentType’ data is the MIME content type of the binary data, and ‘data’ is the contents of the file you wish to import to Granta MI.

  • Parameters:

ModifyBinaryData(binaryData)

Modify the byte string data of the file.

  • Parameters: binaryData (bytes)

ReadBinaryData()

Return a byte string representation of this file.

property contentType

Property contentType is of type str.

  • Return type: str

property data

Property data is of type str.

  • Return type: str

property description

Property description is of type str.

  • Return type: str

property fileName

Property fileName is of type str.

  • Return type: str

property isApplicable

Property isApplicable is of type bool.

property URL

Property URL is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

FloatFunctionalGraph

class FloatFunctionalGraph(hideGraph=None, logarithmicYAxis=None, series=None, _isOwner=True)

Bases: object

A type to contain a collection of Series objects that contain the functional data.

  • Parameters:

property series

Property series is a list of Series objects.

WARNING

Do not attempt to edit or append to the returned value.

property hideGraph

Property hideGraph is of type bool.

property logarithmicYAxis

Property logarithmicYAxis is of type bool.

AddSeries(_series)

Appends _series to series property on FloatFunctionalGraph C-object.

  • Parameters: _series (Series)

property c_obj

Pointer to the underlying C-object

FloatFunctionalGriddedDataType

class FloatFunctionalGriddedDataType(decoration=None, defaultXAxisParameter=None, isApplicable=None, unitInformation=None, values=None, functionalDataParameterSettings=None, _isOwner=True)

Bases: IDataValue

A type to contain the values of float-valued functional gridded data. For requests, Values and Parameters are required.

property functionalDataParameterSettings

Property functionalDataParameterSettings is a list of FunctionalDataParameterSettings objects.

WARNING

Do not attempt to edit or append to the returned value.

property decoration

Property decoration is of type int. See GRANTA_Constants for supported values.

  • Return type: int

property defaultXAxisParameter

Property defaultXAxisParameter is of type ParameterInformation.

property isApplicable

Property isApplicable is of type bool.

property unitInformation

Property unitInformation is of type UnitInformation.

property values

Property values is of type FloatFunctionalValues.

AddFunctionalDataParameterSettings(_functionalDataParameterSettings)

Appends _functionalDataParameterSettings to functionalDataParameterSettings property on FloatFunctionalGriddedDataType C-object.

property c_obj

Pointer to the underlying C-object

FloatFunctionalPointValue

class FloatFunctionalPointValue(constraints=None, value=None, isEstimated=None, _isOwner=True)

Bases: object

A single grid point in Gridded Float-Valued Functional Data, where the Y-axis value is a point.

property constraints

Property constraints is of type Constraints.

property isEstimated

Property isEstimated is of type bool.

property value

Property value is of type float.

property c_obj

Pointer to the underlying C-object

FloatFunctionalRangeValue

class FloatFunctionalRangeValue(constraints=None, highValue=None, lowValue=None, isEstimated=None, _isOwner=True)

Bases: object

A single grid point in Gridded Float-Valued Functional Data, where the Y-axis value is a range.

property constraints

Property constraints is of type Constraints.

property highValue

Property highValue is of type float.

property isEstimated

Property isEstimated is of type bool.

property lowValue

Property lowValue is of type float.

property c_obj

Pointer to the underlying C-object

FloatFunctionalSeriesDataType

class FloatFunctionalSeriesDataType(graph=None, isApplicable=None, unitInformation=None, functionalDataParameterSettings=None, _isOwner=True)

Bases: IDataValue

A type to contain the values of float-valued functional series data. For requests Graph, and Parameters are required.

property functionalDataParameterSettings

Property functionalDataParameterSettings is a list of FunctionalDataParameterSettings objects.

WARNING

Do not attempt to edit or append to the returned value.

property graph

Property graph is of type FloatFunctionalSeriesGraph.

property isApplicable

Property isApplicable is of type bool.

property unitInformation

Property unitInformation is of type UnitInformation.

AddFunctionalDataParameterSettings(_functionalDataParameterSettings)

Appends _functionalDataParameterSettings to functionalDataParameterSettings property on FloatFunctionalSeriesDataType C-object.

property c_obj

Pointer to the underlying C-object

FloatFunctionalSeriesGraph

class FloatFunctionalSeriesGraph(XAxisParameter=None, hideGraph=None, logarithmicYAxis=None, series=None, _isOwner=True)

Bases: object

A type a collection of Series objects that contain the data functional data and parameter information for the graph x-axis. For requests an XAxisParameter is required.

property series

Property series is a list of Series objects.

WARNING

Do not attempt to edit or append to the returned value.

property hideGraph

Property hideGraph is of type bool.

property logarithmicYAxis

Property logarithmicYAxis is of type bool.

property XAxisParameter

Property XAxisParameter is of type ParameterInformation.

AddSeries(_series)

Appends _series to series property on FloatFunctionalSeriesGraph C-object.

  • Parameters: _series (Series)

property c_obj

Pointer to the underlying C-object

FloatFunctionalValues

class FloatFunctionalValues(pointValues=None, rangeValues=None, valueType=None, _isOwner=True)

Bases: object

A collection of FloatFunctionalPointValue and FloatFunctionalRangeValue objects.

property pointValues

Property pointValues is a list of FloatFunctionalPointValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property rangeValues

Property rangeValues is a list of FloatFunctionalRangeValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property valueType

Property valueType is of type str.

  • Return type: str

AddPointValue(_floatFunctionalPointValue)

Appends _floatFunctionalPointValue to pointValues property on FloatFunctionalValues C-object.

AddRangeValue(_floatFunctionalRangeValue)

Appends _floatFunctionalRangeValue to rangeValues property on FloatFunctionalValues C-object.

property c_obj

Pointer to the underlying C-object

FunctionalDataParameterSettings

class FunctionalDataParameterSettings(datumDefaultValue=None, datumInterpolationMethod=None, datumScaleType=None, effectiveDefaultValue=None, effectiveDefaultValueDefinedAt=None, effectiveInterpolationMethod=None, effectiveInterpolationMethodDefinedAt=None, effectiveScaleType=None, effectiveScaleTypeDefinedAt=None, hasDatumDefaultValue=None, hasDatumInterpolationMethod=None, hasDatumScaleType=None, hasEffectiveDefaultValue=None, parameter=None, _isOwner=True)

Bases: object

Information about the use of a parameter for a given Functional Data Attribute.

property datumDefaultValue

Property datumDefaultValue is of type DefaultParameterValue.

property datumInterpolationMethod

Property datumInterpolationMethod is of type int.

  • Return type: int

property datumScaleType

Property datumScaleType is of type int.

  • Return type: int

property effectiveDefaultValue

Property effectiveDefaultValue is of type DefaultParameterValue.

property effectiveDefaultValueDefinedAt

Property effectiveDefaultValueDefinedAt is of type int.

  • Return type: int

property effectiveInterpolationMethod

Property effectiveInterpolationMethod is of type int.

  • Return type: int

property effectiveInterpolationMethodDefinedAt

Property effectiveInterpolationMethodDefinedAt is of type int.

  • Return type: int

property effectiveScaleType

Property effectiveScaleType is of type int.

  • Return type: int

property effectiveScaleTypeDefinedAt

Property effectiveScaleTypeDefinedAt is of type int.

  • Return type: int

property hasDatumDefaultValue

Property hasDatumDefaultValue is of type bool.

property hasDatumInterpolationMethod

Property hasDatumInterpolationMethod is of type bool.

property hasDatumScaleType

Property hasDatumScaleType is of type bool.

property hasEffectiveDefaultValue

Property hasEffectiveDefaultValue is of type bool.

property parameter

Property parameter is of type ParameterInformation.

property c_obj

Pointer to the underlying C-object

FunctionalDataSettings

class FunctionalDataSettings(convertGridToSeries=None, maxSeries=None, _isOwner=True)

Bases: object

Settings affecting the export of Functional Data. If convertGridToSeries is true, gridded Functional Data will be converted to series data, allowing you to avoid the need to deal with the gridded data format.

  • Parameters:
    • convertGridToSeries (bool)
    • maxSeries (int)

property convertGridToSeries

Property convertGridToSeries is of type bool.

property maxSeries

Property maxSeries is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

GRANTA_Constants

class _BinaryDataRepresentation

Bases: object

Inline = 0

URL = 1

class _VersionPolicy

Bases: object

NoPolicy = 0

IncludeAll = 1

LatestVersionPerName = 2

class _GraphDecoration

Bases: object

Lines = 0

Markers = 1

LinesAndMarkers = 2

class _ImportTypes

Bases: object

Create = 'Create'

Update = 'Update'

Copy = 'Copy'

class _UpdateSubsetsMode

Bases: object

Append = 1

Replace = 2

class _SearchMode

Bases: object

Normal = 0

ReadOnly = 1

Unspecified = 2

class _TablesFilter

Bases: object

NoFilter = 0

MaterialsTablesOnly = 1

ProcessesTablesOnly = 2

SubstancesTablesOnly = 3

LegislationsTablesOnly = 4

TransportTypesTablesOnly = 5

RegionsTablesOnly = 6

EndOfLifeOptionsTablesOnly = 7

EnergyConversionOptionsTablesOnly = 8

CoatingsTablesOnly = 9

PartsTablesOnly = 10

InHouseTablesOnly = 11

SequenceSpecificationsTablesOnly = 12

ElementsTablesOnly = 13

UniverseTablesOnly = 14

ProducersTablesOnly = 15

ShapeTablesOnly = 16

ReferenceTablesOnly = 17

MobileUseTypesTablesOnly = 18

class _ParameterTypes

Bases: object

Numeric = 'Numeric'

Discrete = 'Discrete'

class _ImportErrorMode

Bases: object

Fault = 'FaultAndRollbackOnAnyError'

Continue = 'LogAndContinueWherePossible'

class _RecordLinkGroupTypes

Bases: object

Static = 'static'

Dynamic = 'dynamic'

CrossDatabase = 'crossDatabase'

class _RecordLinkCheckMode

Bases: object

class _MinMaxType

Bases: object

MMNone = 0

MMApproximate = 1

MMTrue = 2

class GRANTA_Constants

Bases: object

POINT_TYPE_STRING = 'POIN'

RANGE_TYPE_STRING = 'RNGE'

FLOAT_FUNCTIONAL_TYPE_STRING = 'FUNC'

INTEGER_TYPE_STRING = 'INPT'

LOGICAL_TYPE_STRING = 'LOGI'

DISCRETE_TYPE_STRING = 'DISC'

SHORT_TEXT_TYPE_STRING = 'STXT'

LONG_TEXT_TYPE_STRING = 'LTXT'

FLOAT_FUNCTIONAL_SERIES_TYPE_STRING = 'FLOAT_FUNCTIONAL_SERIES'

FLOAT_FUNCTIONAL_GRIDDED_TYPE_STRING = 'FLOAT_FUNCTIONAL_GRIDDED'

POINT_XYDATA_TYPE_STRING = 'XYPoint'

RANGE_XYDATA_TYPE_STRING = 'XYRange'

BinaryDataRepresentation

alias of _BinaryDataRepresentation

VersionPolicy

alias of _VersionPolicy

GraphDecoration

alias of _GraphDecoration

ImportTypes

alias of _ImportTypes

UpdateSubsetsMode

alias of _UpdateSubsetsMode

SearchMode

alias of _SearchMode

TablesFilter

alias of _TablesFilter

ParameterTypes

alias of _ParameterTypes

ImportErrorMode

alias of _ImportErrorMode

RecordLinkGroupTypes

alias of _RecordLinkGroupTypes

RecordLinkCheckMode

alias of _RecordLinkCheckMode

MinMaxType

alias of _MinMaxType

GRANTA_Exceptions

exception GRANTA_Exception(expr, msg)

Bases: Exception

Exception raised when there are errors in input.

  • Parameters:
    • expr (str) – Input expression in which the error occurred
    • msg (str) – Explanation of the error

exception GRANTA_ServiceLayerError(slResponse, operation)

Bases: Exception

Exception raised when the Granta MI Service Layer returns an error.

  • Parameters:
    • slResponse (ServiceLayerResponse) – Request data causing this error
    • operation (str) – Name of the operation from which this exception originated

property responseXML

Content of the XML response for this Service Layer message.

  • Return type: str

property requestXML

Content of the XML request for this Service Layer message.

  • Return type: str

property responseCode

HTTP Status code received from the Service Layer.

  • Return type: int

property message

Error message received from the Service Layer if an error occurred while processing the request, or the HTTP status message corresponding to the status code received.

  • Return type: str

property operation

The Operation invoked by this Service Layer message.

  • Return type: str

property data

The raw ServiceLayerResponse object.

GRANTA_Logging

class GRANTA_Logging

Bases: object

Implements some basic logging functionality. Tracked events are printed to the console. : For comprehensive logging capabilities, use the Python ‘logging’ module.

propagate = True

property core_logger

property http_logger

info(message)

debug(message)

warning(message)

error(message)

GRANTA_MISession

class GRANTA_MISession(url, username=None, password=None, domain=None, verbosity='ERROR', autoLogon=False, receiveTimeout=300000, authorization=None, retries=0)

Bases: object

The base object for the GRANTA_MIScripting toolkit. This creates a connection to a Granta MI Server via a Granta MI Service Layer.

Parameters username, password, domain, and autoLogon are optional - use either SetCredentials or UseAutoLogon to specify the desired authentication method if these are omitted.

  • Parameters:
    • url (str) – URL of your Granta MI Service Layer installation
    • username (str, optional) – Your Granta MI username (for Basic authentication)
    • password (str, optional) – Your Granta MI password (for Basic authentication)
    • domain (str, optional) – Your Granta MI user domain (for Basic authentication)
    • verbosity (str, {‘ERROR’, ‘WARNING’, ‘DEBUG’}) – Logging verbosity
    • autoLogon (bool, default: False) – If set to True, this object will authenticate as the current Windows user
    • receiveTimeout (int) – Time in milliseconds to wait for a response before timing out
    • authorization (OIDC object) – Authorization plugin (for OpenID Connect authentication)
    • retries (int, default: 0) – The number of times to retry failing requests

NOTE

If MI Scripting Toolkit has been installed on the same server machine as Granta MI, then the Granta MI server name must be specified in full in the url parameter. If you use ‘localhost’ or a loopback address, MI Scripting Toolkit will be unable to use the specified user account to connect to Granta MI.

TestConnection()

Raises a GRANTA_Exception if connection cannot be made

For example if bad credentials are provided, or Granta MI Service Layer is unreachable

property browseService

Service providing schema browse operations.

property searchService

Service providing record search operations.

property dataExportService

Service providing data export operations.

property dataImportService

Service providing data import operations.

property engineeringDataService

Service providing export operations for Finite Element Analysis material cards.

property recordManipulatorService

Service providing additional operations for record manipulation.

GetAssociatedRecordsRequest

class GetAssociatedRecordsRequest(attributeReferences=None, linkDirection=None, populateGUIDs=None, recordFilter=None, recordReferences=None, tableReference=None, _isOwner=True)

Bases: object

Input for the GetAssociatedRecords operation.

class AssociationLinkDirection

Bases: object

NONE = 0

Both = 1

Forward = 2

Reverse = 3

property attributeReferences

Property attributeReferences is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property recordReferences

Property recordReferences is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property linkDirection

Property linkDirection is of type int.

  • Return type: int

property populateGUIDs

Property populateGUIDs is of type bool.

property recordFilter

Property recordFilter is of type RecordFilter.

property tableReference

Property tableReference is of type TableReference.

AddAttributeReference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetAssociatedRecordsRequest C-object.

AddRecordReference(_recordReference)

Appends _recordReference to recordReferences property on GetAssociatedRecordsRequest C-object.

property c_obj

Pointer to the underlying C-object

GetAssociatedRecordsResponse

class GetAssociatedRecordsResponse(c_obj)

Bases: Response

Output from the GetAssociatedRecords operation. An array of AssociatedRecords objects.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAssociatedRecordsResponse object.

property associatedRecords

Property associatedRecords is a list of AssociatedRecords objects.

WARNING

Do not attempt to edit or append to the returned value.

AddAssociatedRecords(_associatedRecords)

Appends _associatedRecords to associatedRecords property on GetAssociatedRecordsResponse C-object.

GetAttributeDetailsRequest

class GetAttributeDetailsRequest(attributeReferences=None, minMaxCalculation=None, _isOwner=True)

Bases: object

Input for the GetAttributeDetails operation. For requests at least one AttributeReference is required.

property attributeReferences

Property attributeReferences is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property minMaxCalculation

Property minMaxCalculation is of type int.

  • Return type: int

AddAttributeReference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetAttributeDetailsRequest C-object.

property c_obj

Pointer to the underlying C-object

GetAttributeDetailsResponse

class GetAttributeDetailsResponse(c_obj)

Bases: Response

Output from the GetAttributeDetails operation. Includes an array of AttributeDetail objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAttributeDetailsResponse object.

property attributeDetails

Property attributeDetails is a list of AttributeDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

AddAttributeDetails(_attributeDetail)

Appends _attributeDetail to attributeDetails property on GetAttributeDetailsResponse C-object.

GetAttributeParametersRequest

class GetAttributeParametersRequest(attributeReferences=None, _isOwner=True)

Bases: object

Input for the GetAttributeParameters operation. For requests, at least one AttributeReference is required.

property attributeReferences

Property attributeReferences is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

AddAttributeReference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetAttributeParametersRequest C-object.

property c_obj

Pointer to the underlying C-object

GetAttributeParametersResponse

class GetAttributeParametersResponse(c_obj)

Bases: Response

Output from the GetAttributeParameters operation. Includes an array of ParameterDetail objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAttributeParametersResponse object.

property attributeParameters

Property attributeParameters is a list of ParameterDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetAvailableExportersRequest

class GetAvailableExportersRequest(DBKey=None, applicabilityTag=None, matchDB=None, model=None, package=None, partialTableReference=None, versionPolicy=None, _isOwner=True)

Bases: object

Input for the GetAvailableExporters operation.

property applicabilityTag

Property applicabilityTag is of type str.

  • Return type: str

property DBKey

Property DBKey is of type str.

  • Return type: str

property matchDB

Property matchDB is of type bool. If true, we check that the exporter config Table element is in a Database element for the right dbKey.

property model

Property model is of type str.

  • Return type: str

property package

Property package is of type str.

  • Return type: str

property partialTableReference

Property partialTableReference is of type PartialTableReference.

property versionPolicy

Property versionPolicy is of type int. See GRANTA_Constants for supported values.

  • Return type: int

property c_obj

Pointer to the underlying C-object

GetAvailableExportersResponse

class GetAvailableExportersResponse(c_obj)

Bases: Response

Output from the GetAvailableExporters operation. Contains a list of exporters.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAvailableExportersResponse object.

property exporters

Property exporters is a list of Exporter objects.

WARNING

Do not attempt to edit or append to the returned value.

GetChildNodes

class GetChildNodes(excludeWithdrawn=None, parent=None, populateGUIDs=None, recordFilter=None, recurse=None, recurseMaxDepth=None, _isOwner=True)

Bases: object

Input for the GetChildNodes operation. A RecordReference for the record you wish to find the children of is required.

property excludeWithdrawn

Property excludeWithdrawn is of type bool.

property parent

Property parent is of type RecordReference.

property populateGUIDs

Property populateGUIDs is of type bool.

property recordFilter

Property recordFilter is of type RecordFilter.

property recurse

Property recurse is of type bool.

property recurseMaxDepth

Property recurseMaxDepth is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

GetChildNodesResponse

class GetChildNodesResponse(c_obj)

Bases: Response

Response for the GetChildNodes operation. Includes an array of TreeRecord objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetChildNodesResponse object.

property treeRecords

Property treeRecords is a list of TreeRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

AddTreeRecord(_treeRecord)

Appends _treeRecord to treeRecords property on GetChildNodesResponse C-object.

GetCurrenciesResponse

class GetCurrenciesResponse(c_obj)

Bases: Response

Response for the GetCurrencies operation. Includes an array of CurrencyDetail objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetCurrenciesResponse object.

property currencies

Property currencies is a list of CurrencyDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetDatabaseParameters

class GetDatabaseParameters(DBKey=None, requireStandardNames=None, useStandardNamesWherePossible=None, _isOwner=True)

Bases: object

Input for the GetDatabaseParameters operation. Requires a DBKey to be set. The parameters requireStandardNames and useStandardNamesWherePossible both default to false.

  • Parameters:
    • DBKey (str)
    • requireStandardNames (bool)
    • useStandardNamesWherePossible (bool)

property DBKey

Property DBKey is of type str.

  • Return type: str

property requireStandardNames

Property requireStandardNames is of type bool.

property useStandardNamesWherePossible

Property useStandardNamesWherePossible is of type bool.

property c_obj

Pointer to the underlying C-object

GetDatabaseParametersResponse

class GetDatabaseParametersResponse(c_obj)

Bases: Response

Output from the GetDatabaseParametersResponse operation. Includes an array of ParameterDetail objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatabaseParametersResponse object.

property parameterDetails

Property parameterDetails is a list of ParameterDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

AddParameterDetail(_parameterDetail)

Appends _parameterDetail to parameterDetails property on GetDatabaseParametersResponse C-object.

GetDatabasesResponse

class GetDatabasesResponse(c_obj)

Bases: Response

Output from the GetDatabases operation. Includes an array of DatabaseDetail objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatabasesResponse object.

property databases

Property databases is a list of DatabaseDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

AddDatabase(_databaseDetail)

Appends _databaseDetail to databases property on GetDatabasesResponse C-object.

GetDatasheetPath

class GetDatasheetPath(datasheetType=None, recordReferences=None, unitConversionContext=None, _isOwner=True)

Bases: object

Input for the GetDatasheetPath operation. Requires at least one RecordReference to be provided. The parameters unitConversionContext and datasheetType are optional. datasheetType defaults to ‘Datasheet’.

property recordReferences

Property recordReferences is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property datasheetType

Property datasheetType is of type int.

  • Return type: int

property unitConversionContext

Property unitConversionContext is of type UnitConversionContext.

AddRecordReference(_recordReference)

Appends _recordReference to recordReferences property on GetDatasheetPath C-object.

property c_obj

Pointer to the underlying C-object

GetDatasheetPathParameterized

class GetDatasheetPathParameterized(DBKey=None, datasheetType=None, unitConversionContext=None, _isOwner=True)

Bases: object

Input for the GetDatasheetPathParameterized operation. Requires a DBKey to be set. The parameters unitConversionContext and datasheetType are optional. datasheetType defaults to ‘Datasheet’.

property DBKey

Property DBKey is of type str.

  • Return type: str

property datasheetType

Property datasheetType is of type int.

  • Return type: int

property unitConversionContext

Property unitConversionContext is of type UnitConversionContext.

property c_obj

Pointer to the underlying C-object

GetDatasheetPathParameterizedResponse

class GetDatasheetPathParameterizedResponse(c_obj)

Bases: Response

Output from the GetDatasheetPathParameterized operation. Includes an array of DatasheetPathParameterized objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatasheetPathParameterizedResponse object.

property currencyQuery

Property currencyQuery is of type str.

  • Return type: str

property DBKeyQuery

Property DBKeyQuery is of type str.

  • Return type: str

property recordHistoryIdentityQueryName

Property recordHistoryIdentityQueryName is of type str.

  • Return type: str

property URL

Property URL is of type str.

  • Return type: str

property unitSystemQuery

Property unitSystemQuery is of type str.

  • Return type: str

GetDatasheetPathResponse

class GetDatasheetPathResponse(c_obj)

Bases: Response

Output from the GetDatasheetPath operation. Includes an array of DatasheetPath objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatasheetPathResponse object.

property datasheetPaths

Property datasheetPaths is a list of DatasheetPath objects.

WARNING

Do not attempt to edit or append to the returned value.

GetExporterParametersRequest

class GetExporterParametersRequest(exporterKey=None, populateGUIDs=None, records=None, unitConversionContext=None, _isOwner=True)

Bases: object

Input for the GetExporterParameters operation.

property records

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property exporterKey

Property exporterKey is of type str.

  • Return type: str

property populateGUIDs

Property populateGUIDs is of type bool.

property unitConversionContext

Property unitConversionContext is of type UnitConversionContext.

AddRecord(_recordReference)

Appends _recordReference to records property on GetExporterParametersRequest C-object.

property c_obj

Pointer to the underlying C-object

GetExporterParametersResponse

class GetExporterParametersResponse(c_obj)

Bases: Response

Output from the GetExporterParameters operation. Contains a list of records and details for exporting their attributes.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetExporterParametersResponse object.

property records

Property records is a list of RecordExporterParameters objects.

WARNING

Do not attempt to edit or append to the returned value.

GetIntegrationProfiles

class GetIntegrationProfiles(databases=None, depth=None, _isOwner=True)

Bases: object

Input for the GetIntegrationProfiles operation.

class Depth

Bases: object

Profiles = 0

Databases = 1

Tables = 2

property databases

Property databases is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property depth

Property depth is of type int.

  • Return type: int

AddDatabase(value)

Appends value to databases property on GetIntegrationProfiles C-object.

  • Parameters: value (str)

property c_obj

Pointer to the underlying C-object

GetIntegrationProfilesResponse

class GetIntegrationProfilesResponse(c_obj)

Bases: Response

Output from GetIntegrationProfiles operation. Includes an array of IntegrationProfileDetail objects and a ServiceLayerResponse.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetIntegrationProfilesResponse object.

property profileDetails

Property profileDetails is a list of IntegrationProfileDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetLayouts

class GetLayouts(applicabilityTag=None, layouts=None, minMaxCalculation=None, table=None, _isOwner=True)

Bases: object

Input for the GetLayouts operation. Includes a table reference or list of layouts to retrieve.

property layouts

Property layouts is a list of LayoutReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property table

Property table is of type TableReference.

property applicabilityTag

Property applicabilityTag is of type str.

  • Return type: str

property minMaxCalculation

Property minMaxCalculation is of type int.

  • Return type: int

AddLayout(_layoutReference)

Appends _layoutReference to layouts property on GetLayouts C-object.

property c_obj

Pointer to the underlying C-object

GetLayoutsResponse

class GetLayoutsResponse(c_obj)

Bases: Response

Output from the GetLayouts operation. Includes a list of layouts retrieved.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetLayoutsResponse object.

property layoutDetails

Property layoutDetails is a list of LayoutDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

AddLayoutDetail(_layoutDetail)

Appends _layoutDetail to layoutDetails property on GetLayoutsResponse C-object.

GetLinkedRecordsRequest

class GetLinkedRecordsRequest(directLinksOnly=None, populateGUIDs=None, recordFilter=None, recordLinkGroups=None, recordReferences=None, _isOwner=True)

Bases: object

Input for the GetLinkedRecords operation.

property recordLinkGroups

Property recordLinkGroups is a list of RecordLinkGroupReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property recordReferences

Property recordReferences is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property directLinksOnly

Property directLinksOnly is of type bool.

property populateGUIDs

Property populateGUIDs is of type bool.

property recordFilter

Property recordFilter is of type RecordFilter.

AddRecordLinkGroup(_recordLinkGroupReference)

Appends _recordLinkGroupReference to recordLinkGroups property on GetLinkedRecordsRequest C-object.

AddRecordReference(_recordReference)

Appends _recordReference to recordReferences property on GetLinkedRecordsRequest C-object.

property c_obj

Pointer to the underlying C-object

GetLinkedRecordsResponse

class GetLinkedRecordsResponse(c_obj)

Bases: Response

Output from the GetLinkedRecords operation. Includes an array of SourceRecord objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetLinkedRecordsResponse object.

property sourceRecords

Property sourceRecords is a list of SourceRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

GetMetaAttributesRequest

class GetMetaAttributesRequest(attributeReferences=None, _isOwner=True)

Bases: object

Input for the GetMetaAttributesRequest operation.

property attributeReferences

Property attributeReferences is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

AddAttributeReference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetMetaAttributesRequest C-object.

property c_obj

Pointer to the underlying C-object

GetMetaAttributesResponse

class GetMetaAttributesResponse(c_obj)

Bases: Response

Output from the GetMetaAttributes operation. Includes an array of AttributeMetaAttributes objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetMetaAttributesResponse object.

property attributes

Property attributes is a list of AttributeMetaAttributes objects.

WARNING

Do not attempt to edit or append to the returned value.

GetParameterDetailsRequest

class GetParameterDetailsRequest(attribute=None, parameterReferences=None, recordReference=None, _isOwner=True)

Bases: object

Input for the GetParameterDetails operation.

property parameterReferences

Property parameterReferences is a list of ParameterReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property attribute

Property attribute is of type AttributeReference.

property recordReference

Property recordReference is of type RecordReference.

AddParameterReference(_parameterReference)

Appends _parameterReference to parameterReferences property on GetParameterDetailsRequest C-object.

property c_obj

Pointer to the underlying C-object

GetParameterDetailsResponse

class GetParameterDetailsResponse(c_obj)

Bases: Response

Output from the GetParameterDetails operation. Includes an array of ParameterDetail objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetParameterDetailsResponse object.

property attributeParameters

Property attributeParameters is a list of ParameterDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetRecordAttributesByRefRequest

class GetRecordAttributesByRefRequest(attributeReferences=None, binaryData=None, directLinksOnly=None, exportedAttributes=None, functionalDataSettings=None, populateGUIDs=None, recordFilter=None, recordReferences=None, unitConversionContext=None, useFallback=None, tabularDataSettings=None, _isOwner=True)

Bases: object

Input for the GetRecordAttributesByRef operation. For requests, at least one RecordReference and at least one AttributeReference is required.

property attributeReferences

Property attributeReferences is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property exportedAttributes

Property exportedAttributes is a list of ExportedAttribute objects.

WARNING

Do not attempt to edit or append to the returned value.

property recordReferences

Property recordReferences is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property directLinksOnly

Property directLinksOnly is of type bool.

property functionalDataSettings

Property functionalDataSettings is of type FunctionalDataSettings.

property populateGUIDs

Property populateGUIDs is of type bool.

property recordFilter

Property recordFilter is of type RecordFilter.

property tabularDataSettings

Property tabularDataSettings is of type TabularDataSettings.

property unitConversionContext

Property unitConversionContext is of type UnitConversionContext.

property useFallback

Property useFallback is of type bool.

property binaryData

Property binaryData is of type BinaryDataSettings.

AddAttributeReference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetRecordAttributesByRefRequest C-object.

AddExportedAttribute(_exportedAttribute)

Appends _exportedAttribute to exportedAttributes property on GetRecordAttributesByRefRequest C-object.

AddRecordReference(_recordReference)

Appends _recordReference to recordReferences property on GetRecordAttributesByRefRequest C-object.

property c_obj

Pointer to the underlying C-object

GetRecordAttributesByRefResponse

class GetRecordAttributesByRefResponse(c_obj)

Bases: Response

Output from the GetRecordAttributesByRef operation. Includes an array of RecordData objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordAttributesByRefResponse object.

property recordData

Property recordData is a list of RecordData objects.

WARNING

Do not attempt to edit or append to the returned value.

AddRecordData(_recordData)

Appends _recordData to recordData property on GetRecordAttributesByRefResponse C-object.

GetRecordAttributesRequest

class GetRecordAttributesRequest(includeEmpty=None, includeMeta=None, includeParamDetails=None, minMaxCalculation=None, recordReferences=None, _isOwner=True)

Bases: object

Input for the GetRecordAttribute operation.

property recordReferences

Property recordReferences is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property includeEmpty

Property includeEmpty is of type bool.

property includeMeta

Property includeMeta is of type bool.

property includeParamDetails

Property includeParamDetails is of type bool.

property minMaxCalculation

Property minMaxCalculation is of type int.

  • Return type: int

AddRecordReference(_recordReference)

Appends _recordReference to recordReferences property on GetRecordAttributesRequest C-object.

property c_obj

Pointer to the underlying C-object

GetRecordAttributesResponse

class GetRecordAttributesResponse(c_obj)

Bases: Response

Output from the GetRecordAttributes operation. Includes an array of RecordAttribute objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordAttributesResponse object.

property recordAttributes

Property recordAttributes is a list of RecordAttribute objects.

WARNING

Do not attempt to edit or append to the returned value.

AddRecordAttribute(_recordAttribute)

Appends _recordAttribute to recordAttributes property on GetRecordAttributesResponse C-object.

GetRecordLinkGroups

class GetRecordLinkGroups(DBKey=None, recordLinkGroups=None, standardNamesOnly=None, _isOwner=True)

Bases: object

Returns details of Record Link Groups in a Granta MI Database.

property recordLinkGroups

Property recordLinkGroups is a list of RecordLinkGroupReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property DBKey

Property DBKey is of type str. When this is provided, details of all Record Link Groups in the specified Granta MI Database will be returned.

  • Return type: str

property standardNamesOnly

Property standardNamesOnly is of type bool.

AddRecordLinkGroup(_recordLinkGroupReference)

Appends _recordLinkGroupReference to recordLinkGroups property on GetRecordLinkGroups C-object.

property c_obj

Pointer to the underlying C-object

GetRecordLinkGroupsResponse

class GetRecordLinkGroupsResponse(c_obj)

Bases: Response

Output from the GetRecordLinkGroups operation.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordLinkGroupsResponse object.

property recordLinkGroups

Property recordLinkGroups is a list of RecordLinkGroupDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetRecordVersionsRequest

class GetRecordVersionsRequest(records=None, versions=None, _isOwner=True)

Bases: object

Input for the GetRecordVersions operation.

class VersionSelector

Bases: object

LatestRead = 0

Latest = 1

AllReleased = 2

All = 3

property records

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property versions

Property versions is of type int. See GetRecordVersionsRequest.VersionSelector for supported values.

  • Return type: int

AddRecord(_recordReference)

Appends _recordReference to records property on GetRecordVersionsRequest C-object.

property c_obj

Pointer to the underlying C-object

GetRecordVersionsResponse

class GetRecordVersionsResponse(c_obj)

Bases: Response

Output from the GetRecordVersions operation. Contains a list of version states.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordVersionsResponse object.

property recordStates

Property recordStates is a list of RecordVersionState objects.

WARNING

Do not attempt to edit or append to the returned value.

GetRootNode

class GetRootNode(table=None, _isOwner=True)

Bases: object

Input to the GetRootNode operation. Requires a TableReference .

property table

Property table is of type TableReference.

property c_obj

Pointer to the underlying C-object

GetRootNodeResponse

class GetRootNodeResponse(c_obj)

Bases: Response

Output from the GetRootNode operation. Includes a TreeRecord object and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRootNodeResponse object.

property rootNode

Property rootNode is of type TreeRecord.

GetSubsetsRequest

class GetSubsetsRequest(subsetReferences=None, table=None, _isOwner=True)

Bases: object

Input to the GetSubsets operation. Requires a TableReference .

property subsetReferences

Property subsetReferences is of type list of SubsetReference.

property table

Property table is of type TableReference.

AddSubsetReference(_subsetReference)

Appends _subsetReference to subsetReferences property on GetSubsetsRequest C-object.

property c_obj

Pointer to the underlying C-object

GetSubsetsResponse

class GetSubsetsResponse(c_obj)

Bases: Response

Output from the GetSubsets operation. Includes an array of SubsetDetails objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetSubsetsResponse object.

property subsetDetails

Property subsetDetails is a list of SubsetDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetTables

class GetTables(DBKey=None, attributeSelectors=None, tableFilter=None, _isOwner=True)

Bases: object

Input to the GetTables operation. Requires a DBKey to be set.

  • Parameters:

class AttributeSelector

Bases: object

NONE = 0

NonMetaAttributes = 1

MetaAttributes = 2

StandardAttributes = 3

property attributeSelectors

Property attributeSelectors is a list of int objects. See GetTables.AttributeSelector for supported values.

WARNING

Do not attempt to edit or append to the returned value.

property DBKey

Property DBKey is of type str.

  • Return type: str

property tableFilter

Property tableFilter is of type int. See GRANTA_Constants for supported values.

  • Return type: int

AddAttributeSelector(value)

Appends value to attributeSelectors property on GetTables C-object.

  • Parameters: value (int)

property c_obj

Pointer to the underlying C-object

GetTablesResponse

class GetTablesResponse(c_obj)

Bases: Response

Output from the GetTables operation. Includes an array of TableDetail objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetTablesResponse object.

property tableDetails

Property tableDetails is a list of TableDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

AddTableDetail(_tableDetail)

Appends _tableDetail to tableDetails property on GetTablesResponse C-object.

GetTreeRecordsRequest

class GetTreeRecordsRequest(records=None, _isOwner=True)

Bases: object

Input to the GetTreeRecords operation. Requires at least one RecordReference.

property records

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

AddRecord(_recordReference)

Appends _recordReference to records property on GetTreeRecordsRequest C-object.

property c_obj

Pointer to the underlying C-object

GetTreeRecordsResponse

class GetTreeRecordsResponse(c_obj)

Bases: Response

Output to the GetTreeRecords operation. Includes an array of TreeRecord objects and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetTreeRecordsResponse object.

property treeRecords

Property treeRecords is a list of TreeRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

AddTreeRecord(_treeRecord)

Appends _treeRecord to treeRecords property on GetTreeRecordsResponse C-object.

GetUnitConversionsRequest

class GetUnitConversionsRequest(DBKey=None, sourceCurrency=None, targetCurrency=None, unitConversionContexts=None, unitSymbols=None, _isOwner=True)

Bases: object

Input for the GetUnitConversions operation.

property unitConversionContexts

Property unitConversionContexts is a list of UnitConversionContext objects.

WARNING

Do not attempt to edit or append to the returned value.

property unitSymbols

Property unitSymbols is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property DBKey

Property DBKey is of type str.

  • Return type: str

property sourceCurrency

Property sourceCurrency is of type str.

  • Return type: str

property targetCurrency

Property targetCurrency is of type str.

  • Return type: str

AddUnitConversionContext(_unitConversionContext)

Appends _unitConversionContext to unitConversionContexts property on GetUnitConversionsRequest C-object.

AddUnitSymbol(value)

Appends value to unitSymbols property on GetUnitConversionsRequest C-object.

  • Parameters: value (str)

property c_obj

Pointer to the underlying C-object

GetUnitConversionsResponse

class GetUnitConversionsResponse(c_obj)

Bases: Response

Output from the GetUnitConversions operation.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUnitConversionsResponse object.

property DBKey

Property DBKey is of type str.

  • Return type: str

property sourceUnits

Property sourceUnits is a list of SourceUnitConversionSet objects.

WARNING

Do not attempt to edit or append to the returned value.

property unitConversionContexts

Property unitConversionContexts is a list of UnitConversionContextConversionSet objects.

WARNING

Do not attempt to edit or append to the returned value.

GetUnits

class GetUnits(DBKey=None, _isOwner=True)

Bases: object

A type for requesting the units known to specific Granta MI databases. A DBKey must be specified.

  • Parameters: DBKey (str)

property DBKey

Property DBKey is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

GetUnitsResponse

class GetUnitsResponse(c_obj)

Bases: Response

The output of a GetUnits request. Contains an array of DatabaseUnitSets for the specified databases.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUnitsResponse object.

property databaseUnitSets

Property databaseUnitSets is a list of DatabaseUnitSet objects.

WARNING

Do not attempt to edit or append to the returned value.

GetUnitSystems

class GetUnitSystems(DBKey=None, excludeCurrencies=None, _isOwner=True)

Bases: object

A type for requesting the unit systems on a particular Granta MI database. A DBKey must be specified.

  • Parameters:
    • DBKey (str)
    • excludeCurrencies (bool)

property DBKey

Property DBKey is of type str.

  • Return type: str

property excludeCurrencies

Property excludeCurrencies is of type bool.

property c_obj

Pointer to the underlying C-object

GetUnitSystemsResponse

class GetUnitSystemsResponse(c_obj)

Bases: Response

The output of a GetUnitSystems requests. Contains an array of unit systems for the specified database.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUnitSystemsResponse object.

property DBKey

Property DBKey is of type str.

  • Return type: str

property unitSystems

Property unitSystems is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

GetUploadAddressesRequest

class GetUploadAddressesRequest(attributeReferences=None, recordReferences=None, _isOwner=True)

Bases: object

Input to the GetUploadAddresses operation. Contains a list of records and attributes to get the upload URL addresses of.

property attributeReferences

Property attributeReferences is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property recordReferences

Property recordReferences is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

AddAttributeReference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetUploadAddressesRequest C-object.

AddRecordReference(_recordReference)

Appends _recordReference to recordReferences property on GetUploadAddressesRequest C-object.

property c_obj

Pointer to the underlying C-object

GetUploadAddressesResponse

class GetUploadAddressesResponse(c_obj)

Bases: Response

Output from the GetUploadAddresses operation. Contains a list of RecordWithAttributeAddresses objects for each record in the GetUploadAddressesRequest.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUploadAddressesResponse object.

property recordsWithAttributeAddresses

Property recordsWithAttributeAddresses is a list of RecordWithAttributeAddresses objects.

WARNING

Do not attempt to edit or append to the returned value.

GraphDomain

class GraphDomain(parameterDomains=None, _isOwner=True)

Bases: object

A type to contain choices of fixed parameter values. A value must be chosen for each parameter, within the given constraints.

property parameterDomains

Property parameterDomains is a list of ParameterDomain objects.

WARNING

Do not attempt to edit or append to the returned value.

property c_obj

Pointer to the underlying C-object

GreaterThanSearchValue

class GreaterThanSearchValue(tabularColumn=None, unit=None, value=None, _isOwner=True)

Bases: object

Search criterion to search for data greater than a specified value. Criterion passes if data value is above a given value. Point, range, and integer attributes are supported.

  • Parameters:

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property unit

Property unit is of type str.

  • Return type: str

property value

Property value is of type float.

property c_obj

Pointer to the underlying C-object

HelpInfo

class HelpInfo(databaseHelp=None, helpURI=None, _isOwner=True)

Bases: object

Type describing how to obtain detailed Help information for an entity in a Granta MI database.

  • Parameters:
    • databaseHelp (bool)
    • helpURI (str)

property databaseHelp

Property databaseHelp is of type bool.

property helpURI

Property helpURI is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

HighEndSearchValue

class HighEndSearchValue(unit=None, value=None, _isOwner=True)

Bases: object

Upper limit for the BetweenSearchValue search criterion. Requires a double value and an optional unit.

property unit

Property unit is of type str.

  • Return type: str

property value

Property value is of type float.

property c_obj

Pointer to the underlying C-object

HyperlinkDataType

class HyperlinkDataType(description=None, hyperlinkDisplay=None, isApplicable=None, value=None, _isOwner=True)

Bases: IDataValue

A type to contain a HyperLink string value.

  • Parameters:
    • description (str)
    • hyperlinkDisplay (int)
    • isApplicable (bool)
    • value (str)

class HyperlinkDisplay

Bases: object

New = 0

Top = 1

Content = 2

property description

Property description is of type str.

  • Return type: str

property hyperlinkDisplay

Property hyperlinkDisplay is of type int.

  • Return type: int

property isApplicable

Property isApplicable is of type bool.

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

IDataValue

class IDataValue

Bases: object

Base class for data values in Granta MI.

You should not interact directly with this class.

ImportAttributeValue

class ImportAttributeValue(attributeReference=None, dateDataValue=None, discreteDataValue=None, fileDataValue=None, floatFunctionalGriddedDataType=None, floatFunctionalSeriesDataType=None, hyperlinkDataValue=None, integerDataValue=None, logicalDataValue=None, longTextDataValue=None, pictureDataValue=None, pointDataValue=None, rangeDataValue=None, shortTextDataValue=None, tabularDataValue=None, _isOwner=True)

Bases: object

An AttributeValue to import to a Granta MI database. Requires a AttributeReference and an attribute value for the data type you wish to upload. Supports: PointDataType, RangeDataType, FloatFunctionalSeriesDataType, FloatFunctionalGriddedDataType, ShortTextDataType, LongTextDataType, DiscreteDataType, IntegerDataType, LogicalDataType, HyperlinkDataType, and FileDataType.

property attributeReference

Property attributeReference is of type AttributeReference.

property dateDataValue

Property dateDataValue is of type DateDataType.

property discreteDataValue

Property discreteDataValue is of type DiscreteDataType.

property fileDataValue

Property fileDataValue is of type FileDataType.

property floatFunctionalGriddedDataType

Property floatFunctionalGriddedDataType is of type FloatFunctionalGriddedDataType.

property floatFunctionalSeriesDataType

Property floatFunctionalSeriesDataType is of type FloatFunctionalSeriesDataType.

property hyperlinkDataValue

Property hyperlinkDataValue is of type HyperlinkDataType.

property integerDataValue

Property integerDataValue is of type IntegerDataType.

property logicalDataValue

Property logicalDataValue is of type LogicalDataType.

property longTextDataValue

Property longTextDataValue is of type LongTextDataType.

property pictureDataValue

Property pictureDataValue is of type PictureDataType.

property pointDataValue

Property pointDataValue is of type PointDataType.

property rangeDataValue

Property rangeDataValue is of type RangeDataType.

property shortTextDataValue

Property shortTextDataValue is of type ShortTextDataType.

property tabularDataValue

Property tabularDataValue is of type TabularDataType.

property c_obj

Pointer to the underlying C-object

ImportRecord

class ImportRecord(copyDestinationParent=None, existingRecord=None, importAttributeValues=None, importRecordMode=None, isFolder=None, recordName=None, releaseRecord=None, subsetReferences=None, updateSubsetsMode=None, _isOwner=True)

Bases: object

A record for importing to the Granta MI database. The ‘importRecordMode’ property specifies whether a record should be created, copied, or updated. The accepted values are ‘Create’, ‘Update’, and ‘Copy’. If importRecordMode is ‘Create’, set ‘existingRecord’ to the parent record under which the new record is to be created. If importRecordMode is ‘Update’, set ‘existingRecord’, to the target record to be changed. If importRecordMode is ‘Copy’, set ‘existingRecord’ to be the source data for the operation, and use ‘copyDestinationParent’ to specify where the record copy should appear. For versioned databases, set releaseRecord to specify whether the new or updated record should be released. Use ‘subsetReferences’ to define the Subsets the imported record belongs to (subsets will not be inherited from the parent). ‘isFolder’ will have no effect if ‘importRecordMode’ is set to ‘Update’.

property importAttributeValues

Property importAttributeValues is a list of ImportAttributeValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property subsetReferences

Property subsetReferences is a list of SubsetReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property recordName

Property recordName is of type str.

  • Return type: str

property copyDestinationParent

Property copyDestinationParent is of type RecordReference.

property existingRecord

Property existingRecord is of type RecordReference.

property importRecordMode

Property importRecordMode is of type str. See GRANTA_Constants for supported values.

  • Return type: str

property isFolder

Property isFolder is of type bool.

property releaseRecord

Property releaseRecord is of type bool.

property updateSubsetsMode

Property updateSubsetsMode is of type int. See GRANTA_Constants for supported values.

  • Return type: int

AddImportAttributeValue(_importAttributeValue)

Appends _importAttributeValue to importAttributeValues property on ImportRecord C-object.

AddSubsetReference(_subsetReference)

Appends _subsetReference to subsetReferences property on ImportRecord C-object.

property c_obj

Pointer to the underlying C-object

IntegerDataType

class IntegerDataType(isApplicable=None, value=None, _isOwner=True)

Bases: IDataValue

A type to contain an integer data type.

  • Parameters:

property isApplicable

Property isApplicable is of type bool.

property value

Property value is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

IntegrationDatabase

class IntegrationDatabase(DBKey=None, author=None, company=None, integrationTables=None, volumeName=None, _isOwner=True)

Bases: object

Represents a database within an Integration Profile.

property author

Property author is of type str.

  • Return type: str

property company

Property company is of type str.

  • Return type: str

property DBKey

Property DBKey is of type str.

  • Return type: str

property integrationTables

Property integrationTables is a list of TableDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

property volumeName

Property volumeName is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

IntegrationProfileDetail

class IntegrationProfileDetail(description=None, groupName=None, integrationDatabases=None, name=None, profile=None, _isOwner=True)

Bases: object

Detailed information about an Integration Profile.

property description

Property description is of type RichText.

property groupName

Property groupName is of type str.

  • Return type: str

property integrationDatabases

Property integrationDatabases is a list of IntegrationDatabase objects.

WARNING

Do not attempt to edit or append to the returned value.

property name

Property name is of type str.

  • Return type: str

property profile

Property profile is of type IntegrationProfileReference.

property c_obj

Pointer to the underlying C-object

IntegrationProfileReference

class IntegrationProfileReference(key=None, _isOwner=True)

Bases: object

Contains the key for an Integration Profile.

  • Parameters: key (str)

property key

Property key is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

LayoutDetail

class LayoutDetail(attributeCategories=None, layout=None, name=None, table=None, displayNames=None, _isOwner=True)

Bases: object

Detailed meta-information about a Layout in a Granta MI database.

property attributeCategories

Property attributeCategories is a list of AttributeCategory objects.

WARNING

Do not attempt to edit or append to the returned value.

property displayNames

Property displayNames is a list of DisplayName objects.

WARNING

Do not attempt to edit or append to the returned value.

property layout

Property layout is of type LayoutReference.

property name

Property name is of type str.

  • Return type: str

property table

Property table is of type TableReference.

AddAttributeCategory(_attributeCategory)

Appends _attributeCategory to attributeCategories property on LayoutDetail C-object.

property c_obj

Pointer to the underlying C-object

LayoutReference

class LayoutReference(DBKey=None, layoutIdentity=None, name=None, partialTableReference=None, _isOwner=True)

Bases: object

A type that allows identification of a particular Layout in a Granta MI database.

property DBKey

Property DBKey is of type str.

  • Return type: str

property layoutIdentity

Property layoutIdentity is of type int.

  • Return type: int

property name

Property name is of type str.

  • Return type: str

property partialTableReference

Property partialTableReference is of type PartialTableReference.

property c_obj

Pointer to the underlying C-object

LessThanSearchValue

class LessThanSearchValue(tabularColumn=None, unit=None, value=None, _isOwner=True)

Bases: object

Search criterion to search for data less than a specified value. Criterion passes if data value is less than a given value. Point, range, and integer attributes are supported.

  • Parameters:

property tabularColumn

Property tabularColumn is of type str.

  • Return type: str

property unit

Property unit is of type str.

  • Return type: str

property value

Property value is of type float.

property c_obj

Pointer to the underlying C-object

LinkAllCombinations

class LinkAllCombinations(nodeName=None, sourceRecords=None, targetRecords=None, _isOwner=True)

Bases: object

For each given source record, add links to all the given target records. Silently skip any links that already exist.

property sourceRecords

Property sourceRecords is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property targetRecords

Property targetRecords is of type list of RecordReference.

property nodeName

Property nodeName is of type str.

  • Return type: str

AddSourceRecord(_recordReference)

Appends _recordReference to sourceRecords property on LinkAllCombinations C-object.

AddTargetRecord(_recordReference)

Appends _recordReference to targetRecords property on LinkAllCombinations C-object.

property c_obj

Pointer to the underlying C-object

LinkRecords

class LinkRecords(nodeName=None, sourceRecords=None, _isOwner=True)

Bases: object

For each given source record, add links to the target records specified for that source record. Silently skip any links that already exist.

property sourceRecords

Property sourceRecords is of type list of NotatedTargetedSourceRecord.

property nodeName

Property nodeName is of type str.

  • Return type: str

AddSourceRecord(_notatedTargetedSourceRecord)

Appends _notatedTargetedSourceRecord to sourceRecords property on LinkRecords C-object.

property c_obj

Pointer to the underlying C-object

LinkedRecordsDataType

class LinkedRecordsDataType(nodeName=None, recordLinkGroups=None, typeString=None, _isOwner=True)

Bases: IDataValue

A type representing a list of linked Records.

property nodeName

Property nodeName is of type str.

  • Return type: str

property recordLinkGroups

Property recordLinkGroups is a list of RecordLinkGroup objects.

WARNING

Do not attempt to edit or append to the returned value.

property typeString

Property typeString is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

ListDataType

class ListDataType(items=None, _isOwner=True)

Bases: IDataValue

A list of values within a Cell in Tabular Data.

property items

Property items is a list of ListItem objects.

WARNING

Do not attempt to edit or append to the returned value.

property c_obj

Pointer to the underlying C-object

ListItem

class ListItem(dataType=None, dateDataValue=None, discreteDataValue=None, fileDataValue=None, hyperlinkDataValue=None, integerDataValue=None, logicalDataValue=None, longTextDataValue=None, pictureDataValue=None, pointDataValue=None, rangeDataValue=None, shortTextDataValue=None, sourceRecordReference=None, floatFunctionalGriddedDataValue=None, floatFunctionalSeriesDataValue=None, discreteFunctionalGriddedDataValue=None, discreteFunctionalSeriesDataValue=None, emptyDataValue=None, _isOwner=True)

Bases: object

An item in a List data value.

property dataType

Property dataType is of type str.

  • Return type: str

property dateDataValue

Property dateDataValue is of type DateDataType.

property discreteDataValue

Property discreteDataValue is of type DiscreteDataType.

property discreteFunctionalGriddedDataValue

Property discreteFunctionalGriddedDataValue is of type DiscreteFunctionalGriddedDataType.

property discreteFunctionalSeriesDataValue

Property discreteFunctionalSeriesDataValue is of type DiscreteFunctionalSeriesDataType.

property emptyDataValue

Property emptyDataValue is of type EmptyDataType.

property fileDataValue

Property fileDataValue is of type FileDataType.

property floatFunctionalGriddedDataValue

Property floatFunctionalGriddedDataValue is of type FloatFunctionalGriddedDataType.

property floatFunctionalSeriesDataValue

Property floatFunctionalSeriesDataValue is of type FloatFunctionalSeriesDataType.

property hyperlinkDataValue

Property hyperlinkDataValue is of type HyperlinkDataType.

property integerDataValue

Property integerDataValue is of type IntegerDataType.

property logicalDataValue

Property logicalDataValue is of type LogicalDataType.

property longTextDataValue

Property longTextDataValue is of type LongTextDataType.

property pictureDataValue

Property pictureDataValue is of type PictureDataType.

property pointDataValue

Property pointDataValue is of type PointDataType.

property rangeDataValue

Property rangeDataValue is of type RangeDataType.

property shortTextDataValue

Property shortTextDataValue is of type ShortTextDataType.

property sourceRecordReference

Property sourceRecordReference is of type RecordReference.

property c_obj

Pointer to the underlying C-object

LogicalDataType

class LogicalDataType(isApplicable=None, value=None, _isOwner=True)

Bases: IDataValue

A type to contain a logical data type.

  • Parameters:

property isApplicable

Property isApplicable is of type bool.

property value

Property value is of type bool.

property c_obj

Pointer to the underlying C-object

LongTextDataType

class LongTextDataType(isApplicable=None, value=None, _isOwner=True)

Bases: IDataValue

A type to contain a long text data type.

  • Parameters:

property isApplicable

Property isApplicable is of type bool.

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

LookupValue

class LookupValue(attributeReference=None, attributeValue=None, _isOwner=True)

Bases: object

Object containing an AttributeValue and AttributeReference object that uniquely identify a record in a table.

property attributeReference

Property attributeReference is of type AttributeReference.

property attributeValue

Property attributeValue is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

LowEndSearchValue

class LowEndSearchValue(unit=None, value=None, _isOwner=True)

Bases: object

Lower limit for the BetweenSearchValue search criterion.

property unit

Property unit is of type str.

  • Return type: str

property value

Property value is of type float.

property c_obj

Pointer to the underlying C-object

MIEntityReference

class MIEntityReference

Bases: object

A base type for types that identify entities in a Granta MI database.

The details of how entities are identified differ between concrete subtypes.

WARNING

You should not interact directly with this class.

GetDBKey()

WithDBKey(value)

MIEntityResolution

class MIEntityResolution(canWrite=None, entityReference=None, resolved=None, _isOwner=True)

Bases: object

Represents whether the entity referred to by the reference property can actually be resolved to an MI entity, and if that entity can be resolved whether or not it is writable.

class CanWrite

Bases: object

Yes = 0

No = 1

NotSupported = 2

property canWrite

Property canWrite is of type int.

  • Return type: int

property entityReference

Property entityReference is of type RecordReference.

property resolved

Property resolved is of type bool.

property c_obj

Pointer to the underlying C-object

MIParameterValue

class MIParameterValue(revisionInfo=None, value=None, valueName=None, _isOwner=True)

Bases: object

A named value of a Parameter in a Granta MI Database.

property revisionInfo

Property revisionInfo is of type RevisionInfo.

property value

Property value is of type float.

property valueName

Property valueName is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

MISession

class MISession(url='', verbosity=1)

Bases: object

A connection to a Granta MI Server. Don’t create this class directly, instead see GRANTA_MISession

  • Parameters:
    • url (str) – URL to access the Granta MI Service Layer
    • verbosity (str, {1, 2, 3}) – Logging verbosity, accepted values are: 1 - “ERROR”, 2 - “WARNING”, or 3 - “DEBUG”

ConnectionIsValid()

Indicates whether the connection was successful.

  • Returns:
    • is_valid (bool) – Whether the connection test succeeded
    • description (str) – Description of the test outcome

TestConnection()

Raises an exception if a request to the Granta MI Service Layer does not respond or responds with an error.

UseAutoLogon()

Use the Windows credentials of the current user to authenticate to the Granta MI Service Layer.

SetCredentials(domain, username, password)

Use the provided credentials to authenticate with the Granta MI Service Layer.

The Granta MI Service Layer must be configured to allow Basic authentication, or the MI Scripting Toolkit session must be created on Windows, and NTLM authentication must be enabled.

  • Parameters:
    • username (str) – Granta MI username
    • password (str) – Granta MI password
    • domain (str, optional) – Granta MI user domain

SetAuthorization(auth)

Use Open ID Connect to authenticate to the Granta MI Service Layer

  • Parameters: auth (OIDC)

SetReceiveTimeout(timeout)

Sets time in milliseconds to wait for a response before timing out.

  • Parameters: timeout (int) – Timeout (in milliseconds)

property actAsReadUser

Forces the session to operate with READ permissions, even if the user has higher privileges.

If the user authenticates with a role that has additional privileges the session will behave as though they have only read permissions. This prevents writing to the database and affects which versions of records are visible for version controlled databases.

MinMax

class MinMax(maxValue=None, minValue=None, units=None, _isOwner=True)

Bases: object

The minimum and maximum data values for a specified numerical attribute, calculated from all records you have read permissions for in a database.

property maxValue

Property maxValue is of type MinMaxValue.

property minValue

Property minValue is of type MinMaxValue.

property units

Property units is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

MinMaxValue

class MinMaxValue(dateTime=None, double=None, integer=None, type=None, _isOwner=True)

Bases: object

A type that represents the minimum or maximum data value for a numerical attribute in a database.

class Type

Bases: object

ERROR = -1

DateType = 0

DoubleType = 1

IntegerType = 2

NotANumber = 3

property dateTime

Property dateTime is of type str.

  • Return type: str

property double

Property double is of type float.

property integer

Property integer is of type int.

  • Return type: int

property type

Property type is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

ModifyRecordLinksRequest

class ModifyRecordLinksRequest(importErrorMode=None, recordLinkCheckMode=None, recordLinkGroupReference=None, recordLinkModifications=None, _isOwner=True)

Bases: object

Input to the ModifyRecordLinks operation. Requires a RecordLinkGroupReference to the record link group you wish to modify and a RecordLinkModifications object, which contains the modifications you wish to make to the record link group. The ‘importErrorMode’ property defines how to handle errors which occur during linking and can take the following values: ‘FaultAndRollbackOnAnyError’, which stops the linking request when an error occurs and attempts to roll back to the state before the request was issued; or ‘LogAndContinueWherePossible’, which will log non-fatal errors and attempt to continue with the linking request. The ‘recordLinkCheckMode’ property defines how to check the status of existing links and takes the following values: ‘CheckOnlyForwardLinks’, which checks for link only in the forward direction and is quicker than checking both directions; or ‘CheckForwardAndReverseLinks’, which is slower but safer as it checks for both forward and backward links.

property importErrorMode

Property importErrorMode is of type str. See GRANTA_Constants for supported values.

  • Return type: str

property recordLinkCheckMode

Property recordLinkCheckMode is of type str. See GRANTA_Constants for supported values.

  • Return type: str

property recordLinkGroupReference

Property recordLinkGroupReference is of type RecordLinkGroupReference.

property recordLinkModifications

Property recordLinkModifications is of type RecordLinkModifications.

property c_obj

Pointer to the underlying C-object

ModifyRecordLinksResponse

class ModifyRecordLinksResponse(c_obj)

Bases: Response

The response from a ModifyRecordLinks request.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a ModifyRecordLinksResponse object.

property recordLinkChanges

Property recordLinkChanges is of type RecordLinkChanges.

NamedAttribute

class NamedAttribute(about=None, attribute=None, isMeta=None, name=None, _isOwner=True)

Bases: object

Name information about an Attribute in a Granta MI database.

property about

Property about is of type NamedAttribute. Only populated if ‘isMeta’ is True.

property attribute

Property attribute is of type AttributeReference.

property isMeta

Property isMeta is of type bool. If this is True, the ‘about’ property may have additional information about the related parent attribute.

property name

Property name is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

NamedLayout

class NamedLayout(layout=None, name=None, _isOwner=True)

Bases: object

A layout in a Granta MI database.

property layout

Property layout is of type LayoutReference.

property name

Property name is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

NamedRecord

class NamedRecord(longName=None, recordReference=None, shortName=None, _isOwner=True)

Bases: object

A RecordReference with the short and long name of the record.

property longName

Property longName is of type str.

  • Return type: str

property recordReference

Property recordReference is of type RecordReference.

property shortName

Property shortName is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

NamedSubset

class NamedSubset(name=None, subset=None, _isOwner=True)

Bases: object

A SubsetReference with the subset name.

property name

Property name is of type str.

  • Return type: str

property subset

Property subset is of type SubsetReference.

property c_obj

Pointer to the underlying C-object

NamedTargetedSourceRecord

class NamedTargetedSourceRecord(record=None, targetRecords=None, _isOwner=True)

Bases: object

A named record used for modifying record links.

property targetRecords

Property targetRecords is a list of NamedRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property record

Property record is of type NamedRecord.

AddTargetRecords(_namedRecord)

Appends _namedRecord to targetRecords property on NamedTargetedSourceRecord C-object.

property c_obj

Pointer to the underlying C-object

NotatedTargetRecord

class NotatedTargetRecord(notes=None, record=None, reverseNotes=None, _isOwner=True)

Bases: object

A RecordReference of the record you wish to link to and notes on the record link. Requires a RecordReference. Notes on the link and the reverse link are optional.

property notes

Property notes is of type str.

  • Return type: str

property record

Property record is of type RecordReference.

property reverseNotes

Property reverseNotes is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

NotatedTargetedSourceRecord

class NotatedTargetedSourceRecord(sourceRecord=None, targetRecords=None, _isOwner=True)

Bases: object

A NamedRecord to link from and container of NamedRecord of the records to link to. Requires a source NamedRecord. Can set zero to many target NamedRecord objects you wish to link to.

property targetRecords

Property targetRecords is a list of NotatedTargetRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property sourceRecord

Property sourceRecord is of type RecordReference.

AddTargetRecord(_notatedTargetRecord)

Appends _notatedTargetRecord to targetRecords property on NotatedTargetedSourceRecord C-object.

property c_obj

Pointer to the underlying C-object

OIDC

class OIDC(accessToken=None, refreshToken=None, authorizeTimeout=None)

Bases: object

An object to allow authorization using OpenID Connect. Contact Ansys Granta Technical Support for information on supported identity providers, and for configuration and setup documentation.

If neither accessToken nor refreshToken are provided then call Authorize() for interactive login with the user’s credentials. If refreshToken is provided then the session will attempt to obtain an access token from the identity provider. If accessToken is provided then the session will use it directly.

  • Parameters:
    • accessToken (str, optional) – Valid access token for the MI Service Layer
    • refreshToken (str, optional) – Valid refresh token for the MI Service Layer
    • authorizeTimeout (int, default 300,000) – Number of milliseconds to wait for a response after calling Authorize()

Authorize()

Authorize a Granta MI session with an OpenID Connect provider.

CheckAuthentication()

Checks whether your access and refresh tokens are valid.

  • Returns:
    • is_valid (bool) – Whether the tokens could be used to connect to the Granta MI Service layer
    • message (str) – Error message if the tokens could not be used to connect to the Granta MI Service Layer.

TestAuthentication()

Checks whether your access and refresh tokens are valid.

  • Raises: GRANTA_Exception – If the tokens could not be used to connect to the Granta MI Service Layer.

property authorizeTimeout

The number of milliseconds to wait for the user to authenticate in their browser.

  • Return type: int

property accessToken

OIDC access token.

  • Return type: str

property refreshToken

OIDC refresh token, if one is available from the OpenID Identity Provider.

NOTE

The identity provider must provide the offline_access scope for refresh tokens to be available

  • Return type: str

ParameterDetail

class ParameterDetail(appliesToAttribute=None, appliesToRecord=None, defaultValue=None, interpolationType=None, name=None, order=None, parameterReference=None, parameterType=None, parameterValues=None, revisionInfo=None, scaleType=None, unit=None, helpInfo=None, _isOwner=True)

Bases: object

Detailed information about a Parameter in a Granta MI Database.

class Interpolation

Bases: object

NONE = 0

Linear = 1

CubicSpline = 2

class ScaleType

Bases: object

NotSet = 0

Linear = 1

Log = 2

class ParameterType

Bases: object

NumericUnrestricted = 0

NumericRestricted = 1

Discrete = 2

property appliesToAttribute

Property appliesToAttribute is of type AttributeReference.

property appliesToRecord

Property appliesToRecord is of type RecordReference.

property defaultValue

Property defaultValue is of type MIParameterValue.

property helpInfo

Property helpInfo is of type HelpInfo.

property interpolationType

Property interpolationType is of type int. See ParameterDetail.Interpolation for supported values.

  • Return type: int

property name

Property name is of type str.

  • Return type: str

property parameterValues

Property parameterValues is a list of MIParameterValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property order

Property order is of type int.

  • Return type: int

property parameterReference

Property parameterReference is of type ParameterReference.

property parameterType

Property parameterType is of type int. See ParameterDetail.ParameterType for supported values.

  • Return type: int

property revisionInfo

Property revisionInfo is of type RevisionInfo.

property scaleType

Property scaleType is of type int. See ParameterDetail.ScaleType for supported values.

  • Return type: int

property unit

Property unit is of type UnitInformation.

property c_obj

Pointer to the underlying C-object

ParameterDomain

class ParameterDomain(exporterParameterId=None, interpolable=None, values=None, _isOwner=True)

Bases: object

A type to contain a list of parameter values.

property exporterParameterId

Property exporterParameterId is of type str.

  • Return type: str

property interpolable

Property interpolable is of type bool.

property values

Property values is a list of ParameterValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property c_obj

Pointer to the underlying C-object

ParameterInformation

class ParameterInformation(name=None, parameterReference=None, unit=None, _isOwner=True)

Bases: object

Information for a parameter in a Granta MI database. Contains the name and unit information for a parameter and a ParameterReference to the parameter.

property name

Property name is of type str.

  • Return type: str

property parameterReference

Property parameterReference is of type ParameterReference.

property unit

Property unit is of type UnitInformation.

property c_obj

Pointer to the underlying C-object

ParameterReference

class ParameterReference(DBKey=None, ID=None, name=None, _isOwner=True)

Bases: object

Identification of a particular parameter in a Granta MI database . For requests a DBKey is required, and either the parameter ID or the parameter name.

  • Parameters:

property DBKey

Property DBKey is of type str.

  • Return type: str

property ID

Property ID is of type int.

  • Return type: int

property name

Property name is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

ParameterReferenceAndValue

class ParameterReferenceAndValue(parameter=None, parameterValue=None, _isOwner=True)

Bases: object

Contains a ParameterReference and a ParameterValue.

property parameter

Property parameter is of type ParameterReference.

property parameterValue

Property parameterValue is of type ParameterValue.

property c_obj

Pointer to the underlying C-object

ParameterReferencesAndValues

class ParameterReferencesAndValues(parameterWithValues=None, _isOwner=True)

Bases: object

A collection of ParameterReferenceAndValue objects.

property parameterWithValues

Property parameterWithValues is a list of ParameterReferenceAndValue objects.

WARNING

Do not attempt to edit or append to the returned value.

AddParameterWithValue(_parameterReferenceAndValue)

Appends _parameterReferenceAndValue to parameterWithValues property on ParameterReferencesAndValues C-object.

property c_obj

Pointer to the underlying C-object

ParameterValue

class ParameterValue(discreteValue=None, numericValue=None, type=None, _isOwner=True)

Bases: object

A value of a Parameter in Functional data.

  • Parameters:

property discreteValue

Property discreteValue is of type str.

  • Return type: str

property numericValue

Property numericValue is of type float.

property type

Property type is of type str. There is no need to set this property manually. See GRANTA_Constants for supported values.

  • Return type: str

property c_obj

Pointer to the underlying C-object

Parameters

class Parameters(parameters=None, _isOwner=True)

Bases: object

A collection of ParameterInformation objects.

property parameters

Property parameters is a list of ParameterInformation objects.

WARNING

Do not attempt to edit or append to the returned value.

AddParameter(_parameterInformation)

Appends _parameterInformation to parameters property on Parameters C-object.

property c_obj

Pointer to the underlying C-object

PartialTableReference

class PartialTableReference(tableGUID=None, tableID=None, tableName=None, _isOwner=True)

Bases: object

A reference to a Granta MI table. Usually, just one of the several optional fields should be provided; where more than one is provided, the highest priority one is used, where the descending priority order is: tableIdentity, tableGUID, tableName.

  • Parameters:
    • tableGUID (str)
    • tableID (int)
    • tableName (str)

property tableGUID

Property tableGUID is of type str.

  • Return type: str

property tableID

Property tableID is of type int.

  • Return type: int

property tableName

Property tableName is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

PathLeaf

class PathLeaf(longName=None, recordReference=None, shortName=None, _isOwner=True)

Bases: object

The folder furthest from the root record folder, for each path checked or created.

property longName

Property longName is of type str.

  • Return type: str

property recordReference

Property recordReference is of type RecordReference.

property shortName

Property shortName is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

PictureDataType

class PictureDataType(URL=None, contentType=None, data=None, isApplicable=None, _isOwner=True)

Bases: IDataValue

A type representing a piece of Picture data in a Granta MI Database. To get a byte-array representing the binary data, call ReadBinaryData(). To set the binary data (as part of a data import), use ModifyBinaryData().

  • Parameters:

ModifyBinaryData(binaryData)

  • Parameters: binaryData (bytes)

ReadBinaryData()

property contentType

Property contentType is of type str.

  • Return type: str

property data

Property data is of type str.

  • Return type: str

property isApplicable

Property isApplicable is of type bool.

property URL

Property URL is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

PointDataType

class PointDataType(isApplicable=None, isEstimated=None, parameters=None, points=None, unitSymbol=None, _isOwner=True)

Bases: IDataValue

A type to contain an array of float data types.

property points

Property points is a list of PointValueWithParameters objects.

WARNING

Do not attempt to edit or append to the returned value.

property isApplicable

Property isApplicable is of type bool.

property isEstimated

Property isEstimated is of type bool.

property parameters

Property parameters is of type Parameters.

property unitSymbol

Property unitSymbol is of type str.

  • Return type: str

AddPoint(_pointValueWithParameters)

Appends _pointValueWithParameters to points property on PointDataType C-object.

property c_obj

Pointer to the underlying C-object

PointValueWithParameters

class PointValueWithParameters(hasTrailingZeroInfo=None, trailingZeroInfo=None, value=None, valueParameters=None, _isOwner=True)

Bases: object

A numeric value with associated ParameterReferencesAndValues object.

property hasTrailingZeroInfo

Property hasTrailingZeroInfo is of type bool.

property trailingZeroInfo

Property trailingZeroInfo is of type TrailingZeroInformation.

property value

Property value is of type float.

property valueParameters

Property valueParameters is of type ParameterReferencesAndValues.

property c_obj

Pointer to the underlying C-object

RangeDataType

class RangeDataType(hasHigh=None, hasHighTrailingZeroInfo=None, hasLow=None, hasLowTrailingZeroInfo=None, high=None, highValueTrailingZeroInfo=None, isApplicable=None, isEstimated=None, low=None, lowValueTrailingZeroInfo=None, unitSymbol=None, highValueIsInclusive=None, lowValueIsInclusive=None, _isOwner=True)

Bases: IDataValue

Type for values of range data. Both LowValue and HighValue must be populated.

property hasHigh

Property hasHigh is of type bool.

property hasHighTrailingZeroInfo

Property hasHighTrailingZeroInfo is of type bool.

property hasLow

Property hasLow is of type bool.

property hasLowTrailingZeroInfo

Property hasLowTrailingZeroInfo is of type bool.

property high

Property high is of type float.

property highValueIsInclusive

Property highValueIsInclusive is of type bool.

property highValueTrailingZeroInfo

Property highValueTrailingZeroInfo is of type TrailingZeroInformation.

property isApplicable

Property isApplicable is of type bool.

property isEstimated

Property isEstimated is of type bool.

property low

Property low is of type float.

property lowValueIsInclusive

Property lowValueIsInclusive is of type bool.

property lowValueTrailingZeroInfo

Property lowValueTrailingZeroInfo is of type TrailingZeroInformation.

property unitSymbol

Property unitSymbol is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

RasterSize

class RasterSize(heightPixels=None, widthPixels=None, _isOwner=True)

Bases: object

Gives the size in pixels of picture data.

  • Parameters:
    • heightPixels (int)
    • widthPixels (int)

property heightPixels

Property heightPixels is of type int.

  • Return type: int

property widthPixels

Property widthPixels is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

RecordAttribute

class RecordAttribute(attribute=None, dataCreatedRecordVersion=None, dataRetiredRecordVersion=None, dataRevisionInfo=None, dataVersionNumber=None, hasData=None, parameterDetails=None, recordReference=None, _isOwner=True)

Bases: object

Meta-information about the data of a particular attribute of a particular Record in a Granta MI database. Does NOT include values of the data (see AttributeValue type).

property attribute

Property attribute is of type NamedAttribute.

property dataCreatedRecordVersion

Property dataCreatedRecordVersion is of type int.

  • Return type: int

property dataRetiredRecordVersion

Property dataRetiredRecordVersion is of type int.

  • Return type: int

property dataRevisionInfo

Property dataRevisionInfo is of type RevisionInfo.

property dataVersionNumber

Property dataVersionNumber is of type int.

  • Return type: int

property hasData

Property hasData is of type bool.

property parameterDetails

Property parameterDetails is a list of ParameterDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

property recordReference

Property recordReference is of type RecordReference.

property c_obj

Pointer to the underlying C-object

RecordData

class RecordData(attributeValues=None, recordReference=None, _isOwner=True)

Bases: object

The values of data for attribute(s) of a particular record.

property attributeValues

Property attributeValues is a list of AttributeValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property recordReference

Property recordReference is of type RecordReference.

property c_obj

Pointer to the underlying C-object

RecordExporterParameters

class RecordExporterParameters(attributes=None, record=None, _isOwner=True)

Bases: object

A type to contain a record and its associated attribute exporter parameters.

property attributes

Property attributes is a list of AttributeExporterParameters objects.

WARNING

Do not attempt to edit or append to the returned value.

property record

Property record is of type RecordReference.

property c_obj

Pointer to the underlying C-object

RecordFilter

class RecordFilter(profile=None, subsets=None, recordLists=None, _isOwner=True)

Bases: object

A type allowing lists of Records to be filtered, e.g., by membership of Subset(s). You should specify either a profile or a subset reference, but not both. You can pass in a list containing an uninitialized SubsetReference to effectively disable the subset filter. Note that subsets are not inherited; newly-created records will not be filtered until they are added to a Subset.

property recordLists

Property recordLists is a list of RecordListReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property subsets

Property subsets is a list of SubsetReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property profile

Property profile is of type str.

  • Return type: str

AddRecordList(_recordListReference)

Appends _recordListReference to recordLists property on RecordFilter C-object.

AddSubset(_subsetReference)

Appends _subsetReference to subsets property on RecordFilter C-object.

property c_obj

Pointer to the underlying C-object

RecordFolderPath

class RecordFolderPath(color=None, recordReference=None, treeNames=None, _isOwner=True)

Bases: object

The path to a Granta MI record folder. Contains the record folder at which the path starts as parent, the tree names, and the color.

property treeNames

Property treeNames is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property color

Property color is of type str.

  • Return type: str

property recordReference

Property recordReference is of type RecordReference.

AddTreeName(value)

Appends value to treeNames property on RecordFolderPath C-object.

  • Parameters: value (str)

property c_obj

Pointer to the underlying C-object

RecordLinkChanges

class RecordLinkChanges(linked=None, unlinked=None, _isOwner=True)

Bases: object

A set of changes to be made to record link groups.

property linked

Property linked is a list of NamedTargetedSourceRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property unlinked

Property unlinked is a list of NamedTargetedSourceRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property c_obj

Pointer to the underlying C-object

RecordLinkGroup

class RecordLinkGroup(linkedRecords=None, name=None, standardNames=None, tableFilters=None, _isOwner=True)

Bases: object

A type representing a group of linked records.

property linkedRecords

Property linkedRecords is a list of NamedRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property name

Property name is of type str.

  • Return type: str

property standardNames

Property standardNames is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property tableFilters

Property tableFilters is a list of int objects. See GRANTA_Constants for supported values.

WARNING

Do not attempt to edit or append to the returned value.

property c_obj

Pointer to the underlying C-object

RecordLinkGroupDetail

class RecordLinkGroupDetail(fromTable=None, linkGroupType=None, name=None, reference=None, reverseName=None, reverseReference=None, standardNames=None, toTable=None, _isOwner=True)

Bases: object

Detailed information about a Record Link Group in a Granta MI Database.

property standardNames

Property standardNames is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property fromTable

Property fromTable is of type TableReference.

property linkGroupType

Property linkGroupType is of type str. See GRANTA_Constants for supported values.

  • Return type: str

property name

Property name is of type str.

  • Return type: str

property reference

Property reference is of type RecordLinkGroupReference.

property reverseName

Property reverseName is of type str.

  • Return type: str

property reverseReference

Property reverseReference is of type RecordLinkGroupReference.

property toTable

Property toTable is of type TableReference.

AddStandardName(value)

Appends value to standardNames property on RecordLinkGroupDetail C-object.

  • Parameters: value (str)

property c_obj

Pointer to the underlying C-object

RecordLinkGroupReference

class RecordLinkGroupReference(DBKey=None, isStandardName=None, name=None, partialTableReference=None, recordLinkGroupIdentity=None, recordLinkGroupType=None, _isOwner=True)

Bases: object

A type that allows identification of a particular record link group in a Granta MI database. This may be done by specifying the identity of the group, or its name and a partial table reference.

property DBKey

Property DBKey is of type str.

  • Return type: str

property isStandardName

Property isStandardName is of type bool.

property name

Property name is of type str.

  • Return type: str

property partialTableReference

Property partialTableReference is of type PartialTableReference.

property recordLinkGroupIdentity

Property recordLinkGroupIdentity is of type int.

  • Return type: int

property recordLinkGroupType

Property recordLinkGroupType is of type str. See GRANTA_Constants for supported values.

  • Return type: str

property c_obj

Pointer to the underlying C-object

RecordLinkModifications

class RecordLinkModifications(linkAllCombinations=None, linkRecords=None, unlinkAllRecords=None, unlinkRecords=None, _isOwner=True)

Bases: object

A set of modifications to be made to record link groups.

property linkAllCombinations

Property linkAllCombinations is a list of LinkAllCombinations objects.

WARNING

Do not attempt to edit or append to the returned value.

property linkRecords

Property linkRecords is a list of LinkRecords objects.

WARNING

Do not attempt to edit or append to the returned value.

property unlinkAllRecords

Property unlinkAllRecords is a list of UnlinkAllRecords objects.

WARNING

Do not attempt to edit or append to the returned value.

property unlinkRecords

Property unlinkRecords is a list of UnlinkRecords objects.

WARNING

Do not attempt to edit or append to the returned value.

AddLinkAllCombinations(_linkAllCombinations)

Appends _linkAllCombinations to linkAllCombinations property on RecordLinkModifications C-object.

AddLinkRecords(_linkRecords)

Appends _linkRecords to linkRecords property on RecordLinkModifications C-object.

AddUnlinkAllRecords(_unlinkAllRecords)

Appends _unlinkAllRecords to unlinkAllRecords property on RecordLinkModifications C-object.

AddUnlinkRecords(_unlinkRecords)

Appends _unlinkRecords to unlinkRecords property on RecordLinkModifications C-object.

property c_obj

Pointer to the underlying C-object

RecordListReference

class RecordListReference(GUID=None, _isOwner=True)

Bases: object

A unique identifier for a record list.

  • Parameters: GUID (str)

property GUID

Property GUID is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

RecordManipulatorService

class RecordManipulatorService(mi_session, retries=0)

Bases: Service

The Record Manipulator service provides a way to move a record whilst preserving its metadata and attribute values.

MoveRecord(_req)

Reparents a record. Metadata such as creation date will be preserved, along with attribute values.

RecordMoveRequest

class RecordMoveRequest(DBKey=None, newParentRecordHistoryGuid=None, recordHistoryGuid=None, _isOwner=True)

Bases: object

The details of a MoveRecord operation. The record to be moved and the new location are both specified with Record History GUIDs.

  • Parameters:
    • DBKey (str)
    • newParentRecordHistoryGuid (str)
    • recordHistoryGuid (str)

property DBKey

Property DBKey is of type str.

  • Return type: str

property newParentRecordHistoryGuid

Property newParentRecordHistoryGuid is of type str.

  • Return type: str

property recordHistoryGuid

Property recordHistoryGuid is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

RecordNameSearchRequest

class RecordNameSearchRequest(caseSensitiveNames=None, filter=None, populateGUIDs=None, recordName=None, searchFullNames=None, searchShortNames=None, table=None, _isOwner=True)

Bases: object

The input for the RecordNameSearch operation. Both the table and recordName are required.

property caseSensitiveNames

Property caseSensitiveNames is of type bool.

property filter

Property filter is of type RecordFilter.

property populateGUIDs

Property populateGUIDs is of type bool.

property recordName

Property recordName is of type str.

  • Return type: str

property searchFullNames

Property searchFullNames is of type bool.

property searchShortNames

Property searchShortNames is of type bool.

property table

Property table is of type TableReference.

property c_obj

Pointer to the underlying C-object

RecordReference

class RecordReference(DBKey=None, historyGUID=None, identity=None, lookupValue=None, recordGUID=None, version=None, recordUID=None, _isOwner=True)

Bases: object

A type that allows identification of a particular record in a Granta MI database. This is done directly by specifying the Identity or GUID of the record.

property DBKey

Property DBKey is of type str.

  • Return type: str

property historyGUID

Property historyGUID is of type str.

  • Return type: str

property identity

Property identity is of type int.

  • Return type: int

property lookupValue

Property lookupValue is of type LookupValue.

property recordGUID

Property recordGUID is of type str.

  • Return type: str

property recordUID

Property recordUID is of type str.

  • Return type: str

property version

Property version is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

RecordSearchCriterion

class RecordSearchCriterion(betweenDateTimesSearchValue=None, betweenSearchValue=None, containsAllSearchValue=None, containsAnySearchValue=None, containsSearchValue=None, doesNotContainSearchValue=None, doesNotExistSearchValue=None, exactlySearchValue=None, existsSearchValue=None, greaterThanSearchValue=None, lessThanSearchValue=None, searchAttribute=None, type=None, equalToSearchValue=None, _isOwner=True)

Bases: object

One criterion that controls results returned from a search. A search comprises one or more such criteria.

property betweenDateTimesSearchValue

Property betweenDateTimesSearchValue is of type BetweenDateTimesSearchValue.

property betweenSearchValue

Property betweenSearchValue is of type BetweenSearchValue.

property containsAllSearchValue

Property containsAllSearchValue is of type ContainsAllSearchValue.

property containsAnySearchValue

Property containsAnySearchValue is of type ContainsAnySearchValue.

property containsSearchValue

Property containsSearchValue is of type ContainsSearchValue.

property doesNotContainSearchValue

Property doesNotContainSearchValue is of type DoesNotContainSearchValue.

property doesNotExistSearchValue

Property doesNotExistSearchValue is of type DoesNotExistSearchValue.

property equalToSearchValue

Property equalToSearchValue is of type EqualToSearchValue.

property exactlySearchValue

Property exactlySearchValue is of type ExactlySearchValue.

property existsSearchValue

Property existsSearchValue is of type ExistsSearchValue.

property greaterThanSearchValue

Property greaterThanSearchValue is of type GreaterThanSearchValue.

property lessThanSearchValue

Property lessThanSearchValue is of type LessThanSearchValue.

property searchAttribute

Property searchAttribute is of type AttributeReference.

property type

Property type is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

RecordVersionState

class RecordVersionState(recordReference=None, versionState=None, hasReleasedRevision=None, hasSupersededRevision=None, hasWithdrawnRevision=None, createdRevision=None, modifiedRevision=None, releasedRevision=None, supersededRevision=None, withdrawnRevision=None, _isOwner=True)

Bases: object

The version status of a particular Record in a Granta MI database.

class VersionState

Bases: object

Released = 0

Superseded = 1

Withdrawn = 2

Unreleased = 3

Unversioned = 4

Unknown = 5

property createdRevision

Property createdRevision is of type DatabaseRevision.

property hasReleasedRevision

Property hasReleasedRevision is of type bool.

property hasSupersededRevision

Property hasSupersededRevision is of type bool.

property hasWithdrawnRevision

Property hasWithdrawnRevision is of type bool.

property modifiedRevision

Property modifiedRevision is of type DatabaseRevision.

property recordReference

Property recordReference is of type RecordReference.

property releasedRevision

Property releasedRevision is of type DatabaseRevision.

property supersededRevision

Property supersededRevision is of type DatabaseRevision.

property versionState

Property versionState is of type int. See RecordVersionState.VersionState for supported values.

  • Return type: int

property withdrawnRevision

Property withdrawnRevision is of type DatabaseRevision.

property c_obj

Pointer to the underlying C-object

RecordWithAttributeAddresses

class RecordWithAttributeAddresses(attributeAddresses=None, recordReference=None, _isOwner=True)

Bases: object

A RecordReference with a list of attributes and their upload URL addresses.

property attributeAddresses

Property attributeAddresses is a list of AttributeAddress objects.

WARNING

Do not attempt to edit or append to the returned value.

property recordReference

Property recordReference is of type RecordReference.

AddAttributeAddress(_attributeAddress)

Appends _attributeAddress to attributeAddresses property on RecordWithAttributeAddresses C-object.

property c_obj

Pointer to the underlying C-object

ResolveReferencesRequest

class ResolveReferencesRequest(entities=None, _isOwner=True)

Bases: object

Input for the ResolveReferences operation.

property entities

Property entities is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

AddEntitie(_recordReference)

Appends _recordReference to entities property on ResolveReferencesRequest C-object.

property c_obj

Pointer to the underlying C-object

ResolveReferencesResponse

class ResolveReferencesResponse(c_obj)

Bases: Response

Output from the ResolveReferences operation.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a ResolveReferencesResponse object.

property entityResolutions

Property entityResolutions is a list of MIEntityResolution objects.

WARNING

Do not attempt to edit or append to the returned value.

Response

class Response(c_obj)

Bases: ABC

Base class for response types in Granta MI.

property c_obj

Pointer to the underlying C-object

property serviceLayerResponse

The raw response object received from the Granta MI Service Layer.

RevisionInfo

class RevisionInfo(created=None, modified=None, updateCount=None, _isOwner=True)

Bases: object

Describes when an entity in a Granta MI database was created and updated.

property created

Property created is of type DatabaseRevision.

property modified

Property modified is of type DatabaseRevision.

property updateCount

Property updateCount is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

RichText

class RichText(type=None, value=None, _isOwner=True)

Bases: object

Contains a piece of text and its type.

  • Parameters:

class Type

Bases: object

Plain = 0

Markdown = 1

property type

Property type is of type int.

  • Return type: int

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

SearchResult

class SearchResult(longName=None, ranking=None, recordReference=None, shortName=None, color=None, recordType=None, _isOwner=True)

Bases: object

An extension of NamedRecord with a ranking. The higher the ranking the better the match to your search criteria.

property color

Property color is of type str.

  • Return type: str

property longName

Property longName is of type str.

  • Return type: str

property ranking

Property ranking is of type str.

  • Return type: str

property recordReference

Property recordReference is of type RecordReference.

property recordType

Property recordType is of type str.

  • Return type: str

property shortName

Property shortName is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

SearchService

class SearchService(mi_session, retries=0)

Bases: Service

The Search service finds Records, within Granta MI Databases, matching specified criteria.

SimpleTextSearch(_req)

Searches for records matching simple text criteria.

CriteriaSearch(_req)

Searches for records matching attribute-based criteria.

RecordNameSearch(_req)

Searches for Records with a given exact Record name.

Series

class Series(XYPoints=None, constraints=None, decoration=None, _isOwner=True)

Bases: object

Type for functional data which includes X-Y data and any constraints.

property constraints

Property constraints is of type Constraints.

property decoration

Property decoration is of type int. See GRANTA_Constants for supported values.

  • Return type: int

property XYPoints

Property XYPoints is of type XYData.

property c_obj

Pointer to the underlying C-object

Service

class Service(mi_session, retries=0)

Bases: object

Base class for Granta MI Service objects. For internal use only.

ServiceLayerResponse

class ServiceLayerResponse(errorMessage=None, requestMessage=None, responseCode=None, responseMessage=None, _isOwner=True)

Bases: object

The HTTP response information from Granta MI Service Layer. Useful for debugging bad requests.

  • Parameters:
    • errorMessage (str)
    • requestMessage (str)
    • responseCode (int)
    • responseMessage (str)

property errorMessage

Property errorMessage is of type str.

  • Return type: str

property requestMessage

Property requestMessage is of type str.

  • Return type: str

property responseCode

Property responseCode is of type int. This is an HTTP status code.

  • Return type: int

property responseMessage

Property responseMessage is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

SetRecordAttributesRequest

class SetRecordAttributesRequest(importErrorMode=None, importRecords=None, notes=None, releaseNotes=None, _isOwner=True)

Bases: object

The input to a set record attributes operation. Includes an array of records to import.

property importRecords

Property importRecords is of type list of ImportRecord.

property notes

Property notes is of type str.

  • Return type: str

property releaseNotes

Property releaseNotes is of type str.

  • Return type: str

property importErrorMode

Property importErrorMode is of type str. See GRANTA_Constants for supported values.

  • Return type: str

AddImportRecord(_importRecord)

Appends _importRecord to importRecords property on SetRecordAttributesRequest C-object.

property c_obj

Pointer to the underlying C-object

SetRecordAttributesResponse

class SetRecordAttributesResponse(c_obj)

Bases: Response

Response for set record attributes operation. Includes an array of import records.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a SetRecordAttributesResponse object.

property recordsImported

Property recordsImported is a list of NamedRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

ShortTextDataType

class ShortTextDataType(isApplicable=None, value=None, _isOwner=True)

Bases: IDataValue

Type for values of short text (string) data.

  • Parameters:

property isApplicable

Property isApplicable is of type bool.

property value

Property value is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

SimpleTextSearch

class SimpleTextSearch(DBKey=None, populateGUIDs=None, recordFilter=None, restrictToTables=None, searchFilter=None, searchMode=None, searchValue=None, _isOwner=True)

Bases: object

The input to a simple text search operation. Both the DBKey, and search value are required.

property restrictToTables

Property restrictToTables is a list of PartialTableReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property DBKey

Property DBKey is of type str.

  • Return type: str

property populateGUIDs

Property populateGUIDs is of type bool.

property searchValue

Property searchValue is of type str.

  • Return type: str

property recordFilter

Property recordFilter is of type RecordFilter.

property searchFilter

Property searchFilter is of type int. See GRANTA_Constants for supported values.

  • Return type: int

property searchMode

Property searchMode is of type int. See GRANTA_Constants for supported values.

  • Return type: int

AddRestrictToTable(_partialTableReference)

Appends _partialTableReference to restrictToTables property on SimpleTextSearch C-object.

property c_obj

Pointer to the underlying C-object

SimpleTextSearchResponse

class SimpleTextSearchResponse(c_obj)

Bases: Response

The output to the simple text search operation. Contains a list of records returned by the search and a ServiceLayerResponse object.

  • Parameters: c_obj (ctypes._Pointer) – Pointer to a SimpleTextSearchResponse object.

property searchResults

Property searchResults is a list of SearchResult objects.

WARNING

Do not attempt to edit or append to the returned value.

AddSearchResult(_searchResult)

Appends _searchResult to searchResults property on SimpleTextSearchResponse C-object.

SourceRecord

class SourceRecord(record=None, recordLinkGroups=None, _isOwner=True)

Bases: object

A type that contains a record reference and associated record link groups.

property record

Property record is of type RecordReference.

property recordLinkGroups

Property recordLinkGroups is of type LinkedRecordsDataType.

property c_obj

Pointer to the underlying C-object

SourceUnitConversionSet

class SourceUnitConversionSet(conversions=None, sourceSymbol=None, _isOwner=True)

Bases: object

All the unit conversions available for a specified unit.

property conversions

Property conversions is a list of UnitConversionTarget objects.

WARNING

Do not attempt to edit or append to the returned value.

property sourceSymbol

Property sourceSymbol is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

SpecificUnitConversionContext

class SpecificUnitConversionContext(absoluteUnits=None, currency=None, unitSymbol=None, _isOwner=True)

Bases: object

Type defining how values with convertible units should be represented.

  • Parameters:
    • absoluteUnits (bool)
    • currency (str)
    • unitSymbol (str)

property absoluteUnits

Property absoluteUnits is of type bool.

property currency

Property currency is of type str.

  • Return type: str

property unitSymbol

Property unitSymbol is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

SubsetDetail

class SubsetDetail(name=None, subset=None, _isOwner=True)

Bases: object

Detailed meta-information about a subset in a Granta MI database.

property name

Property name is of type str.

  • Return type: str

property subset

Property subset is of type SubsetReference.

property c_obj

Pointer to the underlying C-object

SubsetReference

class SubsetReference(DBKey=None, name=None, partialTableReference=None, subsetIdentity=None, _isOwner=True)

Bases: object

A type that identifies a particular subset in a Granta MI database. This may be done by specifying the identity of the subset, or by specifying a name that will match (only) the subset along with the table to which the subset belongs.

property DBKey

Property DBKey is of type str.

  • Return type: str

property name

Property name is of type str.

  • Return type: str

property partialTableReference

Property partialTableReference is of type PartialTableReference. When used for input, this only needs to be specified if you are specifying a name rather than an id.

property subsetIdentity

Property subsetIdentity is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

SubsetsDataType

class SubsetsDataType(dataVersionNo=None, importNodeName=None, namedSubsets=None, nodeName=None, typeString=None, _isOwner=True)

Bases: IDataValue

Contains a list of subsets. Contains a list of subsets (returned by DataExport for the pseudo attribute for Subsets).

  • Parameters:

property dataVersionNo

Property dataVersionNo is of type int.

  • Return type: int

property importNodeName

Property importNodeName is of type str.

  • Return type: str

property namedSubsets

Property namedSubsets is a list of NamedSubset objects.

WARNING

Do not attempt to edit or append to the returned value.

property nodeName

Property nodeName is of type str.

  • Return type: str

property typeString

Property typeString is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

TableDetail

class TableDetail(attributeReferences=None, defaultLayout=None, defaultSubset=None, standardAttributeReferences=None, tableFilters=None, tableReference=None, _isOwner=True)

Bases: object

Detailed meta-information about a table in a Granta MI database.

property attributeReferences

Property attributeReferences is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property defaultLayout

Property defaultLayout is of type NamedLayout.

property defaultSubset

Property defaultSubset is of type SubsetDetail.

property standardAttributeReferences

Property standardAttributeReferences is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property tableFilters

Property tableFilters is a list of int objects. See GRANTA_Constants for supported values.

WARNING

Do not attempt to edit or append to the returned value.

property tableReference

Property tableReference is of type TableReference.

AddAttributeReferences(_attributeReference)

Appends _attributeReference to attributeReferences property on TableDetail C-object.

property c_obj

Pointer to the underlying C-object

TableReference

class TableReference(DBKey=None, GUID=None, ID=None, name=None, _isOwner=True)

Bases: object

A type that allows identification of a particular table in a particular Granta MI database. The DBKey is required in addition to at least one of either: ID, GUID, or Name.

property DBKey

Property DBKey is of type str.

  • Return type: str

property GUID

Property GUID is of type str.

  • Return type: str

property ID

Property ID is of type int.

  • Return type: int

property name

Property name is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

TabularColumnDetail

class TabularColumnDetail(dataType=None, databaseUnit=None, discreteValues=None, name=None, revisionInfo=None, type=None, identity=None, _isOwner=True)

Bases: object

Describes a Tabular Column, defined in a Tabular Attribute. This details how the schema describes the Column, and does not provide information about the contents of the Column in any particular Datum.

property dataType

Property dataType is of type str.

  • Return type: str

property databaseUnit

Property databaseUnit is of type str.

  • Return type: str

property discreteValues

Property discreteValues is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property identity

Property identity is of type int.

  • Return type: int

property name

Property name is of type str.

  • Return type: str

property revisionInfo

Property revisionInfo is of type RevisionInfo.

property type

Property type is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

TabularDataCell

class TabularDataCell(data=None, dataType=None, dateDataValue=None, discreteDataValue=None, fileDataValue=None, hyperlinkDataValue=None, integerDataValue=None, listDataValue=None, logicalDataValue=None, longTextDataValue=None, pictureDataValue=None, pointDataValue=None, rangeDataValue=None, shortTextDataValue=None, emptyDataValue=None, _isOwner=True)

Bases: object

A Cell within an item of Tabular Data. When importing, TabularDataRow’s CreateRow() and CreateUpdateRow() functions initialize empty cells. You can set this type’s data member to be various data types: range, point, short text, long text, discrete, integer, logical, hyperlink, file, picture, or date.

property dataType

Property dataType is of type str.

  • Return type: str

property dateDataValue

Property dateDataValue is of type DateDataType.

property discreteDataValue

Property discreteDataValue is of type DiscreteDataType.

property emptyDataValue

Property emptyDataValue is of type EmptyDataType.

property fileDataValue

Property fileDataValue is of type FileDataType.

property hyperlinkDataValue

Property hyperlinkDataValue is of type HyperlinkDataType.

property integerDataValue

Property integerDataValue is of type IntegerDataType.

property listDataValue

Property listDataValue is of type ListDataType.

property logicalDataValue

Property logicalDataValue is of type LogicalDataType.

property longTextDataValue

Property longTextDataValue is of type LongTextDataType.

property pictureDataValue

Property pictureDataValue is of type PictureDataType.

property pointDataValue

Property pointDataValue is of type PointDataType.

property rangeDataValue

Property rangeDataValue is of type RangeDataType.

property shortTextDataValue

Property shortTextDataValue is of type ShortTextDataType.

property data

Property data is of type IDataValue.

property c_obj

Pointer to the underlying C-object

TabularDataRow

class TabularDataRow(Id=None, cells=None, linkedRecords=None, linkingValue=None, _isOwner=True)

Bases: object

A Row within an item of Tabular Data. When importing, this must be created by TabularDataType’s CreateRow() or CreateUpdateRow() functions. These functions return rows with empty cells (the number of which is the number of columns added with AddColumn()).

property cells

Property cells is a list of TabularDataCell objects.

WARNING

Do not attempt to edit or append to the returned value.

property Id

Property Id is of type int.

  • Return type: int

property linkedRecords

Property linkedRecords is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property linkingValue

Property linkingValue is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

TabularDataType

class TabularDataType(columns=None, isApplicable=None, tabularDataRows=None, summaryColumns=None, summaryRow=None, _isOwner=True)

Bases: IDataValue

Type representing an item of exported Tabular Data, including metadata such as Column definitions. This type can also be used for import, although the usage pattern is different. See the TabularDataRow type for more information.

class ChangeType

Bases: object

InsertBefore = 0

Append = 1

Update = 2

Delete = 3

CreateRow()

Create and return a row for a tabular data import operation.

CreateUpdateRow(type, identity)

Create and return a row for a tabular data import update operation. To append a new row, use identity 0: new_row = tabular_data_type.CreateUpdateRow(type=ChangeType.Append, identity=0). To clear data from an existing cell, use EmptyDataType in an update operation.

  • Parameters:
    • type (TabularDataType.ChangeType) – This specifies the operation to perform on this tabular datum
    • identity – The ID of the row to update. You should retrieve this from a data export operation (GetRecordAttributesByRef). If type is Append, pass this argument in as 0.

property columns

Property columns is a list of TabularDataTypeColumn objects.

WARNING

Do not attempt to edit or append to the returned value.

property isApplicable

Property isApplicable is of type bool.

property summaryColumns

Property summaryColumns is a list of TabularDataTypeColumn objects.

WARNING

Do not attempt to edit or append to the returned value.

property tabularDataRows

Property tabularDataRows is a list of TabularDataRow objects.

WARNING

Do not attempt to edit or append to the returned value.

property summaryRow

Property summaryRow is of type TabularDataRow.

AddColumn(value)

Appends value to columns property on TabularDataType C-object.

  • Parameters: value (str)

property c_obj

Pointer to the underlying C-object

TabularDataTypeColumn

class TabularDataTypeColumn(columnType=None, dataType=None, databaseUnit=None, identity=None, name=None, _isOwner=True)

Bases: object

Information about a column or data summary column in a specific tabular attribute.

  • Parameters:
    • columnType (int)
    • dataType (str)
    • databaseUnit (str)
    • identity (int)
    • name (str)

class ColType

Bases: object

Local = 0

TargetAttribute = 1

TargetRecord = 2

TargetTabularColumn = 3

Unavailable = 4

property columnType

Property columnType is of type int.

  • Return type: int

property dataType

Property dataType is of type str.

  • Return type: str

property databaseUnit

Property databaseUnit is of type str.

  • Return type: str

property identity

Property identity is of type int.

  • Return type: int

property name

Property name is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

TabularDataSettings

class TabularDataSettings(exportFunctionalDataAsLinks=None, includeWithdrawn=None, omitBinaryCells=None, unfiltered=None, _isOwner=True)

Bases: object

Settings that affect the export of Tabular Data.

  • Parameters:
    • exportFunctionalDataAsLinks (bool)
    • includeWithdrawn (bool)
    • omitBinaryCells (bool)
    • unfiltered (bool)

Property exportFunctionalDataAsLinks is of type bool.

property includeWithdrawn

Property includeWithdrawn is of type bool.

property omitBinaryCells

Property omitBinaryCells is of type bool.

property unfiltered

Property unfiltered is of type bool.

property c_obj

Pointer to the underlying C-object

TabularDetail

class TabularDetail(columns=None, linkedTable=None, linkingAttribute=None, _isOwner=True)

Bases: object

Information about a specific tabular attribute. If the tabular attribute has a linking attribute, you can specify the linking attribute and the linked table containing that attribute.

property columns

Property columns is a list of TabularColumnDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

property linkedTable

Property linkedTable is of type TableReference.

property linkingAttribute

Property linkingAttribute is of type NamedAttribute.

property c_obj

Pointer to the underlying C-object

TargetedSourceRecord

class TargetedSourceRecord(sourceRecord=None, targetRecords=None, _isOwner=True)

Bases: object

A type for unlinking records, contains a source RecordReference and an array of target RecordReference objects.

property targetRecords

Property targetRecords is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property sourceRecord

Property sourceRecord is of type RecordReference.

AddTargetRecord(_recordReference)

Appends _recordReference to targetRecords property on TargetedSourceRecord C-object.

property c_obj

Pointer to the underlying C-object

TrailingZeroInformation

class TrailingZeroInformation(enteredUnit=None, enteredValue=None, significantFigures=None, _isOwner=True)

Bases: object

Type representing the numerical value as originally entered, including original unit and significant figures.

  • Parameters:
    • enteredUnit (str)
    • enteredValue (str)
    • significantFigures (int)

property enteredUnit

Property enteredUnit is of type str.

  • Return type: str

property enteredValue

Property enteredValue is of type str.

  • Return type: str

property significantFigures

Property significantFigures is of type int.

  • Return type: int

property c_obj

Pointer to the underlying C-object

TreeRecord

class TreeRecord(children=None, color=None, longName=None, parentRecordHistoryIdentity=None, recordReference=None, shortName=None, type=None, _isOwner=True)

Bases: object

Type representing a single record in a Granta MI database, along with information about its position in the node-tree.

property children

Property children is a list of TreeRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property color

Property color is of type str.

  • Return type: str

property longName

Property longName is of type str.

  • Return type: str

property parentRecordHistoryIdentity

Property parentRecordHistoryIdentity is of type int.

  • Return type: int

property recordReference

Property recordReference is of type RecordReference.

property shortName

Property shortName is of type str.

  • Return type: str

property type

Property type is of type str.

  • Return type: str

AddChildren(_treeRecord)

Appends _treeRecord to children property on TreeRecord C-object.

property c_obj

Pointer to the underlying C-object

UnitConversion

class UnitConversion(factor=None, offset=None, sourceSymbol=None, targetSymbol=None, _isOwner=True)

Bases: object

Information about how to convert from a specified source unit to a target unit.

  • Parameters:

property factor

Property factor is of type float.

property offset

Property offset is of type float.

property sourceSymbol

Property sourceSymbol is of type str.

  • Return type: str

property targetSymbol

Property targetSymbol is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

UnitConversionContext

class UnitConversionContext(absoluteUnits=None, currency=None, unitSystem=None, _isOwner=True)

Bases: object

Type defining how values with units should be represented.

  • Parameters:
    • absoluteUnits (bool)
    • currency (str)
    • unitSystem (str)

property absoluteUnits

Property absoluteUnits is of type bool.

property currency

Property currency is of type str.

  • Return type: str

property unitSystem

Property unitSystem is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

UnitConversionContextConversionSet

class UnitConversionContextConversionSet(unitConversionContext=None, unitConversions=None, _isOwner=True)

Bases: object

All the unit conversions available with a specified unit conversion context.

property unitConversions

Property unitConversions is a list of UnitConversion objects.

WARNING

Do not attempt to edit or append to the returned value.

property unitConversionContext

Property unitConversionContext is of type UnitConversionContext.

AddUnitConversion(_unitConversion)

Appends _unitConversion to unitConversions property on UnitConversionContextConversionSet C-object.

property c_obj

Pointer to the underlying C-object

UnitConversionTarget

class UnitConversionTarget(factor=None, offset=None, targetSymbol=None, _isOwner=True)

Bases: object

Information about how to convert to a target unit. When this type is used directly, the source unit is assumed to be already known from a different type. To obtain a value in the target units, multiply the source value by the factor, and then add the offset.

property factor

Property factor is of type float.

property offset

Property offset is of type float.

property targetSymbol

Property targetSymbol is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

UnitInformation

class UnitInformation(unitName=None, unitSymbol=None, _isOwner=True)

Bases: object

A type used to give details of units for quantities. When this type is output by the Service Layer, both name and symbol will be populated. When passed as input to the Service Layer, only name or symbol need to be populated; if both are populated, only the symbol is used.

  • Parameters:
    • unitName (str)
    • unitSymbol (str)

property unitName

Property unitName is of type str.

  • Return type: str

property unitSymbol

Property unitSymbol is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

UnitSymbol

class UnitSymbol(hasCurrency=None, symbol=None, _isOwner=True)

Bases: object

A unit symbol known to MI, and whether it references a currency.

  • Parameters:

property hasCurrency

Property hasCurrency is of type bool.

property symbol

Property symbol is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

UnittedParameterValue

class UnittedParameterValue(parameterWithValues=None, unitSymbol=None, _isOwner=True)

Bases: object

A Parameter, along with a single value of that Parameter, optionally with units.

property parameterWithValues

Property parameterWithValues is of type ParameterReferenceAndValue.

property unitSymbol

Property unitSymbol is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

UnlinkAllRecords

class UnlinkAllRecords(nodeName=None, sourceRecords=None, _isOwner=True)

Bases: object

For each given source record, remove all links in the Record Link Group.

property sourceRecords

Property sourceRecords is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property nodeName

Property nodeName is of type str.

  • Return type: str

AddSourceRecord(_recordReference)

Appends _recordReference to sourceRecords property on UnlinkAllRecords C-object.

property c_obj

Pointer to the underlying C-object

UnlinkRecords

class UnlinkRecords(nodeName=None, sourceRecords=None, _isOwner=True)

Bases: object

For each given source record, remove links to the target records specified for that source record. Silently skip any links that do not exist.

property sourceRecords

Property sourceRecords is of type list of TargetedSourceRecord.

property nodeName

Property nodeName is of type str.

  • Return type: str

AddSourceRecord(_targetedSourceRecord)

Appends _targetedSourceRecord to sourceRecords property on UnlinkRecords C-object.

property c_obj

Pointer to the underlying C-object

XYData

class XYData(XYPoints=None, XYRanges=None, type=None, _isOwner=True)

Bases: object

A collection of y-axis values for a graph where the y-axis values are either point or range values.

property XYPoints

Property XYPoints is a list of XYPoint objects.

WARNING

Do not attempt to edit or append to the returned value.

property XYRanges

Property XYRanges is a list of XYRange objects.

WARNING

Do not attempt to edit or append to the returned value.

property type

Property type is of type str.

  • Return type: str

AddXYPoint(_XYPoint)

Appends _XYPoint to XYPoints property on XYData C-object.

AddXYRange(_XYRange)

Appends _XYRange to XYRanges property on XYData C-object.

property c_obj

Pointer to the underlying C-object

XYDiscrete

class XYDiscrete(Y=None, isEstimated=None, parameterValue=None, _isOwner=True)

Bases: object

An x-y datum where the y-axis value is a discrete value.

property isEstimated

Property isEstimated is of type bool.

property parameterValue

Property parameterValue is of type ParameterValue.

property Y

Property Y is of type str.

  • Return type: str

property c_obj

Pointer to the underlying C-object

XYDiscreteData

class XYDiscreteData(XYDiscretes=None, _isOwner=True)

Bases: object

A collection of y-axis values for a graph where the y-axis values are discrete values.

property XYDiscretes

Property XYDiscretes is a list of XYDiscrete objects.

WARNING

Do not attempt to edit or append to the returned value.

AddXYDiscrete(_XYDiscrete)

Appends _XYDiscrete to XYDiscretes property on XYDiscreteData C-object.

property c_obj

Pointer to the underlying C-object

XYPoint

class XYPoint(Y=None, isEstimated=None, parameterValue=None, _isOwner=True)

Bases: object

An x-y datum where the y-axis value is a point.

property isEstimated

Property isEstimated is of type bool.

property parameterValue

Property parameterValue is of type ParameterValue.

property Y

Property Y is of type float.

property c_obj

Pointer to the underlying C-object

XYRange

class XYRange(isEstimated=None, lowerY=None, parameterValue=None, upperY=None, _isOwner=True)

Bases: object

An x-y datum where the y-axis value is a range.

property isEstimated

Property isEstimated is of type bool.

property lowerY

Property lowerY is of type float.

property parameterValue

Property parameterValue is of type ParameterValue.

property upperY

Property upperY is of type float.

property c_obj

Pointer to the underlying C-object

Connect with Ansys