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.- Return type:
GetDatabasesResponseobject
GetTables(_req)
List the tables contained in a particular Granta MI Database.- Parameters:
_req (
GetTablesobject) - Return type:
GetTablesResponseobject
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.- Parameters:
_req (
GetRootNodeobject) - Return type:
GetRootNodeResponseobject
GetChildNodes(_req)
Returns information about the child nodes of the given node in the node-tree of a Granta MI Table.- Parameters:
_req (
GetChildNodesobject) - Return type:
GetChildNodesResponseobject
GetSubsets(_req)
List the Subsets for a Granta MI Database or for one Table in a Database.- Parameters:
_req (
GetSubsetsRequestobject) - Return type:
GetSubsetsResponseobject
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.- Parameters:
_req (
GetAssociatedRecordsRequestobject) - Return type:
GetAssociatedRecordsResponseobject
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.- Parameters:
_req (
GetAttributeDetailsRequestobject) - Return type:
GetAttributeDetailsResponseobject
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.- Parameters:
_req (
GetTreeRecordsRequestobject) - Return type:
GetTreeRecordsResponseobject
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.- Parameters:
_req (
GetRecordAttributesRequestobject) - Return type:
GetRecordAttributesResponseobject
GetUnitSystems(_req)
Returns information about the unit systems known to a Granta MI Database- Parameters:
_req (
GetUnitSystemsobject) - Return type:
GetUnitSystemsResponseobject
GetRecordVersions(_req)
Returns version information about the records specified in the request object.- Parameters:
_req (
GetRecordVersionsRequestobject) - Return type:
GetRecordVersionsResponseobject
GetRecordLinkGroups(_req)
Gets details of Record Link Groups in a Granta MI Database.- Parameters:
_req (
GetRecordLinkGroupsobject) - Return type:
GetRecordLinkGroupsResponseobject
GetLinkedRecords(_req)
Returns the linked records for specified records, for one or more record link groups.- Parameters:
_req (
GetLinkedRecordsRequestobject) - Return type:
GetLinkedRecordsResponseobject
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.- Parameters:
_req (
GetAttributeParametersRequestobject) - Return type:
GetAttributeParametersResponseobject
GetParameterDetails(_req)
Returns detailed information about the given Parameter(s) in a Granta MI Database.- Parameters:
_req (
GetParameterDetailsRequestobject) - Return type:
GetParameterDetailsResponseobject
GetMetaAttributes(_req)
Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.- Parameters:
_req (
GetMetaAttributesRequestobject) - Return type:
GetMetaAttributesResponseobject
GetDatabaseParameters(_req)
List the parameter(s) in a Granta MI Database.- Parameters:
_req (
GetDatabaseParametersobject) - Return type:
GetDatabaseParametersResponseobject
GetIntegrationProfiles(_req)
List the profiles available on a Granta MI Database.- Parameters:
_req (
GetIntegrationProfilesobject) - Return type:
GetIntegrationProfilesResponseobject
GetLayouts(_req)
List the Layouts for an MI Database or for one Table in a Database.- Parameters:
_req (
GetLayoutsobject) - Return type:
GetLayoutsResponseobject
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.- Parameters:
_req (
ResolveReferencesRequestobject) - Return type:
ResolveReferencesResponseobject
GetUnitConversions(_req)
Gets all the unit conversions available for a specified unit or unit system.- Parameters:
_req (
GetUnitConversionsRequestobject) - Return type:
GetUnitConversionsResponseobject
GetDatasheetPath(_req)
For each record reference gets the relative portion of an HTTP URL to a Granta MI datasheet, served by MI Viewer.- Parameters:
_req (
GetDatasheetPathobject) - Return type:
GetDatasheetPathResponseobject
GetDatasheetPathParameterized(_req)
Gets information that may be used to construct an HTTP URL to a Granta MI datasheet, served by MI Viewer.- Parameters:
_req (
GetDatasheetPathParameterizedobject) - Return type:
GetDatasheetPathParameterizedResponseobject
GetCurrencies()
Returns the currencies available in the Granta MI Server.- Return type:
GetCurrenciesResponseobject
GetUnits(_req)
Returns information about the units known to one or more Granta MI Databases- Parameters:
_req (
GetUnitsobject) - Return type:
GetUnitsResponseobject
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.- Parameters:
_req (
SimpleTextSearchobject) - Return type:
SimpleTextSearchResponseobject
CriteriaSearch(_req)
Searches for records matching attribute-based criteria.- Parameters:
_req (
CriteriaSearchobject) - Return type:
SimpleTextSearchResponseobject
RecordNameSearch(_req)
Searches for Records with a given exact Record name.- Parameters:
_req (
RecordNameSearchRequestobject) - Return type:
SimpleTextSearchResponseobject
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.- Parameters:
_req (
SetRecordAttributesRequestobject) - Return type:
SetRecordAttributesResponseobject
ModifyRecordLinks(_req)
Adds or removes static Links between record(s) in a Granta MI Database.- Parameters:
_req (
ModifyRecordLinksRequestobject) - Return type:
ModifyRecordLinksResponseobject
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.- Parameters:
_req (
GetUploadAddressesRequestobject) - Return type:
GetUploadAddressesResponseobject
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.- Parameters:
_req (
EnsureRecordFolderPathsRequestobject) - Return type:
EnsureRecordFolderPathsResponseobject
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.- Parameters:
_req (
DeleteOrWithdrawIfLatestRecordVersionRequestobject) - Return type:
DeleteOrWithdrawIfLatestRecordVersionResponseobject
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.- Parameters:
_req (
GetRecordAttributesByRefRequestobject) - Return type:
GetRecordAttributesByRefResponseobject
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.- Parameters:
_req (
GetAvailableExportersRequestobject) - Return type:
GetAvailableExportersResponseobject
ExportRecordData(_req)
Performs an FEA Export and returns the result as the response.- Parameters:
_req (
ExportRecordDataRequestobject) - Return type:
ExportRecordDataResponseobject
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).- Parameters:
_req (
GetExporterParametersRequestobject) - Return type:
GetExporterParametersResponseobject
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.- Parameters:
_req (
ExportersForRecordsRequestobject) - Return type:
ExportersForRecordsResponseobject
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.- Parameters:
_req (
RecordMoveRequestobject) - Return type:
EmptyRestResponseobject
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.
- Parameters:
- associatedRecords (list of
RecordReference) - sourceRecord (
RecordReference)
- associatedRecords (list of
property associatedRecords
Property associatedRecords is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property sourceRecord
Property sourceRecord is of typeRecordReference.
- Return type:
RecordReference
property c_obj
Pointer to the underlying C-objectAttributeAddress
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.
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-objectAttributeCategory
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.
- Parameters:
- categoryAttributeDetails (list of
CategoryAttributeDetail) - name (str)
- order (int)
- recordLinkGroupDetails (list of
RecordLinkGroupDetail) - displayNames (list of
DisplayName)
- categoryAttributeDetails (list of
property categoryAttributeDetails
Property categoryAttributeDetails is a list ofCategoryAttributeDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
CategoryAttributeDetail
property recordLinkGroupDetails
Property recordLinkGroupDetails is a list ofRecordLinkGroupDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroupDetail
property displayNames
Property displayNames is a list ofDisplayName objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DisplayName
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.- Parameters:
_categoryAttributeDetail (
CategoryAttributeDetail)
AddRecordLinkGroupDetail(_recordLinkGroupDetail)
Appends _recordLinkGroupDetail to recordLinkGroupDetails property on AttributeCategory C-object.- Parameters:
_recordLinkGroupDetail (
RecordLinkGroupDetail)
property c_obj
Pointer to the underlying C-objectAttributeDetail
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.
- Parameters:
- about (
NamedAttribute) - attribute (
AttributeReference) - axisName (str)
- chartable (bool)
- databaseUnit (str)
- defaultThreshold (str)
- discreteValues (list of str)
- identity (int)
- isMeta (bool)
- isMultiValued (bool)
- isSearchable (bool)
- isUnique (bool)
- minMax (
MinMax) - name (str)
- order (int)
- revisionInfo (
RevisionInfo) - tabular (
TabularDetail) - type (str)
- isFunctionalRange (bool)
- isOrdered (bool)
- displayNames (list of
DisplayName) - helpInfo (
HelpInfo)
- about (
property about
Property about is of typeNamedAttribute. Only populated if ‘isMeta’ is True.
- Return type:
NamedAttribute
property attribute
Property attribute is of typeAttributeReference.
- Return type:
AttributeReference
property axisName
Property axisName is of type str.- Return type: str
property chartable
Property chartable is of type bool.- Return 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 ofDisplayName objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DisplayName
property helpInfo
Property helpInfo is of typeHelpInfo.
- Return type:
HelpInfo
property identity
Property identity is of type int.- Return type: int
property isFunctionalRange
Property isFunctionalRange is of type bool.- Return 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.- Return type: bool
property isMultiValued
Property isMultiValued is of type bool.- Return type: bool
property isOrdered
Property isOrdered is of type bool.- Return type: bool
property isSearchable
Property isSearchable is of type bool.- Return type: bool
property isUnique
Property isUnique is of type bool.- Return type: bool
property minMax
Property minMax is of typeMinMax.
- Return 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 typeRevisionInfo.
- Return type:
RevisionInfo
property tabular
Property tabular is of typeTabularDetail.
- Return type:
TabularDetail
property type
Property type is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectAttributeExporterParameters
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.
- Parameters:
- attribute (
NamedAttribute) - dataPresence (int)
- graphDomains (list of
GraphDomain) - parameters (list of
ExporterParameter)
- attribute (
class DataPresence
Bases:object
Unknown = 0
Present = 1
NotApplicable = 2
Missing = 3
DataIncompatibleWithConfiguration = 4
property graphDomains
Property graphDomains is a list ofGraphDomain 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.- Return type:
list of
GraphDomain
property parameters
Property parameters is a list ofExporterParameter 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.- Return type:
list of
ExporterParameter
property attribute
Property attribute is of typeNamedAttribute.
- Return type:
NamedAttribute
property dataPresence
Property dataPresence is of type int. SeeAttributeExporterParameters.DataPresence for supported values.
- Return type: int
AddGraphDomain(_graphDomain)
Appends _graphDomain to graphDomains property on AttributeExporterParameters C-object.- Parameters:
_graphDomain (
GraphDomain)
AddParameter(_exporterParameter)
Appends _exporterParameter to parameters property on AttributeExporterParameters C-object.- Parameters:
_exporterParameter (
ExporterParameter)
property c_obj
Pointer to the underlying C-objectAttributeMetaAttributes
class AttributeMetaAttributes(metaAttributes=None, parentAttribute=None, _isOwner=True)
Bases:object
Lists the Meta-Attributes of a particular Attribute in a Granta MI Database Table.
- Parameters:
- metaAttributes (list of
NamedAttribute) - parentAttribute (
AttributeReference)
- metaAttributes (list of
property metaAttributes
Property metaAttributes is a list ofNamedAttribute objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedAttribute
property parentAttribute
Property parentAttribute is of typeAttributeReference.
- Return type:
AttributeReference
property c_obj
Pointer to the underlying C-objectAttributeReference
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.
- Parameters:
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.- Return type: bool
property name
Property name is of type str.- Return type: str
property partialTableReference
Property partialTableReference is of typePartialTableReference.
- Return type:
PartialTableReference
property pseudoAttribute
Property pseudoAttribute is of type int. SeeAttributeReference.MIPseudoAttributeReference for supported values.
- Return type: int
property c_obj
Pointer to the underlying C-objectAttributeValue
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.
- Parameters:
- attributeID (int)
- attributeName (str)
- attributeStandardName (str)
- dataType (str)
- dateDataType (
DateDataType) - dateTimeDataType (
DateTimeDataType) - discreteDataValue (
DiscreteDataType) - fileDataType (
FileDataType) - floatFunctionalGriddedDataType (
FloatFunctionalGriddedDataType) - floatFunctionalSeriesDataType (
FloatFunctionalSeriesDataType) - hyperlinkDataValue (
HyperlinkDataType) - integerDataValue (
IntegerDataType) - logicalDataValue (
LogicalDataType) - longTextDataType (
LongTextDataType) - pictureDataType (
PictureDataType) - pointDataType (
PointDataType) - rangeDataType (
RangeDataType) - shortTextDataType (
ShortTextDataType) - subsetsDataType (
SubsetsDataType) - tabularDataType (
TabularDataType) - discreteFunctionalGriddedDataType (
DiscreteFunctionalGriddedDataType) - discreteFunctionalSeriesDataType (
DiscreteFunctionalSeriesDataType)
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 typeDateDataType.
- Return type:
DateDataType
property dateTimeDataType
Property dateTimeDataType is of typeDateTimeDataType.
- Return type:
DateTimeDataType
property discreteDataValue
Property discreteDataValue is of typeDiscreteDataType.
- Return type:
DiscreteDataType
property discreteFunctionalGriddedDataType
Property discreteFunctionalGriddedDataType is of typeDiscreteFunctionalGriddedDataType.
- Return type:
DiscreteFunctionalGriddedDataType
property discreteFunctionalSeriesDataType
Property discreteFunctionalSeriesDataType is of typeDiscreteFunctionalSeriesDataType.
- Return type:
DiscreteFunctionalSeriesDataType
property fileDataType
Property fileDataType is of typeFileDataType.
- Return type:
FileDataType
property floatFunctionalGriddedDataType
Property floatFunctionalGriddedDataType is of typeFloatFunctionalGriddedDataType.
- Return type:
FloatFunctionalGriddedDataType
property floatFunctionalSeriesDataType
Property floatFunctionalSeriesDataType is of typeFloatFunctionalSeriesDataType.
- Return type:
FloatFunctionalSeriesDataType
property hyperlinkDataValue
Property hyperlinkDataValue is of typeHyperlinkDataType.
- Return type:
HyperlinkDataType
property integerDataValue
Property integerDataValue is of typeIntegerDataType.
- Return type:
IntegerDataType
property logicalDataValue
Property logicalDataValue is of typeLogicalDataType.
- Return type:
LogicalDataType
property longTextDataType
Property longTextDataType is of typeLongTextDataType.
- Return type:
LongTextDataType
property pictureDataType
Property pictureDataType is of typePictureDataType.
- Return type:
PictureDataType
property pointDataType
Property pointDataType is of typePointDataType.
- Return type:
PointDataType
property rangeDataType
Property rangeDataType is of typeRangeDataType.
- Return type:
RangeDataType
property shortTextDataType
Property shortTextDataType is of typeShortTextDataType.
- Return type:
ShortTextDataType
property subsetsDataType
Property subsetsDataType is of typeSubsetsDataType.
- Return type:
SubsetsDataType
property tabularDataType
Property tabularDataType is of typeTabularDataType.
- Return type:
TabularDataType
property c_obj
Pointer to the underlying C-objectBetweenDateTimesSearchValue
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).
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-objectBetweenSearchValue
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.
- Parameters:
- highEnd (
HighEndSearchValue) - lowEnd (
LowEndSearchValue) - tabularColumn (str)
- highEnd (
property highEnd
Property highEnd is of typeHighEndSearchValue.
- Return type:
HighEndSearchValue
property lowEnd
Property lowEnd is of typeLowEndSearchValue.
- Return type:
LowEndSearchValue
property tabularColumn
Property tabularColumn is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectBinaryDataSettings
class BinaryDataSettings(binaryDataRepresentation=None, maxImageSize=None, _isOwner=True)
Bases:object
Settings for exporting file and picture data.
- Parameters:
- binaryDataRepresentation (int)
- maxImageSize (
RasterSize)
property binaryDataRepresentation
Property binaryDataRepresentation is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property maxImageSize
Property maxImageSize is of typeRasterSize.
- Return type:
RasterSize
property c_obj
Pointer to the underlying C-objectBrowseService
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.- Return type:
GetDatabasesResponseobject
GetTables(_req)
List the tables contained in a particular Granta MI Database.- Parameters:
_req (
GetTablesobject) - Return type:
GetTablesResponseobject
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.- Parameters:
_req (
GetRootNodeobject) - Return type:
GetRootNodeResponseobject
GetChildNodes(_req)
Returns information about the child nodes of the given node in the node-tree of a Granta MI Table.- Parameters:
_req (
GetChildNodesobject) - Return type:
GetChildNodesResponseobject
GetSubsets(_req)
List the Subsets for a Granta MI Database or for one Table in a Database.- Parameters:
_req (
GetSubsetsRequestobject) - Return type:
GetSubsetsResponseobject
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.- Parameters:
_req (
GetAssociatedRecordsRequestobject) - Return type:
GetAssociatedRecordsResponseobject
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.- Parameters:
_req (
GetAttributeDetailsRequestobject) - Return type:
GetAttributeDetailsResponseobject
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.- Parameters:
_req (
GetTreeRecordsRequestobject) - Return type:
GetTreeRecordsResponseobject
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.- Parameters:
_req (
GetRecordAttributesRequestobject) - Return type:
GetRecordAttributesResponseobject
GetUnitSystems(_req)
Returns information about the unit systems known to a Granta MI Database- Parameters:
_req (
GetUnitSystemsobject) - Return type:
GetUnitSystemsResponseobject
GetRecordVersions(_req)
Returns version information about the records specified in the request object.- Parameters:
_req (
GetRecordVersionsRequestobject) - Return type:
GetRecordVersionsResponseobject
GetRecordLinkGroups(_req)
Gets details of Record Link Groups in a Granta MI Database.- Parameters:
_req (
GetRecordLinkGroupsobject) - Return type:
GetRecordLinkGroupsResponseobject
GetLinkedRecords(_req)
Returns the linked records for specified records, for one or more record link groups.- Parameters:
_req (
GetLinkedRecordsRequestobject) - Return type:
GetLinkedRecordsResponseobject
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.- Parameters:
_req (
GetAttributeParametersRequestobject) - Return type:
GetAttributeParametersResponseobject
GetParameterDetails(_req)
Returns detailed information about the given Parameter(s) in a Granta MI Database.- Parameters:
_req (
GetParameterDetailsRequestobject) - Return type:
GetParameterDetailsResponseobject
GetMetaAttributes(_req)
Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.- Parameters:
_req (
GetMetaAttributesRequestobject) - Return type:
GetMetaAttributesResponseobject
GetDatabaseParameters(_req)
List the parameter(s) in a Granta MI Database.- Parameters:
_req (
GetDatabaseParametersobject) - Return type:
GetDatabaseParametersResponseobject
GetIntegrationProfiles(_req)
List the profiles available on a Granta MI Database.- Parameters:
_req (
GetIntegrationProfilesobject) - Return type:
GetIntegrationProfilesResponseobject
GetLayouts(_req)
List the Layouts for an MI Database or for one Table in a Database.- Parameters:
_req (
GetLayoutsobject) - Return type:
GetLayoutsResponseobject
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.- Parameters:
_req (
ResolveReferencesRequestobject) - Return type:
ResolveReferencesResponseobject
GetUnitConversions(_req)
Gets all the unit conversions available for a specified unit or unit system.- Parameters:
_req (
GetUnitConversionsRequestobject) - Return type:
GetUnitConversionsResponseobject
GetDatasheetPath(_req)
For each record reference gets the relative portion of an HTTP URL to a Granta MI datasheet, served by MI Viewer.- Parameters:
_req (
GetDatasheetPathobject) - Return type:
GetDatasheetPathResponseobject
GetDatasheetPathParameterized(_req)
Gets information that may be used to construct an HTTP URL to a Granta MI datasheet, served by MI Viewer.- Parameters:
_req (
GetDatasheetPathParameterizedobject) - Return type:
GetDatasheetPathParameterizedResponseobject
GetCurrencies()
Returns the currencies available in the Granta MI Server.- Return type:
GetCurrenciesResponseobject
GetUnits(_req)
Returns information about the units known to one or more Granta MI Databases- Parameters:
_req (
GetUnitsobject) - Return type:
GetUnitsResponseobject
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.
- Parameters:
- about (
NamedAttribute) - attribute (
AttributeReference) - axisName (str)
- chartable (bool)
- databaseUnit (str)
- defaultThreshold (str)
- discreteValues (list of str)
- helpInfo (
HelpInfo) - identity (int)
- isMeta (bool)
- isMultiValued (bool)
- isReadOnly (bool)
- isRequired (bool)
- isSearchable (bool)
- name (str)
- order (int)
- revisionInfo (
RevisionInfo) - type (str)
- about (
property about
Property about is of typeNamedAttribute.
- Return type:
NamedAttribute
property attribute
Property attribute is of typeAttributeReference.
- Return type:
AttributeReference
property axisName
Property axisName is of type str.- Return type: str
property chartable
Property chartable is of type bool.- Return 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 typeHelpInfo.
- Return type:
HelpInfo
property identity
Property identity is of type int.- Return type: int
property isMeta
Property isMeta is of type bool.- Return type: bool
property isMultiValued
Property isMultiValued is of type bool.- Return type: bool
property isReadOnly
Property isReadOnly is of type bool.- Return type: bool
property isRequired
Property isRequired is of type bool.- Return type: bool
property isSearchable
Property isSearchable is of type bool.- Return 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 typeRevisionInfo.
- Return type:
RevisionInfo
property type
Property type is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectConstraint
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.
- Parameters:
- label (str)
- parameter (
ParameterReference) - parameterValue (
ParameterValue)
property label
Property label is of type str.- Return type: str
property parameter
Property parameter is of typeParameterReference.
- Return type:
ParameterReference
property parameterValue
Property parameterValue is of typeParameterValue.
- Return type:
ParameterValue
property c_obj
Pointer to the underlying C-objectConstraints
class Constraints(constraints=None, _isOwner=True)
Bases:object
A container of constraints.
- Parameters:
constraints (list of
Constraint)
property constraints
Property constraints is a list ofConstraint objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
Constraint
AddConstraint(_constraint)
Appends _constraint to constraints property on Constraints C-object.- Parameters:
_constraint (
Constraint)
property c_obj
Pointer to the underlying C-objectContainsAllSearchValue
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.
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-objectContainsAnySearchValue
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.
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-objectContainsSearchValue
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.
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-objectCriteriaSearch
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.
- Parameters:
- DBKey (str)
- parameterValues (list of
UnittedParameterValue) - populateGUIDs (bool)
- recordFilter (
RecordFilter) - searchCriteria (list of
RecordSearchCriterion) - searchFilter (int)
- searchMode (int)
- significantFigures (int)
property parameterValues
Property parameterValues is a list ofUnittedParameterValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnittedParameterValue
property searchCriteria
Property searchCriteria is a list ofRecordSearchCriterion objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordSearchCriterion
property DBKey
Property DBKey is of type str.- Return type: str
property populateGUIDs
Property populateGUIDs is of type bool.- Return type: bool
property recordFilter
Property recordFilter is of typeRecordFilter.
- Return type:
RecordFilter
property searchFilter
Property searchFilter is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property searchMode
Property searchMode is of type int. SeeGRANTA_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.- Parameters:
_unittedParameterValue (
UnittedParameterValue)
AddSearchCriteria(_recordSearchCriterion)
Appends _recordSearchCriterion to searchCriteria property on CriteriaSearch C-object.- Parameters:
_recordSearchCriterion (
RecordSearchCriterion)
property c_obj
Pointer to the underlying C-objectCurrencyDetail
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.- Return type: float
property name
Property name is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectDataExportService
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.- Parameters:
_req (
GetRecordAttributesByRefRequestobject) - Return type:
GetRecordAttributesByRefResponseobject
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.- Parameters:
_req (
SetRecordAttributesRequestobject) - Return type:
SetRecordAttributesResponseobject
ModifyRecordLinks(_req)
Adds or removes static Links between record(s) in a Granta MI Database.- Parameters:
_req (
ModifyRecordLinksRequestobject) - Return type:
ModifyRecordLinksResponseobject
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.- Parameters:
_req (
GetUploadAddressesRequestobject) - Return type:
GetUploadAddressesResponseobject
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.- Parameters:
_req (
EnsureRecordFolderPathsRequestobject) - Return type:
EnsureRecordFolderPathsResponseobject
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.- Parameters:
_req (
DeleteOrWithdrawIfLatestRecordVersionRequestobject) - Return type:
DeleteOrWithdrawIfLatestRecordVersionResponseobject
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:
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-objectDatabaseRevision
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).
property hasRevisionNote
Property hasRevisionNote is of type bool.- Return 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-objectDatabaseUnitSet
class DatabaseUnitSet(DBKey=None, unitSymbols=None, _isOwner=True)
Bases:object
An array of UnitSymbols for a specific database.
- Parameters:
- DBKey (str)
- unitSymbols (list of
UnitSymbol)
property DBKey
Property DBKey is of type str.- Return type: str
property unitSymbols
Property unitSymbols is a list ofUnitSymbol objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitSymbol
property c_obj
Pointer to the underlying C-objectDatasheetPath
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.
- Parameters:
- URL (str)
- recordReference (
RecordReference)
property recordReference
Property recordReference is of typeRecordReference.
- Return type:
RecordReference
property URL
Property URL is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectDateDataType
class DateDataType(isApplicable=None, value=None, _isOwner=True)
Bases:IDataValue
Container of date data. The format is YYYY-MM-DD.
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property value
Property value is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectDateTimeDataType
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.
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property value
Property value is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectDefaultParameterValue
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.
property discreteValue
Property discreteValue is of type str.- Return type: str
property numericValue
Property numericValue is of type float.- Return type: float
property type
Property type is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectDeleteOrWithdrawIfLatestRecordVersionRequest
class DeleteOrWithdrawIfLatestRecordVersionRequest(deleteOrWithdrawRecords=None, notes=None, _isOwner=True)
Bases:object
DeleteOrWithdrawIfLatestRecordVersionRequest. Input for the DeleteOrWithdrawIfLatestRecordVersion
operation, containing the DeleteOrWithdrawRecord objects.
- Parameters:
- deleteOrWithdrawRecords (list of
DeleteOrWithdrawRecord) - notes (str)
- deleteOrWithdrawRecords (list of
property deleteOrWithdrawRecords
Property deleteOrWithdrawRecords is a list ofDeleteOrWithdrawRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DeleteOrWithdrawRecord
property notes
Property notes is of type str.- Return type: str
AddDeleteOrWithdrawRecord(_deleteOrWithdrawRecord)
Appends _deleteOrWithdrawRecord to deleteOrWithdrawRecords property on DeleteOrWithdrawIfLatestRecordVersionRequest C-object.- Parameters:
_deleteOrWithdrawRecord (
DeleteOrWithdrawRecord)
property c_obj
Pointer to the underlying C-objectDeleteOrWithdrawIfLatestRecordVersionResponse
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.
- Parameters:
recordReference (
RecordReference)
property recordReference
Property recordReference is of typeRecordReference.
- Return type:
RecordReference
property c_obj
Pointer to the underlying C-objectDiscreteDataType
class DiscreteDataType(discreteValues=None, isApplicable=None, _isOwner=True)
Bases:IDataValue
Container of discrete data.
- Parameters:
- discreteValues (list of
DiscreteValue) - isApplicable (bool)
- discreteValues (list of
property discreteValues
Property discreteValues is a list ofDiscreteValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DiscreteValue
property isApplicable
Property isApplicable is of type bool.- Return type: bool
AddDiscreteValue(_discreteValue)
Appends _discreteValue to discreteValues property on DiscreteDataType C-object.- Parameters:
_discreteValue (
DiscreteValue)
property c_obj
Pointer to the underlying C-objectDiscreteFunctionalGriddedDataType
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.
- Parameters:
- defaultXAxisParameter (
ParameterInformation) - functionalDataParameterSettings (list of
FunctionalDataParameterSettings) - isApplicable (bool)
- values (
DiscreteFunctionalValues)
- defaultXAxisParameter (
property functionalDataParameterSettings
Property functionalDataParameterSettings is a list ofFunctionalDataParameterSettings objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FunctionalDataParameterSettings
property defaultXAxisParameter
Property defaultXAxisParameter is of typeParameterInformation.
- Return type:
ParameterInformation
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property values
Property values is of typeDiscreteFunctionalValues.
- Return type:
DiscreteFunctionalValues
AddFunctionalDataParameterSettings(_functionalDataParameterSettings)
Appends _functionalDataParameterSettings to functionalDataParameterSettings property on DiscreteFunctionalGriddedDataType C-object.- Parameters:
_functionalDataParameterSettings (
FunctionalDataParameterSettings)
property c_obj
Pointer to the underlying C-objectDiscreteFunctionalSeriesDataType
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.
- Parameters:
- functionalDataParameterSettings (list of
FunctionalDataParameterSettings) - graph (
DiscreteFunctionalSeriesGraph) - isApplicable (bool)
- functionalDataParameterSettings (list of
property functionalDataParameterSettings
Property functionalDataParameterSettings is a list ofFunctionalDataParameterSettings objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FunctionalDataParameterSettings
property graph
Property graph is of typeDiscreteFunctionalSeriesGraph.
- Return type:
DiscreteFunctionalSeriesGraph
property isApplicable
Property isApplicable is of type bool.- Return type: bool
AddFunctionalDataParameterSettings(_functionalDataParameterSettings)
Appends _functionalDataParameterSettings to functionalDataParameterSettings property on DiscreteFunctionalSeriesDataType C-object.- Parameters:
_functionalDataParameterSettings (
FunctionalDataParameterSettings)
property c_obj
Pointer to the underlying C-objectDiscreteFunctionalSeriesGraph
class DiscreteFunctionalSeriesGraph(XAxisParameter=None, hideGraph=None, series=None, _isOwner=True)
A type to contain a collection ofDiscreteSeries objects that
contain the functional data.
- Parameters:
- XAxisParameter (
ParameterInformation) - hideGraph (bool)
- series (list of
DiscreteSeries)
- XAxisParameter (
property series
Property series is a list ofDiscreteSeries objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DiscreteSeries
property hideGraph
Property hideGraph is of type bool.- Return type: bool
property XAxisParameter
Property XAxisParameter is of typeParameterInformation.
- Return type:
ParameterInformation
AddSeries(_discreteSeries)
Appends _discreteSeries to series property on DiscreteFunctionalSeriesGraph C-object.- Parameters:
_discreteSeries (
DiscreteSeries)
property c_obj
Pointer to the underlying C-objectDiscreteFunctionalValue
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.
- Parameters:
- constraints (
Constraints) - value (str)
- isEstimated (bool)
- constraints (
property constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property isEstimated
Property isEstimated is of type bool.- Return type: bool
property value
Property value is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectDiscreteFunctionalValues
class DiscreteFunctionalValues(values=None, _isOwner=True)
Bases:object
A collection of DiscreteFunctionalValue objects.
- Parameters:
values (list of
DiscreteFunctionalValue)
property values
Property values is a list ofDiscreteFunctionalValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DiscreteFunctionalValue
AddValue(_discreteFunctionalValue)
Appends _discreteFunctionalValue to values property on DiscreteFunctionalValues C-object.- Parameters:
_discreteFunctionalValue (
DiscreteFunctionalValue)
property c_obj
Pointer to the underlying C-objectDiscreteSeries
class DiscreteSeries(XYPoints=None, constraints=None, _isOwner=True)
Bases:object
Type for functional data which includes X-Y discrete data and any constraints.
- Parameters:
- XYPoints (
XYDiscreteData) - constraints (
Constraints)
- XYPoints (
property constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property XYPoints
Property XYPoints is of typeXYDiscreteData.
- Return type:
XYDiscreteData
property c_obj
Pointer to the underlying C-objectDiscreteValue
class DiscreteValue(order=None, value=None, _isOwner=True)
Bases:object
The value of a discrete data type.
Contains an order and a value.
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-objectDisplayName
class DisplayName(language=None, translation=None, _isOwner=True)
Bases:object
A language identifier and localized string for the display name of an object.
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-objectDoesNotContainSearchValue
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.
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-objectDoesNotExistSearchValue
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-objectEmptyDataType
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-objectEmptyRestResponse
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.- Parameters:
_req (
GetAvailableExportersRequestobject) - Return type:
GetAvailableExportersResponseobject
ExportRecordData(_req)
Performs an FEA Export and returns the result as the response.- Parameters:
_req (
ExportRecordDataRequestobject) - Return type:
ExportRecordDataResponseobject
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).- Parameters:
_req (
GetExporterParametersRequestobject) - Return type:
GetExporterParametersResponseobject
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.- Parameters:
_req (
ExportersForRecordsRequestobject) - Return type:
ExportersForRecordsResponseobject
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.
- Parameters:
- folderPaths (list of
RecordFolderPath) - importErrorMode (str)
- notes (str)
- folderPaths (list of
property folderPaths
Property folderPaths is a list ofRecordFolderPath objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordFolderPath
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.- Parameters:
_recordFolderPath (
RecordFolderPath)
property c_obj
Pointer to the underlying C-objectEnsureRecordFolderPathsResponse
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 ofPathLeaf objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
PathLeaf
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.
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-objectExactlySearchValue
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.
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-objectExistsSearchValue
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-objectExportRecordDataRequest
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.
- Parameters:
- attributeReferences (list of
AttributeReference) - exporterKey (str)
- filter (
RecordFilter) - parameterValues (list of
UnittedParameterValue) - records (list of
RecordReference) - sigFigs (int)
- stopBeforeId (str)
- stopBeforeIndex (int)
- unitConversionContext (
UnitConversionContext)
- attributeReferences (list of
property attributeReferences
Property attributeReferences is a list ofAttributeReference 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.- Return type:
list of
AttributeReference
property parameterValues
Property parameterValues is a list ofUnittedParameterValue 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.- Return type:
list of
UnittedParameterValue
property records
Property records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property exporterKey
Property exporterKey is of type str.- Return type: str
property filter
Property filter is of typeRecordFilter. 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.
- Return type:
RecordFilter
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 typeUnitConversionContext.
- Return type:
UnitConversionContext
AddAttributeReference(_attributeReference)
Appends _attributeReference to attributeReferences property on ExportRecordDataRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
AddParameterValues(_unittedParameterValue)
Appends _unittedParameterValue to parameterValues property on ExportRecordDataRequest C-object.- Parameters:
_unittedParameterValue (
UnittedParameterValue)
AddRecord(_recordReference)
Appends _recordReference to records property on ExportRecordDataRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectExportRecordDataResponse
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.
- Parameters:
- DBKey (str)
- attributeID (int)
- isStandardName (bool)
- name (str)
- partialTableReference (
PartialTableReference) - preferredXAxisParameter (
ParameterReference) - pseudoAttribute (int)
- specificUnitConversionContext (
SpecificUnitConversionContext)
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.- Return type: bool
property name
Property name is of type str.- Return type: str
property partialTableReference
Property partialTableReference is of typePartialTableReference.
- Return type:
PartialTableReference
property preferredXAxisParameter
Property preferredXAxisParameter is of typeParameterReference.
- Return type:
ParameterReference
property specificUnitConversionContext
Property specificUnitConversionContext is of typeSpecificUnitConversionContext.
- Return type:
SpecificUnitConversionContext
property pseudoAttribute
Property pseudoAttribute is of type int.- Return type: int
property c_obj
Pointer to the underlying C-objectExporter
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.
- Parameters:
property absoluteUnitsOptional
Property absoluteUnitsOptional is of type bool.- Return 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 ofExporterTransform objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExporterTransform
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 typeExporterOutputFile.
- Return type:
ExporterOutputFile
property package
Property package is of type str.- Return type: str
property useAbsoluteUnits
Property useAbsoluteUnits is of type bool.- Return type: bool
property validatedOk
Property validatedOk is of type bool.- Return type: bool
property version
Property version is of type int.- Return type: int
property c_obj
Pointer to the underlying C-objectExporterOutputFile
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:
class ExporterFileNameConvention
Bases:object
Default = 0
TreeName = 1
TableName = 2
RecordName = 3
Custom = 4
property convention
Property convention is of type int. SeeExporterOutputFile.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.- Return type: bool
property c_obj
Pointer to the underlying C-objectExporterParameter
class ExporterParameter(Id=None, name=None, parameterReference=None, unit=None, usage=None, _isOwner=True)
Bases:object
Information about a Parameter of Functional Data.
- Parameters:
- Id (str)
- name (str)
- parameterReference (
ParameterReference) - unit (
UnitInformation) - usage (int)
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 typeParameterReference.
- Return type:
ParameterReference
property unit
Property unit is of typeUnitInformation.
- Return type:
UnitInformation
property usage
Property usage is of type int. SeeExporterParameter.Usage for supported values.
- Return type: int
property c_obj
Pointer to the underlying C-objectExporterPopulation
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.
- Parameters:
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 ofExporterTransform objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExporterTransform
property package
Property package is of type str.- Return type: str
property populationState
Property populationState is of type int. SeeExporterPopulation.PopulationState for supported values.
- Return type: int
property validatedOk
Property validatedOk is of type bool.- Return type: bool
property version
Property version is of type int.- Return type: int
property c_obj
Pointer to the underlying C-objectExporterTransform
class ExporterTransform(Id=None, type=None, _isOwner=True)
Bases:object
Contains a type and an ID for an Exporter Transform.
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. SeeExporterTransform.Type for supported values.
- Return type: int
property c_obj
Pointer to the underlying C-objectExportersForRecord
class ExportersForRecord(exporters=None, record=None, _isOwner=True)
Bases:object
A type to contain a record and its associated exporters.
- Parameters:
- exporters (list of
ExporterPopulation) - record (
RecordReference)
- exporters (list of
property exporters
Property exporters is a list ofExporterPopulation objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExporterPopulation
property record
Property record is of typeRecordReference.
- Return type:
RecordReference
property c_obj
Pointer to the underlying C-objectExportersForRecordsRequest
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 ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
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.- Return type: bool
property specificAttributeExportersOnly
Property specificAttributeExportersOnly is of type bool.- Return type: bool
property versionPolicy
Property versionPolicy is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
AddRecord(_recordReference)
Appends _recordReference to records property on ExportersForRecordsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectExportersForRecordsResponse
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 ofExportersForRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExportersForRecord
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.- Return type: bytes
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.- Return type: bool
property URL
Property URL is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectFloatFunctionalGraph
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.
property series
Property series is a list ofSeries objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
Series
property hideGraph
Property hideGraph is of type bool.- Return type: bool
property logarithmicYAxis
Property logarithmicYAxis is of type bool.- Return type: bool
AddSeries(_series)
Appends _series to series property on FloatFunctionalGraph C-object.- Parameters:
_series (
Series)
property c_obj
Pointer to the underlying C-objectFloatFunctionalGriddedDataType
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.
- Parameters:
- decoration (int)
- defaultXAxisParameter (
ParameterInformation) - isApplicable (bool)
- unitInformation (
UnitInformation) - values (
FloatFunctionalValues) - functionalDataParameterSettings (list of
FunctionalDataParameterSettings)
property functionalDataParameterSettings
Property functionalDataParameterSettings is a list ofFunctionalDataParameterSettings objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FunctionalDataParameterSettings
property decoration
Property decoration is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property defaultXAxisParameter
Property defaultXAxisParameter is of typeParameterInformation.
- Return type:
ParameterInformation
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property unitInformation
Property unitInformation is of typeUnitInformation.
- Return type:
UnitInformation
property values
Property values is of typeFloatFunctionalValues.
- Return type:
FloatFunctionalValues
AddFunctionalDataParameterSettings(_functionalDataParameterSettings)
Appends _functionalDataParameterSettings to functionalDataParameterSettings property on FloatFunctionalGriddedDataType C-object.- Parameters:
_functionalDataParameterSettings (
FunctionalDataParameterSettings)
property c_obj
Pointer to the underlying C-objectFloatFunctionalPointValue
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.
- Parameters:
- constraints (
Constraints) - value (float)
- isEstimated (bool)
- constraints (
property constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property isEstimated
Property isEstimated is of type bool.- Return type: bool
property value
Property value is of type float.- Return type: float
property c_obj
Pointer to the underlying C-objectFloatFunctionalRangeValue
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.
- Parameters:
- constraints (
Constraints) - highValue (float)
- lowValue (float)
- isEstimated (bool)
- constraints (
property constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property highValue
Property highValue is of type float.- Return type: float
property isEstimated
Property isEstimated is of type bool.- Return type: bool
property lowValue
Property lowValue is of type float.- Return type: float
property c_obj
Pointer to the underlying C-objectFloatFunctionalSeriesDataType
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.
- Parameters:
- graph (
FloatFunctionalSeriesGraph) - isApplicable (bool)
- unitInformation (
UnitInformation) - functionalDataParameterSettings (list of
FunctionalDataParameterSettings)
- graph (
property functionalDataParameterSettings
Property functionalDataParameterSettings is a list ofFunctionalDataParameterSettings objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FunctionalDataParameterSettings
property graph
Property graph is of typeFloatFunctionalSeriesGraph.
- Return type:
FloatFunctionalSeriesGraph
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property unitInformation
Property unitInformation is of typeUnitInformation.
- Return type:
UnitInformation
AddFunctionalDataParameterSettings(_functionalDataParameterSettings)
Appends _functionalDataParameterSettings to functionalDataParameterSettings property on FloatFunctionalSeriesDataType C-object.- Parameters:
_functionalDataParameterSettings (
FunctionalDataParameterSettings)
property c_obj
Pointer to the underlying C-objectFloatFunctionalSeriesGraph
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.
- Parameters:
- XAxisParameter (
ParameterInformation) - hideGraph (bool)
- logarithmicYAxis (bool)
- series (list of
Series)
- XAxisParameter (
property series
Property series is a list ofSeries objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
Series
property hideGraph
Property hideGraph is of type bool.- Return type: bool
property logarithmicYAxis
Property logarithmicYAxis is of type bool.- Return type: bool
property XAxisParameter
Property XAxisParameter is of typeParameterInformation.
- Return type:
ParameterInformation
AddSeries(_series)
Appends _series to series property on FloatFunctionalSeriesGraph C-object.- Parameters:
_series (
Series)
property c_obj
Pointer to the underlying C-objectFloatFunctionalValues
class FloatFunctionalValues(pointValues=None, rangeValues=None, valueType=None, _isOwner=True)
Bases:object
A collection of FloatFunctionalPointValue and
FloatFunctionalRangeValue objects.
- Parameters:
- pointValues (list of
FloatFunctionalPointValue) - rangeValues (list of
FloatFunctionalRangeValue) - valueType (str)
- pointValues (list of
property pointValues
Property pointValues is a list ofFloatFunctionalPointValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FloatFunctionalPointValue
property rangeValues
Property rangeValues is a list ofFloatFunctionalRangeValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FloatFunctionalRangeValue
property valueType
Property valueType is of type str.- Return type: str
AddPointValue(_floatFunctionalPointValue)
Appends _floatFunctionalPointValue to pointValues property on FloatFunctionalValues C-object.- Parameters:
_floatFunctionalPointValue (
FloatFunctionalPointValue)
AddRangeValue(_floatFunctionalRangeValue)
Appends _floatFunctionalRangeValue to rangeValues property on FloatFunctionalValues C-object.- Parameters:
_floatFunctionalRangeValue (
FloatFunctionalRangeValue)
property c_obj
Pointer to the underlying C-objectFunctionalDataParameterSettings
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.
- Parameters:
- datumDefaultValue (
DefaultParameterValue) - datumInterpolationMethod (int)
- datumScaleType (int)
- effectiveDefaultValue (
DefaultParameterValue) - effectiveDefaultValueDefinedAt (int)
- effectiveInterpolationMethod (int)
- effectiveInterpolationMethodDefinedAt (int)
- effectiveScaleType (int)
- effectiveScaleTypeDefinedAt (int)
- hasDatumDefaultValue (bool)
- hasDatumInterpolationMethod (bool)
- hasDatumScaleType (bool)
- hasEffectiveDefaultValue (bool)
- parameter (
ParameterInformation)
- datumDefaultValue (
property datumDefaultValue
Property datumDefaultValue is of typeDefaultParameterValue.
- Return 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 typeDefaultParameterValue.
- Return 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.- Return type: bool
property hasDatumInterpolationMethod
Property hasDatumInterpolationMethod is of type bool.- Return type: bool
property hasDatumScaleType
Property hasDatumScaleType is of type bool.- Return type: bool
property hasEffectiveDefaultValue
Property hasEffectiveDefaultValue is of type bool.- Return type: bool
property parameter
Property parameter is of typeParameterInformation.
- Return type:
ParameterInformation
property c_obj
Pointer to the underlying C-objectFunctionalDataSettings
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.
property convertGridToSeries
Property convertGridToSeries is of type bool.- Return type: bool
property maxSeries
Property maxSeries is of type int.- Return type: int
property c_obj
Pointer to the underlying C-objectGRANTA_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
Forward = ‘CheckOnlyForwardLinks’
ForwardAndReverse = ‘CheckForwardAndReverseLinks’
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’
HYPERLINK_TYPE_STRING = ‘HLNK’
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:
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
- slResponse (
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.- Return type:
ServiceLayerResponse
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
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 (
OIDCobject) – 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 unreachableproperty browseService
Service providing schema browse operations.- Return type:
BrowseService
property searchService
Service providing record search operations.- Return type:
SearchService
property dataExportService
Service providing data export operations.- Return type:
DataExportService
property dataImportService
Service providing data import operations.- Return type:
DataImportService
property engineeringDataService
Service providing export operations for Finite Element Analysis material cards.- Return type:
EngineeringDataService
property recordManipulatorService
Service providing additional operations for record manipulation.- Return type:
RecordManipulatorService
GetAssociatedRecordsRequest
class GetAssociatedRecordsRequest(attributeReferences=None, linkDirection=None, populateGUIDs=None, recordFilter=None, recordReferences=None, tableReference=None, _isOwner=True)
Bases:object
Input for the GetAssociatedRecords operation.
- Parameters:
- attributeReferences (list of
AttributeReference) - linkDirection (int)
- populateGUIDs (bool)
- recordFilter (
RecordFilter) - recordReferences (list of
RecordReference) - tableReference (
TableReference)
- attributeReferences (list of
class AssociationLinkDirection
Bases:object
NONE = 0
Both = 1
Forward = 2
Reverse = 3
property attributeReferences
Property attributeReferences is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property recordReferences
Property recordReferences is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property linkDirection
Property linkDirection is of type int.- Return type: int
property populateGUIDs
Property populateGUIDs is of type bool.- Return type: bool
property recordFilter
Property recordFilter is of typeRecordFilter.
- Return type:
RecordFilter
property tableReference
Property tableReference is of typeTableReference.
- Return type:
TableReference
AddAttributeReference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetAssociatedRecordsRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
AddRecordReference(_recordReference)
Appends _recordReference to recordReferences property on GetAssociatedRecordsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectGetAssociatedRecordsResponse
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 ofAssociatedRecords objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AssociatedRecords
AddAssociatedRecords(_associatedRecords)
Appends _associatedRecords to associatedRecords property on GetAssociatedRecordsResponse C-object.- Parameters:
_associatedRecords (
AssociatedRecords)
GetAttributeDetailsRequest
class GetAttributeDetailsRequest(attributeReferences=None, minMaxCalculation=None, _isOwner=True)
Bases:object
Input for the GetAttributeDetails operation.
For requests at least one AttributeReference is required.
- Parameters:
- attributeReferences (list of
AttributeReference) - minMaxCalculation (int)
- attributeReferences (list of
property attributeReferences
Property attributeReferences is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property minMaxCalculation
Property minMaxCalculation is of type int.- Return type: int
AddAttributeReference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetAttributeDetailsRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
property c_obj
Pointer to the underlying C-objectGetAttributeDetailsResponse
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 ofAttributeDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeDetail
AddAttributeDetails(_attributeDetail)
Appends _attributeDetail to attributeDetails property on GetAttributeDetailsResponse C-object.- Parameters:
_attributeDetail (
AttributeDetail)
GetAttributeParametersRequest
class GetAttributeParametersRequest(attributeReferences=None, _isOwner=True)
Bases:object
Input for the GetAttributeParameters operation.
For requests, at least one AttributeReference is required.
- Parameters:
attributeReferences (list of
AttributeReference)
property attributeReferences
Property attributeReferences is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
AddAttributeReference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetAttributeParametersRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
property c_obj
Pointer to the underlying C-objectGetAttributeParametersResponse
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 ofParameterDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDetail
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.
- Parameters:
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.- Return type: bool
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 typePartialTableReference.
- Return type:
PartialTableReference
property versionPolicy
Property versionPolicy is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property c_obj
Pointer to the underlying C-objectGetAvailableExportersResponse
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 ofExporter objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
Exporter
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.
- Parameters:
- excludeWithdrawn (bool)
- parent (
RecordReference) - populateGUIDs (bool)
- recordFilter (
RecordFilter) - recurse (bool)
- recurseMaxDepth (int)
property excludeWithdrawn
Property excludeWithdrawn is of type bool.- Return type: bool
property parent
Property parent is of typeRecordReference.
- Return type:
RecordReference
property populateGUIDs
Property populateGUIDs is of type bool.- Return type: bool
property recordFilter
Property recordFilter is of typeRecordFilter.
- Return type:
RecordFilter
property recurse
Property recurse is of type bool.- Return type: bool
property recurseMaxDepth
Property recurseMaxDepth is of type int.- Return type: int
property c_obj
Pointer to the underlying C-objectGetChildNodesResponse
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 ofTreeRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TreeRecord
AddTreeRecord(_treeRecord)
Appends _treeRecord to treeRecords property on GetChildNodesResponse C-object.- Parameters:
_treeRecord (
TreeRecord)
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 ofCurrencyDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
CurrencyDetail
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.
property DBKey
Property DBKey is of type str.- Return type: str
property requireStandardNames
Property requireStandardNames is of type bool.- Return type: bool
property useStandardNamesWherePossible
Property useStandardNamesWherePossible is of type bool.- Return type: bool
property c_obj
Pointer to the underlying C-objectGetDatabaseParametersResponse
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 ofParameterDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDetail
AddParameterDetail(_parameterDetail)
Appends _parameterDetail to parameterDetails property on GetDatabaseParametersResponse C-object.- Parameters:
_parameterDetail (
ParameterDetail)
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 ofDatabaseDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DatabaseDetail
AddDatabase(_databaseDetail)
Appends _databaseDetail to databases property on GetDatabasesResponse C-object.- Parameters:
_databaseDetail (
DatabaseDetail)
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’.
- Parameters:
- datasheetType (int)
- recordReferences (list of
RecordReference) - unitConversionContext (
UnitConversionContext)
property recordReferences
Property recordReferences is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property datasheetType
Property datasheetType is of type int.- Return type: int
property unitConversionContext
Property unitConversionContext is of typeUnitConversionContext.
- Return type:
UnitConversionContext
AddRecordReference(_recordReference)
Appends _recordReference to recordReferences property on GetDatasheetPath C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectGetDatasheetPathParameterized
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’.
- Parameters:
- DBKey (str)
- datasheetType (int)
- unitConversionContext (
UnitConversionContext)
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 typeUnitConversionContext.
- Return type:
UnitConversionContext
property c_obj
Pointer to the underlying C-objectGetDatasheetPathParameterizedResponse
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 ofDatasheetPath objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DatasheetPath
GetExporterParametersRequest
class GetExporterParametersRequest(exporterKey=None, populateGUIDs=None, records=None, unitConversionContext=None, _isOwner=True)
Bases:object
Input for the GetExporterParameters operation.
- Parameters:
- exporterKey (str)
- populateGUIDs (bool)
- records (list of
RecordReference) - unitConversionContext (
UnitConversionContext)
property records
Property records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property exporterKey
Property exporterKey is of type str.- Return type: str
property populateGUIDs
Property populateGUIDs is of type bool.- Return type: bool
property unitConversionContext
Property unitConversionContext is of typeUnitConversionContext.
- Return type:
UnitConversionContext
AddRecord(_recordReference)
Appends _recordReference to records property on GetExporterParametersRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectGetExporterParametersResponse
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 ofRecordExporterParameters objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordExporterParameters
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-objectGetIntegrationProfilesResponse
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 ofIntegrationProfileDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
IntegrationProfileDetail
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.
- Parameters:
- applicabilityTag (str)
- layouts (list of
LayoutReference) - minMaxCalculation (int)
- table (
TableReference)
property layouts
Property layouts is a list ofLayoutReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
LayoutReference
property table
Property table is of typeTableReference.
- Return 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.- Parameters:
_layoutReference (
LayoutReference)
property c_obj
Pointer to the underlying C-objectGetLayoutsResponse
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 ofLayoutDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
LayoutDetail
AddLayoutDetail(_layoutDetail)
Appends _layoutDetail to layoutDetails property on GetLayoutsResponse C-object.- Parameters:
_layoutDetail (
LayoutDetail)
GetLinkedRecordsRequest
class GetLinkedRecordsRequest(directLinksOnly=None, populateGUIDs=None, recordFilter=None, recordLinkGroups=None, recordReferences=None, _isOwner=True)
Bases:object
Input for the GetLinkedRecords operation.
- Parameters:
- directLinksOnly (bool)
- populateGUIDs (bool)
- recordFilter (
RecordFilter) - recordLinkGroups (list of
RecordLinkGroupReference) - recordReferences (list of
RecordReference)
property recordLinkGroups
Property recordLinkGroups is a list ofRecordLinkGroupReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroupReference
property recordReferences
Property recordReferences is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property directLinksOnly
Property directLinksOnly is of type bool.- Return type: bool
property populateGUIDs
Property populateGUIDs is of type bool.- Return type: bool
property recordFilter
Property recordFilter is of typeRecordFilter.
- Return type:
RecordFilter
AddRecordLinkGroup(_recordLinkGroupReference)
Appends _recordLinkGroupReference to recordLinkGroups property on GetLinkedRecordsRequest C-object.- Parameters:
_recordLinkGroupReference (
RecordLinkGroupReference)
AddRecordReference(_recordReference)
Appends _recordReference to recordReferences property on GetLinkedRecordsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectGetLinkedRecordsResponse
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 ofSourceRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SourceRecord
GetMetaAttributesRequest
class GetMetaAttributesRequest(attributeReferences=None, _isOwner=True)
Bases:object
Input for the GetMetaAttributesRequest operation.
- Parameters:
attributeReferences (list of
AttributeReference)
property attributeReferences
Property attributeReferences is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
AddAttributeReference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetMetaAttributesRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
property c_obj
Pointer to the underlying C-objectGetMetaAttributesResponse
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 ofAttributeMetaAttributes objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeMetaAttributes
GetParameterDetailsRequest
class GetParameterDetailsRequest(attribute=None, parameterReferences=None, recordReference=None, _isOwner=True)
Bases:object
Input for the GetParameterDetails operation.
- Parameters:
- attribute (
AttributeReference) - parameterReferences (list of
ParameterReference) - recordReference (
RecordReference)
- attribute (
property parameterReferences
Property parameterReferences is a list ofParameterReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterReference
property attribute
Property attribute is of typeAttributeReference.
- Return type:
AttributeReference
property recordReference
Property recordReference is of typeRecordReference.
- Return type:
RecordReference
AddParameterReference(_parameterReference)
Appends _parameterReference to parameterReferences property on GetParameterDetailsRequest C-object.- Parameters:
_parameterReference (
ParameterReference)
property c_obj
Pointer to the underlying C-objectGetParameterDetailsResponse
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 ofParameterDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDetail
GetRecordAttributesByRefRequest
class GetRecordAttributesByRefRequest(attributeReferences=None, binaryData=None, directLinksOnly=None, exportedAttributes=None, functionalDataSettings=None, populateGUIDs=None, recordFilter=None, recordReferences=None, unitConversionContext=None, useFallback=None, _isOwner=True)
Bases:object
Input for the GetRecordAttributesByRef operation.
For requests, at least one RecordReference and at least one
AttributeReference is required.
- Parameters:
- attributeReferences (list of
AttributeReference) - binaryData (
BinaryDataSettings) - directLinksOnly (bool)
- exportedAttributes (list of
ExportedAttribute) - functionalDataSettings (
FunctionalDataSettings) - populateGUIDs (bool)
- recordFilter (
RecordFilter) - recordReferences (list of
RecordReference) - unitConversionContext (
UnitConversionContext) - useFallback (bool)
- attributeReferences (list of
property attributeReferences
Property attributeReferences is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property exportedAttributes
Property exportedAttributes is a list ofExportedAttribute objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExportedAttribute
property recordReferences
Property recordReferences is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property directLinksOnly
Property directLinksOnly is of type bool.- Return type: bool
property populateGUIDs
Property populateGUIDs is of type bool.- Return type: bool
property recordFilter
Property recordFilter is of typeRecordFilter.
- Return type:
RecordFilter
property unitConversionContext
Property unitConversionContext is of typeUnitConversionContext.
- Return type:
UnitConversionContext
property useFallback
Property useFallback is of type bool.- Return type: bool
property binaryData
Property binaryData is of typeBinaryDataSettings.
- Return type:
BinaryDataSettings
property functionalDataSettings
Property functionalDataSettings is of typeFunctionalDataSettings.
- Return type:
FunctionalDataSettings
AddAttributeReference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetRecordAttributesByRefRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
AddExportedAttribute(_exportedAttribute)
Appends _exportedAttribute to exportedAttributes property on GetRecordAttributesByRefRequest C-object.- Parameters:
_exportedAttribute (
ExportedAttribute)
AddRecordReference(_recordReference)
Appends _recordReference to recordReferences property on GetRecordAttributesByRefRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectGetRecordAttributesByRefResponse
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 ofRecordData objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordData
AddRecordData(_recordData)
Appends _recordData to recordData property on GetRecordAttributesByRefResponse C-object.- Parameters:
_recordData (
RecordData)
GetRecordAttributesRequest
class GetRecordAttributesRequest(includeEmpty=None, includeMeta=None, includeParamDetails=None, minMaxCalculation=None, recordReferences=None, _isOwner=True)
Bases:object
Input for the GetRecordAttribute operation.
- Parameters:
- includeEmpty (bool)
- includeMeta (bool)
- includeParamDetails (bool)
- minMaxCalculation (int)
- recordReferences (list of
RecordReference)
property recordReferences
Property recordReferences is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property includeEmpty
Property includeEmpty is of type bool.- Return type: bool
property includeMeta
Property includeMeta is of type bool.- Return type: bool
property includeParamDetails
Property includeParamDetails is of type bool.- Return type: bool
property minMaxCalculation
Property minMaxCalculation is of type int.- Return type: int
AddRecordReference(_recordReference)
Appends _recordReference to recordReferences property on GetRecordAttributesRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectGetRecordAttributesResponse
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 ofRecordAttribute objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordAttribute
AddRecordAttribute(_recordAttribute)
Appends _recordAttribute to recordAttributes property on GetRecordAttributesResponse C-object.- Parameters:
_recordAttribute (
RecordAttribute)
GetRecordLinkGroups
class GetRecordLinkGroups(DBKey=None, recordLinkGroups=None, standardNamesOnly=None, _isOwner=True)
Bases:object
Returns details of Record Link Groups in a Granta MI Database.
- Parameters:
- DBKey (str)
- recordLinkGroups (list of
RecordLinkGroupReference) - standardNamesOnly (bool)
property recordLinkGroups
Property recordLinkGroups is a list ofRecordLinkGroupReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroupReference
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.- Return type: bool
AddRecordLinkGroup(_recordLinkGroupReference)
Appends _recordLinkGroupReference to recordLinkGroups property on GetRecordLinkGroups C-object.- Parameters:
_recordLinkGroupReference (
RecordLinkGroupReference)
property c_obj
Pointer to the underlying C-objectGetRecordLinkGroupsResponse
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 ofRecordLinkGroupDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroupDetail
GetRecordVersionsRequest
class GetRecordVersionsRequest(records=None, versions=None, _isOwner=True)
Bases:object
Input for the GetRecordVersions operation.
- Parameters:
- records (list of
RecordReference) - versions (int)
- records (list of
class VersionSelector
Bases:object
LatestRead = 0
Latest = 1
AllReleased = 2
All = 3
property records
Property records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property versions
Property versions is of type int. SeeGetRecordVersionsRequest.VersionSelector for supported values.
- Return type: int
AddRecord(_recordReference)
Appends _recordReference to records property on GetRecordVersionsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectGetRecordVersionsResponse
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 ofRecordVersionState objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordVersionState
GetRootNode
class GetRootNode(table=None, _isOwner=True)
Bases:object
Input to the GetRootNode operation.
Requires a TableReference .
- Parameters:
table (
TableReference)
property table
Property table is of typeTableReference.
- Return type:
TableReference
property c_obj
Pointer to the underlying C-objectGetRootNodeResponse
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 typeTreeRecord.
- Return type:
TreeRecord
GetSubsetsRequest
class GetSubsetsRequest(subsetReferences=None, table=None, _isOwner=True)
Bases:object
Input to the GetSubsets operation.
Requires a TableReference .
- Parameters:
- subsetReferences (list of
SubsetReference) - table (
TableReference)
- subsetReferences (list of
property subsetReferences
Property subsetReferences is of type list ofSubsetReference.
- Return type:
list of
SubsetReference
property table
Property table is of typeTableReference.
- Return type:
TableReference
AddSubsetReference(_subsetReference)
Appends _subsetReference to subsetReferences property on GetSubsetsRequest C-object.- Parameters:
_subsetReference (
SubsetReference)
property c_obj
Pointer to the underlying C-objectGetSubsetsResponse
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 ofSubsetDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SubsetDetail
GetTables
class GetTables(DBKey=None, attributeSelectors=None, tableFilter=None, _isOwner=True)
Bases:object
Input to the GetTables operation.
Requires a DBKey to be set.
class AttributeSelector
Bases:object
NONE = 0
NonMetaAttributes = 1
MetaAttributes = 2
StandardAttributes = 3
property attributeSelectors
Property attributeSelectors is a list of int objects. SeeGetTables.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. SeeGRANTA_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-objectGetTablesResponse
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 ofTableDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TableDetail
AddTableDetail(_tableDetail)
Appends _tableDetail to tableDetails property on GetTablesResponse C-object.- Parameters:
_tableDetail (
TableDetail)
GetTreeRecordsRequest
class GetTreeRecordsRequest(records=None, _isOwner=True)
Bases:object
Input to the GetTreeRecords operation.
Requires at least one RecordReference.
- Parameters:
records (list of
RecordReference)
property records
Property records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
AddRecord(_recordReference)
Appends _recordReference to records property on GetTreeRecordsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectGetTreeRecordsResponse
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 ofTreeRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TreeRecord
AddTreeRecord(_treeRecord)
Appends _treeRecord to treeRecords property on GetTreeRecordsResponse C-object.- Parameters:
_treeRecord (
TreeRecord)
GetUnitConversionsRequest
class GetUnitConversionsRequest(DBKey=None, sourceCurrency=None, targetCurrency=None, unitConversionContexts=None, unitSymbols=None, _isOwner=True)
Bases:object
Input for the GetUnitConversions operation.
- Parameters:
property unitConversionContexts
Property unitConversionContexts is a list ofUnitConversionContext objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitConversionContext
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.- Parameters:
_unitConversionContext (
UnitConversionContext)
AddUnitSymbol(value)
Appends value to unitSymbols property on GetUnitConversionsRequest C-object.- Parameters: value (str)
property c_obj
Pointer to the underlying C-objectGetUnitConversionsResponse
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 ofSourceUnitConversionSet objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SourceUnitConversionSet
property unitConversionContexts
Property unitConversionContexts is a list ofUnitConversionContextConversionSet objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitConversionContextConversionSet
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-objectGetUnitsResponse
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 ofDatabaseUnitSet objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DatabaseUnitSet
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.
property DBKey
Property DBKey is of type str.- Return type: str
property excludeCurrencies
Property excludeCurrencies is of type bool.- Return type: bool
property c_obj
Pointer to the underlying C-objectGetUnitSystemsResponse
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.
- Parameters:
- attributeReferences (list of
AttributeReference) - recordReferences (list of
RecordReference)
- attributeReferences (list of
property attributeReferences
Property attributeReferences is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property recordReferences
Property recordReferences is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
AddAttributeReference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetUploadAddressesRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
AddRecordReference(_recordReference)
Appends _recordReference to recordReferences property on GetUploadAddressesRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectGetUploadAddressesResponse
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 ofRecordWithAttributeAddresses objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordWithAttributeAddresses
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.
- Parameters:
parameterDomains (list of
ParameterDomain)
property parameterDomains
Property parameterDomains is a list ofParameterDomain objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDomain
property c_obj
Pointer to the underlying C-objectGreaterThanSearchValue
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.
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.- Return type: float
property c_obj
Pointer to the underlying C-objectHelpInfo
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.
property databaseHelp
Property databaseHelp is of type bool.- Return type: bool
property helpURI
Property helpURI is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectHighEndSearchValue
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.- Return type: float
property c_obj
Pointer to the underlying C-objectHyperlinkDataType
class HyperlinkDataType(description=None, hyperlinkDisplay=None, isApplicable=None, value=None, _isOwner=True)
Bases:IDataValue
A type to contain a HyperLink string value.
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.- Return type: bool
property value
Property value is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectIDataValue
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.
- Parameters:
- attributeReference (
AttributeReference) - dateDataValue (
DateDataType) - discreteDataValue (
DiscreteDataType) - fileDataValue (
FileDataType) - floatFunctionalGriddedDataType (
FloatFunctionalGriddedDataType) - floatFunctionalSeriesDataType (
FloatFunctionalSeriesDataType) - hyperlinkDataValue (
HyperlinkDataType) - integerDataValue (
IntegerDataType) - logicalDataValue (
LogicalDataType) - longTextDataValue (
LongTextDataType) - pictureDataValue (
PictureDataType) - pointDataValue (
PointDataType) - rangeDataValue (
RangeDataType) - shortTextDataValue (
ShortTextDataType) - tabularDataValue (
TabularDataType)
- attributeReference (
property attributeReference
Property attributeReference is of typeAttributeReference.
- Return type:
AttributeReference
property dateDataValue
Property dateDataValue is of typeDateDataType.
- Return type:
DateDataType
property discreteDataValue
Property discreteDataValue is of typeDiscreteDataType.
- Return type:
DiscreteDataType
property fileDataValue
Property fileDataValue is of typeFileDataType.
- Return type:
FileDataType
property floatFunctionalGriddedDataType
Property floatFunctionalGriddedDataType is of typeFloatFunctionalGriddedDataType.
- Return type:
FloatFunctionalGriddedDataType
property floatFunctionalSeriesDataType
Property floatFunctionalSeriesDataType is of typeFloatFunctionalSeriesDataType.
- Return type:
FloatFunctionalSeriesDataType
property hyperlinkDataValue
Property hyperlinkDataValue is of typeHyperlinkDataType.
- Return type:
HyperlinkDataType
property integerDataValue
Property integerDataValue is of typeIntegerDataType.
- Return type:
IntegerDataType
property logicalDataValue
Property logicalDataValue is of typeLogicalDataType.
- Return type:
LogicalDataType
property longTextDataValue
Property longTextDataValue is of typeLongTextDataType.
- Return type:
LongTextDataType
property pictureDataValue
Property pictureDataValue is of typePictureDataType.
- Return type:
PictureDataType
property pointDataValue
Property pointDataValue is of typePointDataType.
- Return type:
PointDataType
property rangeDataValue
Property rangeDataValue is of typeRangeDataType.
- Return type:
RangeDataType
property shortTextDataValue
Property shortTextDataValue is of typeShortTextDataType.
- Return type:
ShortTextDataType
property tabularDataValue
Property tabularDataValue is of typeTabularDataType.
- Return type:
TabularDataType
property c_obj
Pointer to the underlying C-objectImportRecord
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’.
- Parameters:
- copyDestinationParent (
RecordReference) - existingRecord (
RecordReference) - importAttributeValues (list of
ImportAttributeValue) - importRecordMode (str)
- isFolder (bool)
- recordName (str)
- releaseRecord (bool)
- subsetReferences (list of
SubsetReference) - updateSubsetsMode (int)
- copyDestinationParent (
property importAttributeValues
Property importAttributeValues is a list ofImportAttributeValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ImportAttributeValue
property subsetReferences
Property subsetReferences is a list ofSubsetReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SubsetReference
property recordName
Property recordName is of type str.- Return type: str
property copyDestinationParent
Property copyDestinationParent is of typeRecordReference.
- Return type:
RecordReference
property existingRecord
Property existingRecord is of typeRecordReference.
- Return type:
RecordReference
property importRecordMode
Property importRecordMode is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property isFolder
Property isFolder is of type bool.- Return type: bool
property releaseRecord
Property releaseRecord is of type bool.- Return type: bool
property updateSubsetsMode
Property updateSubsetsMode is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
AddImportAttributeValue(_importAttributeValue)
Appends _importAttributeValue to importAttributeValues property on ImportRecord C-object.- Parameters:
_importAttributeValue (
ImportAttributeValue)
AddSubsetReference(_subsetReference)
Appends _subsetReference to subsetReferences property on ImportRecord C-object.- Parameters:
_subsetReference (
SubsetReference)
property c_obj
Pointer to the underlying C-objectIntegerDataType
class IntegerDataType(isApplicable=None, value=None, _isOwner=True)
Bases:IDataValue
A type to contain an integer data type.
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property value
Property value is of type int.- Return type: int
property c_obj
Pointer to the underlying C-objectIntegrationDatabase
class IntegrationDatabase(DBKey=None, author=None, company=None, integrationTables=None, volumeName=None, _isOwner=True)
Bases:object
Represents a database within an Integration Profile.
- Parameters:
- DBKey (str)
- author (str)
- company (str)
- integrationTables (list of
TableDetail) - volumeName (str)
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 ofTableDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TableDetail
property volumeName
Property volumeName is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectIntegrationProfileDetail
class IntegrationProfileDetail(description=None, groupName=None, integrationDatabases=None, name=None, profile=None, _isOwner=True)
Bases:object
Detailed information about an Integration Profile.
- Parameters:
- description (
RichText) - groupName (str)
- integrationDatabases (list of
IntegrationDatabase) - name (str)
- profile (
IntegrationProfileReference)
- description (
property description
Property description is of typeRichText.
- Return type:
RichText
property groupName
Property groupName is of type str.- Return type: str
property integrationDatabases
Property integrationDatabases is a list ofIntegrationDatabase objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
IntegrationDatabase
property name
Property name is of type str.- Return type: str
property profile
Property profile is of typeIntegrationProfileReference.
- Return type:
IntegrationProfileReference
property c_obj
Pointer to the underlying C-objectIntegrationProfileReference
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-objectLayoutDetail
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.
- Parameters:
- attributeCategories (list of
AttributeCategory) - layout (
LayoutReference) - name (str)
- table (
TableReference) - displayNames (list of
DisplayName)
- attributeCategories (list of
property attributeCategories
Property attributeCategories is a list ofAttributeCategory objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeCategory
property displayNames
Property displayNames is a list ofDisplayName objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DisplayName
property layout
Property layout is of typeLayoutReference.
- Return type:
LayoutReference
property name
Property name is of type str.- Return type: str
property table
Property table is of typeTableReference.
- Return type:
TableReference
AddAttributeCategory(_attributeCategory)
Appends _attributeCategory to attributeCategories property on LayoutDetail C-object.- Parameters:
_attributeCategory (
AttributeCategory)
property c_obj
Pointer to the underlying C-objectLayoutReference
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.
- Parameters:
- DBKey (str)
- layoutIdentity (int)
- name (str)
- partialTableReference (
PartialTableReference)
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 typePartialTableReference.
- Return type:
PartialTableReference
property c_obj
Pointer to the underlying C-objectLessThanSearchValue
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.
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.- Return type: float
property c_obj
Pointer to the underlying C-objectLinkAllCombinations
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.
- Parameters:
- nodeName (str)
- sourceRecords (list of
RecordReference) - targetRecords (list of
RecordReference)
property sourceRecords
Property sourceRecords is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property targetRecords
Property targetRecords is of type list ofRecordReference.
- Return 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.- Parameters:
_recordReference (
RecordReference)
AddTargetRecord(_recordReference)
Appends _recordReference to targetRecords property on LinkAllCombinations C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectLinkRecords
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.
- Parameters:
- nodeName (str)
- sourceRecords (list of
NotatedTargetedSourceRecord)
property sourceRecords
Property sourceRecords is of type list ofNotatedTargetedSourceRecord.
- Return 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.- Parameters:
_notatedTargetedSourceRecord (
NotatedTargetedSourceRecord)
property c_obj
Pointer to the underlying C-objectLinkedRecordsDataType
class LinkedRecordsDataType(nodeName=None, recordLinkGroups=None, typeString=None, _isOwner=True)
Bases:IDataValue
A type representing a list of linked Records.
- Parameters:
- nodeName (str)
- recordLinkGroups (list of
RecordLinkGroup) - typeString (str)
property nodeName
Property nodeName is of type str.- Return type: str
property recordLinkGroups
Property recordLinkGroups is a list ofRecordLinkGroup objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroup
property typeString
Property typeString is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectListDataType
class ListDataType(items=None, _isOwner=True)
Bases:IDataValue
A list of values within a Cell in Tabular Data.
- Parameters:
items (list of
ListItem)
property items
Property items is a list ofListItem objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ListItem
property c_obj
Pointer to the underlying C-objectListItem
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.
- Parameters:
- dataType (str)
- dateDataValue (
DateDataType) - discreteDataValue (
DiscreteDataType) - fileDataValue (
FileDataType) - hyperlinkDataValue (
HyperlinkDataType) - integerDataValue (
IntegerDataType) - logicalDataValue (
LogicalDataType) - longTextDataValue (
LongTextDataType) - pictureDataValue (
PictureDataType) - pointDataValue (
PointDataType) - rangeDataValue (
RangeDataType) - shortTextDataValue (
ShortTextDataType) - sourceRecordReference (
RecordReference) - floatFunctionalGriddedDataValue (
FloatFunctionalGriddedDataType) - floatFunctionalSeriesDataValue (
FloatFunctionalSeriesDataType) - discreteFunctionalGriddedDataValue (
DiscreteFunctionalGriddedDataType) - discreteFunctionalSeriesDataValue (
DiscreteFunctionalSeriesDataType) - emptyDataValue (
EmptyDataType)
property dataType
Property dataType is of type str.- Return type: str
property dateDataValue
Property dateDataValue is of typeDateDataType.
- Return type:
DateDataType
property discreteDataValue
Property discreteDataValue is of typeDiscreteDataType.
- Return type:
DiscreteDataType
property discreteFunctionalGriddedDataValue
Property discreteFunctionalGriddedDataValue is of typeDiscreteFunctionalGriddedDataType.
- Return type:
DiscreteFunctionalGriddedDataType
property discreteFunctionalSeriesDataValue
Property discreteFunctionalSeriesDataValue is of typeDiscreteFunctionalSeriesDataType.
- Return type:
DiscreteFunctionalSeriesDataType
property emptyDataValue
Property emptyDataValue is of typeEmptyDataType.
- Return type:
EmptyDataType
property fileDataValue
Property fileDataValue is of typeFileDataType.
- Return type:
FileDataType
property floatFunctionalGriddedDataValue
Property floatFunctionalGriddedDataValue is of typeFloatFunctionalGriddedDataType.
- Return type:
FloatFunctionalGriddedDataType
property floatFunctionalSeriesDataValue
Property floatFunctionalSeriesDataValue is of typeFloatFunctionalSeriesDataType.
- Return type:
FloatFunctionalSeriesDataType
property hyperlinkDataValue
Property hyperlinkDataValue is of typeHyperlinkDataType.
- Return type:
HyperlinkDataType
property integerDataValue
Property integerDataValue is of typeIntegerDataType.
- Return type:
IntegerDataType
property logicalDataValue
Property logicalDataValue is of typeLogicalDataType.
- Return type:
LogicalDataType
property longTextDataValue
Property longTextDataValue is of typeLongTextDataType.
- Return type:
LongTextDataType
property pictureDataValue
Property pictureDataValue is of typePictureDataType.
- Return type:
PictureDataType
property pointDataValue
Property pointDataValue is of typePointDataType.
- Return type:
PointDataType
property rangeDataValue
Property rangeDataValue is of typeRangeDataType.
- Return type:
RangeDataType
property shortTextDataValue
Property shortTextDataValue is of typeShortTextDataType.
- Return type:
ShortTextDataType
property sourceRecordReference
Property sourceRecordReference is of typeRecordReference.
- Return type:
RecordReference
property c_obj
Pointer to the underlying C-objectLogicalDataType
class LogicalDataType(isApplicable=None, value=None, _isOwner=True)
Bases:IDataValue
A type to contain a logical data type.
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property value
Property value is of type bool.- Return type: bool
property c_obj
Pointer to the underlying C-objectLongTextDataType
class LongTextDataType(isApplicable=None, value=None, _isOwner=True)
Bases:IDataValue
A type to contain a long text data type.
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property value
Property value is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectLookupValue
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.
- Parameters:
- attributeReference (
AttributeReference) - attributeValue (str)
- attributeReference (
property attributeReference
Property attributeReference is of typeAttributeReference.
- Return type:
AttributeReference
property attributeValue
Property attributeValue is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectLowEndSearchValue
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.- Return type: float
property c_obj
Pointer to the underlying C-objectMIEntityReference
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.
- Parameters:
- canWrite (int)
- entityReference (
RecordReference) - resolved (bool)
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 typeRecordReference.
- Return type:
RecordReference
property resolved
Property resolved is of type bool.- Return type: bool
property c_obj
Pointer to the underlying C-objectMIParameterValue
class MIParameterValue(revisionInfo=None, value=None, valueName=None, _isOwner=True)
Bases:object
A named value of a Parameter in a Granta MI Database.
- Parameters:
- revisionInfo (
RevisionInfo) - value (float)
- valueName (str)
- revisionInfo (
property revisionInfo
Property revisionInfo is of typeRevisionInfo.
- Return type:
RevisionInfo
property value
Property value is of type float.- Return type: float
property valueName
Property valueName is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectMISession
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:
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.- Raises: GRANTA_Exception – If the connection test failed
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:
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.- Return type: bool
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.
- Parameters:
- maxValue (
MinMaxValue) - minValue (
MinMaxValue) - units (str)
- maxValue (
property maxValue
Property maxValue is of typeMinMaxValue.
- Return type:
MinMaxValue
property minValue
Property minValue is of typeMinMaxValue.
- Return type:
MinMaxValue
property units
Property units is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectMinMaxValue
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.- Return 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-objectModifyRecordLinksRequest
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.
- Parameters:
- importErrorMode (str)
- recordLinkCheckMode (str)
- recordLinkGroupReference (
RecordLinkGroupReference) - recordLinkModifications (
RecordLinkModifications)
property importErrorMode
Property importErrorMode is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property recordLinkCheckMode
Property recordLinkCheckMode is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property recordLinkGroupReference
Property recordLinkGroupReference is of typeRecordLinkGroupReference.
- Return type:
RecordLinkGroupReference
property recordLinkModifications
Property recordLinkModifications is of typeRecordLinkModifications.
- Return type:
RecordLinkModifications
property c_obj
Pointer to the underlying C-objectModifyRecordLinksResponse
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 typeRecordLinkChanges.
- Return 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.
- Parameters:
- about (
NamedAttribute) - attribute (
AttributeReference) - isMeta (bool)
- name (str)
- about (
property about
Property about is of typeNamedAttribute. Only populated if ‘isMeta’ is True.
- Return type:
NamedAttribute
property attribute
Property attribute is of typeAttributeReference.
- Return 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.- Return type: bool
property name
Property name is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectNamedLayout
class NamedLayout(layout=None, name=None, _isOwner=True)
Bases:object
A layout in a Granta MI database.
- Parameters:
- layout (
LayoutReference) - name (str)
- layout (
property layout
Property layout is of typeLayoutReference.
- Return type:
LayoutReference
property name
Property name is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectNamedRecord
class NamedRecord(longName=None, recordReference=None, shortName=None, _isOwner=True)
Bases:object
A RecordReference with the short and long name of the record.
- Parameters:
- longName (str)
- recordReference (
RecordReference) - shortName (str)
property longName
Property longName is of type str.- Return type: str
property recordReference
Property recordReference is of typeRecordReference.
- Return type:
RecordReference
property shortName
Property shortName is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectNamedSubset
class NamedSubset(name=None, subset=None, _isOwner=True)
Bases:object
A SubsetReference with the subset name.
- Parameters:
- name (str)
- subset (
SubsetReference)
property name
Property name is of type str.- Return type: str
property subset
Property subset is of typeSubsetReference.
- Return type:
SubsetReference
property c_obj
Pointer to the underlying C-objectNamedTargetedSourceRecord
class NamedTargetedSourceRecord(record=None, targetRecords=None, _isOwner=True)
Bases:object
A named record used for modifying record links.
- Parameters:
- record (
NamedRecord) - targetRecords (list of
NamedRecord)
- record (
property targetRecords
Property targetRecords is a list ofNamedRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedRecord
property record
Property record is of typeNamedRecord.
- Return type:
NamedRecord
AddTargetRecords(_namedRecord)
Appends _namedRecord to targetRecords property on NamedTargetedSourceRecord C-object.- Parameters:
_namedRecord (
NamedRecord)
property c_obj
Pointer to the underlying C-objectNotatedTargetRecord
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.
- Parameters:
- notes (str)
- record (
RecordReference) - reverseNotes (str)
property notes
Property notes is of type str.- Return type: str
property record
Property record is of typeRecordReference.
- Return type:
RecordReference
property reverseNotes
Property reverseNotes is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectNotatedTargetedSourceRecord
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.
- Parameters:
- sourceRecord (
RecordReference) - targetRecords (list of
NotatedTargetRecord)
- sourceRecord (
property targetRecords
Property targetRecords is a list ofNotatedTargetRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NotatedTargetRecord
property sourceRecord
Property sourceRecord is of typeRecordReference.
- Return type:
RecordReference
AddTargetRecord(_notatedTargetRecord)
Appends _notatedTargetRecord to targetRecords property on NotatedTargetedSourceRecord C-object.- Parameters:
_notatedTargetRecord (
NotatedTargetRecord)
property c_obj
Pointer to the underlying C-objectOIDC
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 callingAuthorize()
- accessToken (
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.
- Parameters:
- appliesToAttribute (
AttributeReference) - appliesToRecord (
RecordReference) - defaultValue (
MIParameterValue) - interpolationType (int)
- name (str)
- order (int)
- parameterReference (
ParameterReference) - parameterType (int)
- parameterValues (list of
MIParameterValue) - revisionInfo (
RevisionInfo) - scaleType (int)
- unit (
UnitInformation) - helpInfo (
HelpInfo)
- appliesToAttribute (
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 typeAttributeReference.
- Return type:
AttributeReference
property appliesToRecord
Property appliesToRecord is of typeRecordReference.
- Return type:
RecordReference
property defaultValue
Property defaultValue is of typeMIParameterValue.
- Return type:
MIParameterValue
property helpInfo
Property helpInfo is of typeHelpInfo.
- Return type:
HelpInfo
property interpolationType
Property interpolationType is of type int. SeeParameterDetail.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 ofMIParameterValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
MIParameterValue
property order
Property order is of type int.- Return type: int
property parameterReference
Property parameterReference is of typeParameterReference.
- Return type:
ParameterReference
property parameterType
Property parameterType is of type int. SeeParameterDetail.ParameterType for supported values.
- Return type: int
property revisionInfo
Property revisionInfo is of typeRevisionInfo.
- Return type:
RevisionInfo
property scaleType
Property scaleType is of type int. SeeParameterDetail.ScaleType for supported values.
- Return type: int
property unit
Property unit is of typeUnitInformation.
- Return type:
UnitInformation
property c_obj
Pointer to the underlying C-objectParameterDomain
class ParameterDomain(exporterParameterId=None, interpolable=None, values=None, _isOwner=True)
Bases:object
A type to contain a list of parameter values.
- Parameters:
- exporterParameterId (str)
- interpolable (bool)
- values (list of
ParameterValue)
property exporterParameterId
Property exporterParameterId is of type str.- Return type: str
property interpolable
Property interpolable is of type bool.- Return type: bool
property values
Property values is a list ofParameterValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterValue
property c_obj
Pointer to the underlying C-objectParameterInformation
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.
- Parameters:
- name (str)
- parameterReference (
ParameterReference) - unit (
UnitInformation)
property name
Property name is of type str.- Return type: str
property parameterReference
Property parameterReference is of typeParameterReference.
- Return type:
ParameterReference
property unit
Property unit is of typeUnitInformation.
- Return type:
UnitInformation
property c_obj
Pointer to the underlying C-objectParameterReference
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.
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-objectParameterReferenceAndValue
class ParameterReferenceAndValue(parameter=None, parameterValue=None, _isOwner=True)
Bases:object
Contains a ParameterReference and a
ParameterValue.
- Parameters:
- parameter (
ParameterReference) - parameterValue (
ParameterValue)
- parameter (
property parameter
Property parameter is of typeParameterReference.
- Return type:
ParameterReference
property parameterValue
Property parameterValue is of typeParameterValue.
- Return type:
ParameterValue
property c_obj
Pointer to the underlying C-objectParameterReferencesAndValues
class ParameterReferencesAndValues(parameterWithValues=None, _isOwner=True)
Bases:object
A collection of ParameterReferenceAndValue objects.
- Parameters:
parameterWithValues (list of
ParameterReferenceAndValue)
property parameterWithValues
Property parameterWithValues is a list ofParameterReferenceAndValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterReferenceAndValue
AddParameterWithValue(_parameterReferenceAndValue)
Appends _parameterReferenceAndValue to parameterWithValues property on ParameterReferencesAndValues C-object.- Parameters:
_parameterReferenceAndValue (
ParameterReferenceAndValue)
property c_obj
Pointer to the underlying C-objectParameterValue
class ParameterValue(discreteValue=None, numericValue=None, type=None, _isOwner=True)
Bases:object
A value of a Parameter in Functional data.
property discreteValue
Property discreteValue is of type str.- Return type: str
property numericValue
Property numericValue is of type float.- Return type: float
property type
Property type is of type str. There is no need to set this property manually. SeeGRANTA_Constants for supported values.
- Return type: str
property c_obj
Pointer to the underlying C-objectParameters
class Parameters(parameters=None, _isOwner=True)
Bases:object
A collection of ParameterInformation objects.
- Parameters:
parameters (list of
ParameterInformation)
property parameters
Property parameters is a list ofParameterInformation objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterInformation
AddParameter(_parameterInformation)
Appends _parameterInformation to parameters property on Parameters C-object.- Parameters:
_parameterInformation (
ParameterInformation)
property c_obj
Pointer to the underlying C-objectPartialTableReference
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.
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-objectPathLeaf
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.
- Parameters:
- longName (str)
- recordReference (
RecordReference) - shortName (str)
property longName
Property longName is of type str.- Return type: str
property recordReference
Property recordReference is of typeRecordReference.
- Return type:
RecordReference
property shortName
Property shortName is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectPictureDataType
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().
ModifyBinaryData(binaryData)
- Parameters: binaryData (bytes)
ReadBinaryData()
- Return type: bytes
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.- Return type: bool
property URL
Property URL is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectPointDataType
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.
- Parameters:
- isApplicable (bool)
- isEstimated (bool)
- parameters (
Parameters) - points (list of
PointValueWithParameters) - unitSymbol (str)
property points
Property points is a list ofPointValueWithParameters objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
PointValueWithParameters
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property isEstimated
Property isEstimated is of type bool.- Return type: bool
property parameters
Property parameters is of typeParameters.
- Return type:
Parameters
property unitSymbol
Property unitSymbol is of type str.- Return type: str
AddPoint(_pointValueWithParameters)
Appends _pointValueWithParameters to points property on PointDataType C-object.- Parameters:
_pointValueWithParameters (
PointValueWithParameters)
property c_obj
Pointer to the underlying C-objectPointValueWithParameters
class PointValueWithParameters(hasTrailingZeroInfo=None, trailingZeroInfo=None, value=None, valueParameters=None, _isOwner=True)
Bases:object
A numeric value with associated ParameterReferencesAndValues
object.
- Parameters:
- hasTrailingZeroInfo (bool)
- trailingZeroInfo (
TrailingZeroInformation) - value (float)
- valueParameters (
ParameterReferencesAndValues)
property hasTrailingZeroInfo
Property hasTrailingZeroInfo is of type bool.- Return type: bool
property trailingZeroInfo
Property trailingZeroInfo is of typeTrailingZeroInformation.
- Return type:
TrailingZeroInformation
property value
Property value is of type float.- Return type: float
property valueParameters
Property valueParameters is of typeParameterReferencesAndValues.
- Return type:
ParameterReferencesAndValues
property c_obj
Pointer to the underlying C-objectRangeDataType
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.
- Parameters:
- hasHigh (bool)
- hasHighTrailingZeroInfo (bool)
- hasLow (bool)
- hasLowTrailingZeroInfo (bool)
- high (float)
- highValueTrailingZeroInfo (
TrailingZeroInformation) - isApplicable (bool)
- isEstimated (bool)
- low (float)
- lowValueTrailingZeroInfo (
TrailingZeroInformation) - unitSymbol (str)
- highValueIsInclusive (bool)
- lowValueIsInclusive (bool)
property hasHigh
Property hasHigh is of type bool.- Return type: bool
property hasHighTrailingZeroInfo
Property hasHighTrailingZeroInfo is of type bool.- Return type: bool
property hasLow
Property hasLow is of type bool.- Return type: bool
property hasLowTrailingZeroInfo
Property hasLowTrailingZeroInfo is of type bool.- Return type: bool
property high
Property high is of type float.- Return type: float
property highValueIsInclusive
Property highValueIsInclusive is of type bool.- Return type: bool
property highValueTrailingZeroInfo
Property highValueTrailingZeroInfo is of typeTrailingZeroInformation.
- Return type:
TrailingZeroInformation
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property isEstimated
Property isEstimated is of type bool.- Return type: bool
property low
Property low is of type float.- Return type: float
property lowValueIsInclusive
Property lowValueIsInclusive is of type bool.- Return type: bool
property lowValueTrailingZeroInfo
Property lowValueTrailingZeroInfo is of typeTrailingZeroInformation.
- Return type:
TrailingZeroInformation
property unitSymbol
Property unitSymbol is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectRasterSize
class RasterSize(heightPixels=None, widthPixels=None, _isOwner=True)
Bases:object
Gives the size in pixels of picture data.
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-objectRecordAttribute
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).
- Parameters:
- attribute (
NamedAttribute) - dataCreatedRecordVersion (int)
- dataRetiredRecordVersion (int)
- dataRevisionInfo (
RevisionInfo) - dataVersionNumber (int)
- hasData (bool)
- parameterDetails (list of
ParameterDetail) - recordReference (
RecordReference)
- attribute (
property attribute
Property attribute is of typeNamedAttribute.
- Return 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 typeRevisionInfo.
- Return type:
RevisionInfo
property dataVersionNumber
Property dataVersionNumber is of type int.- Return type: int
property hasData
Property hasData is of type bool.- Return type: bool
property parameterDetails
Property parameterDetails is a list ofParameterDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDetail
property recordReference
Property recordReference is of typeRecordReference.
- Return type:
RecordReference
property c_obj
Pointer to the underlying C-objectRecordData
class RecordData(attributeValues=None, recordReference=None, _isOwner=True)
Bases:object
The values of data for attribute(s) of a particular record.
- Parameters:
- attributeValues (list of
AttributeValue) - recordReference (
RecordReference)
- attributeValues (list of
property attributeValues
Property attributeValues is a list ofAttributeValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeValue
property recordReference
Property recordReference is of typeRecordReference.
- Return type:
RecordReference
property c_obj
Pointer to the underlying C-objectRecordExporterParameters
class RecordExporterParameters(attributes=None, record=None, _isOwner=True)
Bases:object
A type to contain a record and its associated attribute exporter parameters.
- Parameters:
- attributes (list of
AttributeExporterParameters) - record (
RecordReference)
- attributes (list of
property attributes
Property attributes is a list ofAttributeExporterParameters objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeExporterParameters
property record
Property record is of typeRecordReference.
- Return type:
RecordReference
property c_obj
Pointer to the underlying C-objectRecordFilter
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.
- Parameters:
- profile (str)
- subsets (list of
SubsetReference) - recordLists (list of
RecordListReference)
property recordLists
Property recordLists is a list ofRecordListReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordListReference
property subsets
Property subsets is a list ofSubsetReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SubsetReference
property profile
Property profile is of type str.- Return type: str
AddRecordList(_recordListReference)
Appends _recordListReference to recordLists property on RecordFilter C-object.- Parameters:
_recordListReference (
RecordListReference)
AddSubset(_subsetReference)
Appends _subsetReference to subsets property on RecordFilter C-object.- Parameters:
_subsetReference (
SubsetReference)
property c_obj
Pointer to the underlying C-objectRecordFolderPath
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.
- Parameters:
- color (str)
- recordReference (
RecordReference) - treeNames (list of str)
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 typeRecordReference.
- Return type:
RecordReference
AddTreeName(value)
Appends value to treeNames property on RecordFolderPath C-object.- Parameters: value (str)
property c_obj
Pointer to the underlying C-objectRecordLinkChanges
class RecordLinkChanges(linked=None, unlinked=None, _isOwner=True)
Bases:object
A set of changes to be made to record link groups.
- Parameters:
- linked (list of
NamedTargetedSourceRecord) - unlinked (list of
NamedTargetedSourceRecord)
- linked (list of
property linked
Property linked is a list ofNamedTargetedSourceRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedTargetedSourceRecord
property unlinked
Property unlinked is a list ofNamedTargetedSourceRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedTargetedSourceRecord
property c_obj
Pointer to the underlying C-objectRecordLinkGroup
class RecordLinkGroup(linkedRecords=None, name=None, standardNames=None, tableFilters=None, _isOwner=True)
Bases:object
A type representing a group of linked records.
- Parameters:
property linkedRecords
Property linkedRecords is a list ofNamedRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedRecord
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. SeeGRANTA_Constants for supported values.
WARNING
Do not attempt to edit or append to the returned value.property c_obj
Pointer to the underlying C-objectRecordLinkGroupDetail
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.
- Parameters:
- fromTable (
TableReference) - linkGroupType (str)
- name (str)
- reference (
RecordLinkGroupReference) - reverseName (str)
- reverseReference (
RecordLinkGroupReference) - standardNames (list of str)
- toTable (
TableReference)
- fromTable (
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 typeTableReference.
- Return type:
TableReference
property linkGroupType
Property linkGroupType is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property name
Property name is of type str.- Return type: str
property reference
Property reference is of typeRecordLinkGroupReference.
- Return type:
RecordLinkGroupReference
property reverseName
Property reverseName is of type str.- Return type: str
property reverseReference
Property reverseReference is of typeRecordLinkGroupReference.
- Return type:
RecordLinkGroupReference
property toTable
Property toTable is of typeTableReference.
- Return type:
TableReference
AddStandardName(value)
Appends value to standardNames property on RecordLinkGroupDetail C-object.- Parameters: value (str)
property c_obj
Pointer to the underlying C-objectRecordLinkGroupReference
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.
- Parameters:
property DBKey
Property DBKey is of type str.- Return type: str
property isStandardName
Property isStandardName is of type bool.- Return type: bool
property name
Property name is of type str.- Return type: str
property partialTableReference
Property partialTableReference is of typePartialTableReference.
- Return type:
PartialTableReference
property recordLinkGroupIdentity
Property recordLinkGroupIdentity is of type int.- Return type: int
property recordLinkGroupType
Property recordLinkGroupType is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property c_obj
Pointer to the underlying C-objectRecordLinkModifications
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.
- Parameters:
- linkAllCombinations (list of
LinkAllCombinations) - linkRecords (list of
LinkRecords) - unlinkAllRecords (list of
UnlinkAllRecords) - unlinkRecords (list of
UnlinkRecords)
- linkAllCombinations (list of
property linkAllCombinations
Property linkAllCombinations is a list ofLinkAllCombinations objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
LinkAllCombinations
property linkRecords
Property linkRecords is a list ofLinkRecords objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
LinkRecords
property unlinkAllRecords
Property unlinkAllRecords is a list ofUnlinkAllRecords objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnlinkAllRecords
property unlinkRecords
Property unlinkRecords is a list ofUnlinkRecords objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnlinkRecords
AddLinkAllCombinations(_linkAllCombinations)
Appends _linkAllCombinations to linkAllCombinations property on RecordLinkModifications C-object.- Parameters:
_linkAllCombinations (
LinkAllCombinations)
AddLinkRecords(_linkRecords)
Appends _linkRecords to linkRecords property on RecordLinkModifications C-object.- Parameters:
_linkRecords (
LinkRecords)
AddUnlinkAllRecords(_unlinkAllRecords)
Appends _unlinkAllRecords to unlinkAllRecords property on RecordLinkModifications C-object.- Parameters:
_unlinkAllRecords (
UnlinkAllRecords)
AddUnlinkRecords(_unlinkRecords)
Appends _unlinkRecords to unlinkRecords property on RecordLinkModifications C-object.- Parameters:
_unlinkRecords (
UnlinkRecords)
property c_obj
Pointer to the underlying C-objectRecordListReference
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-objectRecordManipulatorService
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.- Parameters:
_req (
RecordMoveRequestobject) - Return type:
EmptyRestResponseobject
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.
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-objectRecordNameSearchRequest
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.
- Parameters:
- caseSensitiveNames (bool)
- filter (
RecordFilter) - populateGUIDs (bool)
- recordName (str)
- searchFullNames (bool)
- searchShortNames (bool)
- table (
TableReference)
property caseSensitiveNames
Property caseSensitiveNames is of type bool.- Return type: bool
property filter
Property filter is of typeRecordFilter.
- Return type:
RecordFilter
property populateGUIDs
Property populateGUIDs is of type bool.- Return type: bool
property recordName
Property recordName is of type str.- Return type: str
property searchFullNames
Property searchFullNames is of type bool.- Return type: bool
property searchShortNames
Property searchShortNames is of type bool.- Return type: bool
property table
Property table is of typeTableReference.
- Return type:
TableReference
property c_obj
Pointer to the underlying C-objectRecordReference
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.
- Parameters:
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 typeLookupValue.
- Return 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-objectRecordSearchCriterion
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.
- Parameters:
- betweenDateTimesSearchValue (
BetweenDateTimesSearchValue) - betweenSearchValue (
BetweenSearchValue) - containsAllSearchValue (
ContainsAllSearchValue) - containsAnySearchValue (
ContainsAnySearchValue) - containsSearchValue (
ContainsSearchValue) - doesNotContainSearchValue (
DoesNotContainSearchValue) - doesNotExistSearchValue (
DoesNotExistSearchValue) - exactlySearchValue (
ExactlySearchValue) - existsSearchValue (
ExistsSearchValue) - greaterThanSearchValue (
GreaterThanSearchValue) - lessThanSearchValue (
LessThanSearchValue) - searchAttribute (
AttributeReference) - type (str)
- equalToSearchValue (
EqualToSearchValue)
- betweenDateTimesSearchValue (
property betweenDateTimesSearchValue
Property betweenDateTimesSearchValue is of typeBetweenDateTimesSearchValue.
- Return type:
BetweenDateTimesSearchValue
property betweenSearchValue
Property betweenSearchValue is of typeBetweenSearchValue.
- Return type:
BetweenSearchValue
property containsAllSearchValue
Property containsAllSearchValue is of typeContainsAllSearchValue.
- Return type:
ContainsAllSearchValue
property containsAnySearchValue
Property containsAnySearchValue is of typeContainsAnySearchValue.
- Return type:
ContainsAnySearchValue
property containsSearchValue
Property containsSearchValue is of typeContainsSearchValue.
- Return type:
ContainsSearchValue
property doesNotContainSearchValue
Property doesNotContainSearchValue is of typeDoesNotContainSearchValue.
- Return type:
DoesNotContainSearchValue
property doesNotExistSearchValue
Property doesNotExistSearchValue is of typeDoesNotExistSearchValue.
- Return type:
DoesNotExistSearchValue
property equalToSearchValue
Property equalToSearchValue is of typeEqualToSearchValue.
- Return type:
EqualToSearchValue
property exactlySearchValue
Property exactlySearchValue is of typeExactlySearchValue.
- Return type:
ExactlySearchValue
property existsSearchValue
Property existsSearchValue is of typeExistsSearchValue.
- Return type:
ExistsSearchValue
property greaterThanSearchValue
Property greaterThanSearchValue is of typeGreaterThanSearchValue.
- Return type:
GreaterThanSearchValue
property lessThanSearchValue
Property lessThanSearchValue is of typeLessThanSearchValue.
- Return type:
LessThanSearchValue
property searchAttribute
Property searchAttribute is of typeAttributeReference.
- Return type:
AttributeReference
property type
Property type is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectRecordVersionState
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.
- Parameters:
- recordReference (
RecordReference) - versionState (int)
- hasReleasedRevision (bool)
- hasSupersededRevision (bool)
- hasWithdrawnRevision (bool)
- createdRevision (
DatabaseRevision) - modifiedRevision (
DatabaseRevision) - releasedRevision (
DatabaseRevision) - supersededRevision (
DatabaseRevision) - withdrawnRevision (
DatabaseRevision)
- recordReference (
class VersionState
Bases:object
Released = 0
Superseded = 1
Withdrawn = 2
Unreleased = 3
Unversioned = 4
Unknown = 5
property createdRevision
Property createdRevision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property hasReleasedRevision
Property hasReleasedRevision is of type bool.- Return type: bool
property hasSupersededRevision
Property hasSupersededRevision is of type bool.- Return type: bool
property hasWithdrawnRevision
Property hasWithdrawnRevision is of type bool.- Return type: bool
property modifiedRevision
Property modifiedRevision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property recordReference
Property recordReference is of typeRecordReference.
- Return type:
RecordReference
property releasedRevision
Property releasedRevision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property supersededRevision
Property supersededRevision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property versionState
Property versionState is of type int. SeeRecordVersionState.VersionState for supported values.
- Return type: int
property withdrawnRevision
Property withdrawnRevision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property c_obj
Pointer to the underlying C-objectRecordWithAttributeAddresses
class RecordWithAttributeAddresses(attributeAddresses=None, recordReference=None, _isOwner=True)
Bases:object
A RecordReference with a list of attributes and their upload URL
addresses.
- Parameters:
- attributeAddresses (list of
AttributeAddress) - recordReference (
RecordReference)
- attributeAddresses (list of
property attributeAddresses
Property attributeAddresses is a list ofAttributeAddress objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeAddress
property recordReference
Property recordReference is of typeRecordReference.
- Return type:
RecordReference
AddAttributeAddress(_attributeAddress)
Appends _attributeAddress to attributeAddresses property on RecordWithAttributeAddresses C-object.- Parameters:
_attributeAddress (
AttributeAddress)
property c_obj
Pointer to the underlying C-objectResolveReferencesRequest
class ResolveReferencesRequest(entities=None, _isOwner=True)
Bases:object
Input for the ResolveReferences operation.
- Parameters:
entities (list of
RecordReference)
property entities
Property entities is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
AddEntitie(_recordReference)
Appends _recordReference to entities property on ResolveReferencesRequest C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectResolveReferencesResponse
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 ofMIEntityResolution objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
MIEntityResolution
Response
class Response(c_obj)
Bases:ABC
Base class for response types in Granta MI.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a response object.
property c_obj
Pointer to the underlying C-objectproperty serviceLayerResponse
The raw response object received from the Granta MI Service Layer.- Return type:
ServiceLayerResponse
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.
- Parameters:
- created (
DatabaseRevision) - modified (
DatabaseRevision) - updateCount (int)
- created (
property created
Property created is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property modified
Property modified is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property updateCount
Property updateCount is of type int.- Return type: int
property c_obj
Pointer to the underlying C-objectRichText
class RichText(type=None, value=None, _isOwner=True)
Bases:object
Contains a piece of text and its type.
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-objectSearchResult
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.
- Parameters:
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 typeRecordReference.
- Return 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-objectSearchService
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.- Parameters:
_req (
SimpleTextSearchobject) - Return type:
SimpleTextSearchResponseobject
CriteriaSearch(_req)
Searches for records matching attribute-based criteria.- Parameters:
_req (
CriteriaSearchobject) - Return type:
SimpleTextSearchResponseobject
RecordNameSearch(_req)
Searches for Records with a given exact Record name.- Parameters:
_req (
RecordNameSearchRequestobject) - Return type:
SimpleTextSearchResponseobject
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.
- Parameters:
- XYPoints (
XYData) - constraints (
Constraints) - decoration (int)
- XYPoints (
property constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property decoration
Property decoration is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property XYPoints
Property XYPoints is of typeXYData.
- Return type:
XYData
property c_obj
Pointer to the underlying C-objectService
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.
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-objectSetRecordAttributesRequest
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.
- Parameters:
- importErrorMode (str)
- importRecords (list of
ImportRecord) - notes (str)
- releaseNotes (str)
property importRecords
Property importRecords is of type list ofImportRecord.
- Return 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. SeeGRANTA_Constants for supported values.
- Return type: str
AddImportRecord(_importRecord)
Appends _importRecord to importRecords property on SetRecordAttributesRequest C-object.- Parameters:
_importRecord (
ImportRecord)
property c_obj
Pointer to the underlying C-objectSetRecordAttributesResponse
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 ofNamedRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedRecord
ShortTextDataType
class ShortTextDataType(isApplicable=None, value=None, _isOwner=True)
Bases:IDataValue
Type for values of short text (string) data.
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property value
Property value is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectSimpleTextSearch
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.
- Parameters:
- DBKey (str)
- populateGUIDs (bool)
- recordFilter (
RecordFilter) - restrictToTables (list of
PartialTableReference) - searchFilter (int)
- searchMode (int)
- searchValue (str)
property restrictToTables
Property restrictToTables is a list ofPartialTableReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
PartialTableReference
property DBKey
Property DBKey is of type str.- Return type: str
property populateGUIDs
Property populateGUIDs is of type bool.- Return type: bool
property searchValue
Property searchValue is of type str.- Return type: str
property recordFilter
Property recordFilter is of typeRecordFilter.
- Return type:
RecordFilter
property searchFilter
Property searchFilter is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property searchMode
Property searchMode is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
AddRestrictToTable(_partialTableReference)
Appends _partialTableReference to restrictToTables property on SimpleTextSearch C-object.- Parameters:
_partialTableReference (
PartialTableReference)
property c_obj
Pointer to the underlying C-objectSimpleTextSearchResponse
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 ofSearchResult objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SearchResult
AddSearchResult(_searchResult)
Appends _searchResult to searchResults property on SimpleTextSearchResponse C-object.- Parameters:
_searchResult (
SearchResult)
SourceRecord
class SourceRecord(record=None, recordLinkGroups=None, _isOwner=True)
Bases:object
A type that contains a record reference and associated record link groups.
- Parameters:
- record (
RecordReference) - recordLinkGroups (
LinkedRecordsDataType)
- record (
property record
Property record is of typeRecordReference.
- Return type:
RecordReference
property recordLinkGroups
Property recordLinkGroups is of typeLinkedRecordsDataType.
- Return type:
LinkedRecordsDataType
property c_obj
Pointer to the underlying C-objectSourceUnitConversionSet
class SourceUnitConversionSet(conversions=None, sourceSymbol=None, _isOwner=True)
Bases:object
All the unit conversions available for a specified unit.
- Parameters:
- conversions (list of
UnitConversionTarget) - sourceSymbol (str)
- conversions (list of
property conversions
Property conversions is a list ofUnitConversionTarget objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitConversionTarget
property sourceSymbol
Property sourceSymbol is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectSpecificUnitConversionContext
class SpecificUnitConversionContext(absoluteUnits=None, currency=None, unitSymbol=None, _isOwner=True)
Bases:object
Type defining how values with convertible units should be represented.
property absoluteUnits
Property absoluteUnits is of type bool.- Return 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-objectSubsetDetail
class SubsetDetail(name=None, subset=None, _isOwner=True)
Bases:object
Detailed meta-information about a subset in a Granta MI database.
- Parameters:
- name (str)
- subset (
SubsetReference)
property name
Property name is of type str.- Return type: str
property subset
Property subset is of typeSubsetReference.
- Return type:
SubsetReference
property c_obj
Pointer to the underlying C-objectSubsetReference
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.
- Parameters:
- DBKey (str)
- name (str)
- partialTableReference (
PartialTableReference) - subsetIdentity (int)
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 typePartialTableReference. When used for input, this only needs to be specified if you are specifying a name rather than an id.
- Return type:
PartialTableReference
property subsetIdentity
Property subsetIdentity is of type int.- Return type: int
property c_obj
Pointer to the underlying C-objectSubsetsDataType
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:
- dataVersionNo (int)
- importNodeName (str)
- namedSubsets (list of
NamedSubset) - nodeName (str)
- typeString (str)
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 ofNamedSubset objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedSubset
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-objectTableDetail
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.
- Parameters:
- attributeReferences (list of
AttributeReference) - defaultLayout (
NamedLayout) - defaultSubset (
SubsetDetail) - standardAttributeReferences (list of
AttributeReference) - tableFilters (list of int)
- tableReference (
TableReference)
- attributeReferences (list of
property attributeReferences
Property attributeReferences is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property defaultLayout
Property defaultLayout is of typeNamedLayout.
- Return type:
NamedLayout
property defaultSubset
Property defaultSubset is of typeSubsetDetail.
- Return type:
SubsetDetail
property standardAttributeReferences
Property standardAttributeReferences is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property tableFilters
Property tableFilters is a list of int objects. SeeGRANTA_Constants for supported values.
WARNING
Do not attempt to edit or append to the returned value.property tableReference
Property tableReference is of typeTableReference.
- Return type:
TableReference
AddAttributeReferences(_attributeReference)
Appends _attributeReference to attributeReferences property on TableDetail C-object.- Parameters:
_attributeReference (
AttributeReference)
property c_obj
Pointer to the underlying C-objectTableReference
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-objectTabularColumnDetail
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.
- Parameters:
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 typeRevisionInfo.
- Return type:
RevisionInfo
property type
Property type is of type int.- Return type: int
property c_obj
Pointer to the underlying C-objectTabularDataCell
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.
- Parameters:
- data (
IDataValue) - dataType (str)
- dateDataValue (
DateDataType) - discreteDataValue (
DiscreteDataType) - fileDataValue (
FileDataType) - hyperlinkDataValue (
HyperlinkDataType) - integerDataValue (
IntegerDataType) - listDataValue (
ListDataType) - logicalDataValue (
LogicalDataType) - longTextDataValue (
LongTextDataType) - pictureDataValue (
PictureDataType) - pointDataValue (
PointDataType) - rangeDataValue (
RangeDataType) - shortTextDataValue (
ShortTextDataType) - emptyDataValue (
EmptyDataType)
- data (
property dataType
Property dataType is of type str.- Return type: str
property dateDataValue
Property dateDataValue is of typeDateDataType.
- Return type:
DateDataType
property discreteDataValue
Property discreteDataValue is of typeDiscreteDataType.
- Return type:
DiscreteDataType
property emptyDataValue
Property emptyDataValue is of typeEmptyDataType.
- Return type:
EmptyDataType
property fileDataValue
Property fileDataValue is of typeFileDataType.
- Return type:
FileDataType
property hyperlinkDataValue
Property hyperlinkDataValue is of typeHyperlinkDataType.
- Return type:
HyperlinkDataType
property integerDataValue
Property integerDataValue is of typeIntegerDataType.
- Return type:
IntegerDataType
property listDataValue
Property listDataValue is of typeListDataType.
- Return type:
ListDataType
property logicalDataValue
Property logicalDataValue is of typeLogicalDataType.
- Return type:
LogicalDataType
property longTextDataValue
Property longTextDataValue is of typeLongTextDataType.
- Return type:
LongTextDataType
property pictureDataValue
Property pictureDataValue is of typePictureDataType.
- Return type:
PictureDataType
property pointDataValue
Property pointDataValue is of typePointDataType.
- Return type:
PointDataType
property rangeDataValue
Property rangeDataValue is of typeRangeDataType.
- Return type:
RangeDataType
property shortTextDataValue
Property shortTextDataValue is of typeShortTextDataType.
- Return type:
ShortTextDataType
property data
Property data is of typeIDataValue.
- Return type:
IDataValue
property c_obj
Pointer to the underlying C-objectTabularDataRow
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()).
- Parameters:
- Id (int)
- cells (list of
TabularDataCell) - linkedRecords (list of
RecordReference) - linkingValue (str)
property cells
Property cells is a list ofTabularDataCell objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataCell
property Id
Property Id is of type int.- Return type: int
property linkedRecords
Property linkedRecords is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property linkingValue
Property linkingValue is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectTabularDataType
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.
- Parameters:
- columns (list of
TabularDataTypeColumn) - isApplicable (bool)
- tabularDataRows (list of
TabularDataRow) - summaryColumns (list of
TabularDataTypeColumn) - summaryRow (
TabularDataRow)
- columns (list of
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 ofTabularDataTypeColumn objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataTypeColumn
property isApplicable
Property isApplicable is of type bool.- Return type: bool
property summaryColumns
Property summaryColumns is a list ofTabularDataTypeColumn objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataTypeColumn
property tabularDataRows
Property tabularDataRows is a list ofTabularDataRow objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataRow
property summaryRow
Property summaryRow is of typeTabularDataRow.
- Return type:
TabularDataRow
AddColumn(value)
Appends value to columns property on TabularDataType C-object.- Parameters: value (str)
property c_obj
Pointer to the underlying C-objectTabularDataTypeColumn
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.
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-objectTabularDetail
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.
- Parameters:
- columns (list of
TabularColumnDetail) - linkedTable (
TableReference) - linkingAttribute (
NamedAttribute)
- columns (list of
property columns
Property columns is a list ofTabularColumnDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularColumnDetail
property linkedTable
Property linkedTable is of typeTableReference.
- Return type:
TableReference
property linkingAttribute
Property linkingAttribute is of typeNamedAttribute.
- Return type:
NamedAttribute
property c_obj
Pointer to the underlying C-objectTargetedSourceRecord
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.
- Parameters:
- sourceRecord (
RecordReference) - targetRecords (list of
RecordReference)
- sourceRecord (
property targetRecords
Property targetRecords is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property sourceRecord
Property sourceRecord is of typeRecordReference.
- Return type:
RecordReference
AddTargetRecord(_recordReference)
Appends _recordReference to targetRecords property on TargetedSourceRecord C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectTrailingZeroInformation
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.
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-objectTreeRecord
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.
- Parameters:
- children (list of
TreeRecord) - color (str)
- longName (str)
- parentRecordHistoryIdentity (int)
- recordReference (
RecordReference) - shortName (str)
- type (str)
- children (list of
property children
Property children is a list ofTreeRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TreeRecord
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 typeRecordReference.
- Return 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.- Parameters:
_treeRecord (
TreeRecord)
property c_obj
Pointer to the underlying C-objectUnitConversion
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.
property factor
Property factor is of type float.- Return type: float
property offset
Property offset is of type float.- Return 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-objectUnitConversionContext
class UnitConversionContext(absoluteUnits=None, currency=None, unitSystem=None, _isOwner=True)
Bases:object
Type defining how values with units should be represented.
property absoluteUnits
Property absoluteUnits is of type bool.- Return 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-objectUnitConversionContextConversionSet
class UnitConversionContextConversionSet(unitConversionContext=None, unitConversions=None, _isOwner=True)
Bases:object
All the unit conversions available with a specified unit conversion context.
- Parameters:
- unitConversionContext (
UnitConversionContext) - unitConversions (list of
UnitConversion)
- unitConversionContext (
property unitConversions
Property unitConversions is a list ofUnitConversion objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitConversion
property unitConversionContext
Property unitConversionContext is of typeUnitConversionContext.
- Return type:
UnitConversionContext
AddUnitConversion(_unitConversion)
Appends _unitConversion to unitConversions property on UnitConversionContextConversionSet C-object.- Parameters:
_unitConversion (
UnitConversion)
property c_obj
Pointer to the underlying C-objectUnitConversionTarget
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.- Return type: float
property offset
Property offset is of type float.- Return type: float
property targetSymbol
Property targetSymbol is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectUnitInformation
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.
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-objectUnitSymbol
class UnitSymbol(hasCurrency=None, symbol=None, _isOwner=True)
Bases:object
A unit symbol known to MI, and whether it references a currency.
property hasCurrency
Property hasCurrency is of type bool.- Return type: bool
property symbol
Property symbol is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectUnittedParameterValue
class UnittedParameterValue(parameterWithValues=None, unitSymbol=None, _isOwner=True)
Bases:object
A Parameter, along with a single value of that Parameter, optionally with units.
- Parameters:
- parameterWithValues (
ParameterReferenceAndValue) - unitSymbol (str)
- parameterWithValues (
property parameterWithValues
Property parameterWithValues is of typeParameterReferenceAndValue.
- Return type:
ParameterReferenceAndValue
property unitSymbol
Property unitSymbol is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectUnlinkAllRecords
class UnlinkAllRecords(nodeName=None, sourceRecords=None, _isOwner=True)
Bases:object
For each given source record, remove all links in the Record Link Group.
- Parameters:
- nodeName (str)
- sourceRecords (list of
RecordReference)
property sourceRecords
Property sourceRecords is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property nodeName
Property nodeName is of type str.- Return type: str
AddSourceRecord(_recordReference)
Appends _recordReference to sourceRecords property on UnlinkAllRecords C-object.- Parameters:
_recordReference (
RecordReference)
property c_obj
Pointer to the underlying C-objectUnlinkRecords
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.
- Parameters:
- nodeName (str)
- sourceRecords (list of
TargetedSourceRecord)
property sourceRecords
Property sourceRecords is of type list ofTargetedSourceRecord.
- Return 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.- Parameters:
_targetedSourceRecord (
TargetedSourceRecord)
property c_obj
Pointer to the underlying C-objectXYData
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 ofXYPoint objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
XYPoint
property XYRanges
Property XYRanges is a list ofXYRange objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
XYRange
property type
Property type is of type str.- Return type: str
AddXYPoint(_XYPoint)
Appends _XYPoint to XYPoints property on XYData C-object.- Parameters:
_XYPoint (
XYPoint)
AddXYRange(_XYRange)
Appends _XYRange to XYRanges property on XYData C-object.- Parameters:
_XYRange (
XYRange)
property c_obj
Pointer to the underlying C-objectXYDiscrete
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.
- Parameters:
- Y (str)
- isEstimated (bool)
- parameterValue (
ParameterValue)
property isEstimated
Property isEstimated is of type bool.- Return type: bool
property parameterValue
Property parameterValue is of typeParameterValue.
- Return type:
ParameterValue
property Y
Property Y is of type str.- Return type: str
property c_obj
Pointer to the underlying C-objectXYDiscreteData
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.
- Parameters:
XYDiscretes (list of
XYDiscrete)
property XYDiscretes
Property XYDiscretes is a list ofXYDiscrete objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
XYDiscrete
AddXYDiscrete(_XYDiscrete)
Appends _XYDiscrete to XYDiscretes property on XYDiscreteData C-object.- Parameters:
_XYDiscrete (
XYDiscrete)
property c_obj
Pointer to the underlying C-objectXYPoint
class XYPoint(Y=None, isEstimated=None, parameterValue=None, _isOwner=True)
Bases:object
An x-y datum where the y-axis value is a point.
- Parameters:
- Y (float)
- isEstimated (bool)
- parameterValue (
ParameterValue)
property isEstimated
Property isEstimated is of type bool.- Return type: bool
property parameterValue
Property parameterValue is of typeParameterValue.
- Return type:
ParameterValue
property Y
Property Y is of type float.- Return type: float
property c_obj
Pointer to the underlying C-objectXYRange
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.
- Parameters:
- isEstimated (bool)
- lowerY (float)
- parameterValue (
ParameterValue) - upperY (float)
property isEstimated
Property isEstimated is of type bool.- Return type: bool
property lowerY
Property lowerY is of type float.- Return type: float
property parameterValue
Property parameterValue is of typeParameterValue.
- Return type:
ParameterValue
property upperY
Property upperY is of type float.- Return type: float