Foundation API Reference¶
Services Reference¶
BrowseService¶
-
class
BrowseService(mi_session)¶ The Browse service provides read-only operation for a Granta MI Server.
-
GetDatabases()¶ List the databases available on the Granta MI Server.
- Returns
GetDatabasesResponseobject
-
GetTables(_req)¶ List the tables contained in a particular Granta MI Database.
- Parameters
_req –
GetTablesobject- Returns
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- Returns
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- Returns
GetChildNodesResponseobject
-
GetSubsets(_req)¶ List the Subsets for a Granta MI Database or for one Table in a Database.
- Parameters
_req –
GetSubsetsRequestobject- Returns
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- Returns
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- Returns
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- Returns
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- Returns
GetRecordAttributesResponseobject
-
GetUnitSystems(_req)¶ Returns information about the unit systems known to a Granta MI Database
- Parameters
_req –
GetUnitSystemsobject- Returns
GetUnitSystemsResponseobject
-
GetRecordVersions(_req)¶ Returns version information about the records specified in the request object.
- Parameters
_req –
GetRecordVersionsRequestobject- Returns
GetRecordVersionsResponseobject
-
GetRecordLinkGroups(_req)¶ Gets details of Record Link Groups in a Granta MI Database.
- Parameters
_req –
GetRecordLinkGroupsobject- Returns
GetRecordLinkGroupsResponseobject
-
GetLinkedRecords(_req)¶ Returns the linked records for specified records, for one or more record link groups.
- Parameters
_req –
GetLinkedRecordsRequestobject- Returns
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- Returns
-
GetParameterDetails(_req)¶ Returns detailed information about the given Parameter(s) in a Granta MI Database.
- Parameters
_req –
GetParameterDetailsRequestobject- Returns
GetParameterDetailsResponseobject
-
GetMetaAttributes(_req)¶ Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.
- Parameters
_req –
GetMetaAttributesRequestobject- Returns
GetMetaAttributesResponseobject
-
GetDatabaseParameters(_req)¶ List the parameter(s) in a Granta MI Database.
- Parameters
_req –
GetDatabaseParametersobject- Returns
-
GetIntegrationProfiles(_req)¶ List the profiles available on a Granta MI Database.
- Parameters
_req –
GetIntegrationProfilesobject- Returns
-
GetLayouts(_req)¶ List the Layouts for an MI Database or for one Table in a Database.
- Parameters
_req –
GetLayoutsobject- Returns
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- Returns
ResolveReferencesResponseobject
-
GetUnitConversions(_req)¶ Gets all the unit conversions available for a specified unit or unit system.
- Parameters
_req –
GetUnitConversionsRequestobject- Returns
GetUnitConversionsResponseobject
-
SearchService¶
-
class
SearchService(mi_session)¶ The Search service finds Records, within Granta MI Databases, matching specified criteria.
-
SimpleTextSearch(_req)¶ Searches for records matching simple text criteria.
- Parameters
_req –
SimpleTextSearchobject- Returns
SimpleTextSearchResponseobject
-
CriteriaSearch(_req)¶ Searches for records matching attribute-based criteria.
- Parameters
_req –
CriteriaSearchobject- Returns
SimpleTextSearchResponseobject
-
RecordNameSearch(_req)¶ Searches for Records with a given exact Record name.
- Parameters
_req –
RecordNameSearchRequestobject- Returns
SimpleTextSearchResponseobject
-
DataImportService¶
-
class
DataImportService(mi_session)¶ 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- Returns
SetRecordAttributesResponseobject
-
ModifyRecordLinks(_req)¶ Adds or removes static Links between record(s) in a Granta MI Database.
- Parameters
_req –
ModifyRecordLinksRequestobject- Returns
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- Returns
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- Returns
-
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- Returns
-
DataExportService¶
-
class
DataExportService(mi_session)¶ 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- Returns
-
EngineeringDataService¶
-
class
EngineeringDataService(mi_session)¶ 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- Returns
-
ExportRecordData(_req)¶ Performs an FEA Export and returns the result as the response.
- Parameters
_req –
ExportRecordDataRequestobject- Returns
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- Returns
-
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- Returns
ExportersForRecordsResponseobject
-
Objects Reference¶
AssociatedRecords¶
-
class
AssociatedRecords(associatedRecords=None, sourceRecord=None, _isOwner=True)¶ Bases:
objectAssociatedRecords. Object containing a source
RecordReferenceobject and an array of associatedRecordReferenceobjects.- Parameters
associatedRecords – type list of
RecordReferenceobjectssourceRecord – type
RecordReference
-
property
associatedRecords¶ Property associatedRecords is a
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
sourceRecord¶ Property sourceRecord is of type
RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
AttributeAddress¶
-
class
AttributeAddress(URL=None, attributeID=None, attributeName=None, attributeStandardName=None, _isOwner=True)¶ Bases:
objectAttributeAddress. The upload URL of an attribute and an attribute identifier. The attribute is identified by the identity, name, and where available, standard name.
- Parameters
URL – type str
attributeID – type int
attributeName – type str
attributeStandardName – type str
-
property
attributeID¶ Property attributeID is of type int.
-
property
attributeName¶ Property attributeName is of type str.
-
property
attributeStandardName¶ Property attributeStandardName is of type str.
-
property
URL¶ Property URL is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
AttributeCategory¶
-
class
AttributeCategory(categoryAttributeDetails=None, name=None, order=None, recordLinkGroupDetails=None, _isOwner=True)¶ Bases:
objectAttributeCategory. Gives the details of contents of a category in a layout. Does not include Tabular Data Association Chains.
- Parameters
categoryAttributeDetails – type list of
CategoryAttributeDetailobjectsname – type str
order – type int
recordLinkGroupDetails – type list of
RecordLinkGroupDetailobjects
-
property
categoryAttributeDetails¶ Property categoryAttributeDetails is a list of
CategoryAttributeDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
recordLinkGroupDetails¶ Property recordLinkGroupDetails is a list of
RecordLinkGroupDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
name¶ Property name is of type str.
-
property
order¶ Property order is of type int.
-
AddCategoryAttributeDetail(_categoryAttributeDetail)¶ Appends _categoryAttributeDetail to categoryAttributeDetails property on AttributeCategory C-object.
- Parameters
_categoryAttributeDetail – object of type CategoryAttributeDetail.
-
AddRecordLinkGroupDetail(_recordLinkGroupDetail)¶ Appends _recordLinkGroupDetail to recordLinkGroupDetails property on AttributeCategory C-object.
- Parameters
_recordLinkGroupDetail – object of type RecordLinkGroupDetail.
-
property
c_obj¶ Pointer to the underlying C-object
AttributeDetail¶
-
class
AttributeDetail(identity=None, about=None, name=None, axisName=None, attribute=None, revisionInfo=None, chartable=None, isMeta=None, defaultThreshold=None, discreteValues=None, databaseUnit=None, isSearchable=None, isMultiValued=None, type=None, order=None, tabular=None, isUnique=None, minMax=None, _isOwner=True)¶ Bases:
objectAttributeDetail. 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
identity – type int
about – type
NamedAttributename – type str
axisName – type str
attribute – type
AttributeReferencerevisionInfo – type
RevisionInfochartable – type bool
isMeta – type bool
defaultThreshold – type str
discreteValues – type list of str objects
databaseUnit – type str
isSearchable – type bool
isMultiValued – type bool
type – type str
order – type int
tabular – type
TabularDetailisUnique – type bool
minMax – type
MinMax
-
property
about¶ Property about is of type
NamedAttribute. Only populated if ‘isMeta’ is True.
-
property
attribute¶ Property attribute is of type
AttributeReference.
-
property
axisName¶ Property axisName is of type str.
-
property
chartable¶ Property chartable is of type bool.
-
property
databaseUnit¶ Property databaseUnit is of type str.
-
property
defaultThreshold¶ Property defaultThreshold is of type str.
-
property
discreteValues¶ Property discreteValues is a str objects. Warning: Do not attempt to edit or append to the returned value.
-
property
identity¶ Property identity is of type int.
-
property
isMeta¶ Property isMeta is of type bool. If this is True, the ‘about’ property may have additional information about the related parent attribute.
-
property
isMultiValued¶ Property isMultiValued is of type bool.
-
property
isSearchable¶ Property isSearchable is of type bool.
-
property
isUnique¶ Property isUnique is of type bool.
-
property
name¶ Property name is of type str.
-
property
order¶ Property order is of type int.
-
property
revisionInfo¶ Property revisionInfo is of type
RevisionInfo.
-
property
tabular¶ Property tabular is of type
TabularDetail.
-
property
type¶ Property type is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
AttributeExporterParameters¶
-
class
AttributeExporterParameters(attribute=None, dataPresence=None, parameters=None, graphDomains=None, _isOwner=True)¶ Bases:
objectAttributeExporterParameters. A type to contain an attribute along with associated parameters and domains. All
Parametersare declared on the MI parameterised Attribute, even if not used in some combination ofExporterand Record. It also contains the possible domains in which the fixed Parameter values must be chosen.- Parameters
attribute – type
NamedAttributedataPresence – type int
parameters – type list of
ExporterParameterobjectsgraphDomains – type list of
GraphDomainobjects
-
class
DataPresence¶ Bases:
object-
Unknown= 0¶
-
Present= 1¶
-
NotApplicable= 2¶
-
Missing= 3¶
-
DataIncompatibleWithConfiguration= 4¶
-
-
property
graphDomains¶ Property graphDomains is a list of
GraphDomainobjects. Each graph domain contains information on the possible values that the corresponding parameter (by list index) can take. Warning: Do not attempt to edit or append to the returned value.
-
property
parameters¶ Property parameters is a list of
ExporterParameterobjects. This is a list of parameters that parameterize the attribute in question. Warning: Do not attempt to edit or append to the returned value.
-
property
attribute¶ Property attribute is of type
NamedAttribute.
-
property
dataPresence¶ Property dataPresence is of type int. See
AttributeExporterParameters.DataPresencefor supported values.
-
AddGraphDomain(_graphDomain)¶ Appends _graphDomain to graphDomains property on AttributeExporterParameters C-object.
- Parameters
_graphDomain – object of type GraphDomain.
-
AddParameter(_exporterParameter)¶ Appends _exporterParameter to parameters property on AttributeExporterParameters C-object.
- Parameters
_exporterParameter – object of type ExporterParameter.
-
property
c_obj¶ Pointer to the underlying C-object
AttributeMetaAttributes¶
-
class
AttributeMetaAttributes(metaAttributes=None, parentAttribute=None, _isOwner=True)¶ Bases:
objectAttributeMetaAttributes. Lists the Meta-Attributes of a particular Attribute in a Granta MI Database Table.
- Parameters
metaAttributes – type list of
NamedAttributeobjectsparentAttribute – type
AttributeReference
-
property
metaAttributes¶ Property metaAttributes is a
NamedAttributeobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
parentAttribute¶ Property parentAttribute is of type
AttributeReference.
-
property
c_obj¶ Pointer to the underlying C-object
AttributeReference¶
-
class
AttributeReference(pseudoAttribute=None, isStandardName=None, name=None, partialTableReference=None, DBKey=None, attributeID=None, _isOwner=True)¶ Bases:
objectAttributeReference. 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
PartialTableReferenceis also required.- Parameters
pseudoAttribute – type int
isStandardName – type bool
name – type str
partialTableReference – type
PartialTableReferenceDBKey – type str
attributeID – type int
-
class
MIPseudoAttributeReference¶ Bases:
object-
name= 0¶
-
shortName= 1¶
-
subsets= 2¶
-
releasedDate= 3¶
-
modifiedDate= 4¶
-
recordType= 5¶
-
recordHistoryIdentity= 6¶
-
recordColor= 7¶
-
recordVersionNumber= 12¶
-
tableName= 13¶
-
writable= 16¶
-
parentName= 17¶
-
parentShortName= 18¶
-
parentRecordHistoryIdentity= 19¶
-
createdDate= 21¶
-
creator= 22¶
-
lastModifier= 23¶
-
-
property
attributeID¶ Property attributeID is of type int.
-
property
DBKey¶ Property DBKey is of type str.
-
property
isStandardName¶ Property isStandardName is of type bool.
-
property
name¶ Property name is of type str.
-
property
partialTableReference¶ Property partialTableReference is of type
PartialTableReference.
-
property
pseudoAttribute¶ Property pseudoAttribute is of type int. See
AttributeReference.MIPseudoAttributeReferencefor supported values.
-
property
c_obj¶ Pointer to the underlying C-object
AttributeValue¶
-
class
AttributeValue(tabularDataType=None, discreteDataValue=None, rangeDataType=None, hyperlinkDataValue=None, attributeStandardName=None, dataType=None, shortTextDataType=None, longTextDataType=None, attributeName=None, floatFunctionalGriddedDataType=None, logicalDataValue=None, integerDataValue=None, floatFunctionalSeriesDataType=None, attributeID=None, fileDataType=None, dateDataType=None, pointDataType=None, pictureDataType=None, subsetsDataType=None, _isOwner=True)¶ Bases:
objectAttributeValue. 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
tabularDataType – type
TabularDataTypediscreteDataValue – type
DiscreteDataTyperangeDataType – type
RangeDataTypehyperlinkDataValue – type
HyperlinkDataTypeattributeStandardName – type str
dataType – type str
shortTextDataType – type
ShortTextDataTypelongTextDataType – type
LongTextDataTypeattributeName – type str
floatFunctionalGriddedDataType – type
FloatFunctionalGriddedDataTypelogicalDataValue – type
LogicalDataTypeintegerDataValue – type
IntegerDataTypefloatFunctionalSeriesDataType – type
FloatFunctionalSeriesDataTypeattributeID – type int
fileDataType – type
FileDataTypedateDataType – type
DateDataTypepointDataType – type
PointDataTypepictureDataType – type
PictureDataTypesubsetsDataType – type
SubsetsDataType
-
property
attributeID¶ Property attributeID is of type int.
-
property
attributeName¶ Property attributeName is of type str.
-
property
attributeStandardName¶ Property attributeStandardName is of type str.
-
property
dataType¶ Property dataType is of type str.
-
property
dateDataType¶ Property dateDataType is of type
DateDataType.
-
property
discreteDataValue¶ Property discreteDataValue is of type
DiscreteDataType.
-
property
fileDataType¶ Property fileDataType is of type
FileDataType.
-
property
floatFunctionalGriddedDataType¶ Property floatFunctionalGriddedDataType is of type
FloatFunctionalGriddedDataType.
-
property
floatFunctionalSeriesDataType¶ Property floatFunctionalSeriesDataType is of type
FloatFunctionalSeriesDataType.
-
property
hyperlinkDataValue¶ Property hyperlinkDataValue is of type
HyperlinkDataType.
-
property
integerDataValue¶ Property integerDataValue is of type
IntegerDataType.
-
property
logicalDataValue¶ Property logicalDataValue is of type
LogicalDataType.
-
property
longTextDataType¶ Property longTextDataType is of type
LongTextDataType.
-
property
pictureDataType¶ Property pictureDataType is of type
PictureDataType.
-
property
pointDataType¶ Property pointDataType is of type
PointDataType.
-
property
rangeDataType¶ Property rangeDataType is of type
RangeDataType.
-
property
shortTextDataType¶ Property shortTextDataType is of type
ShortTextDataType.
-
property
subsetsDataType¶ Property subsetsDataType is of type
SubsetsDataType.
-
property
tabularDataType¶ Property tabularDataType is of type
TabularDataType.
-
property
c_obj¶ Pointer to the underlying C-object
BetweenDateTimesSearchValue¶
-
class
BetweenDateTimesSearchValue(lowEnd=None, highEnd=None, tabularColumn=None, _isOwner=True)¶ Bases:
objectBetweenDateTimesSearchValue. Search criterion to search for data between two times. This criterion type is specific to DateTime Attributes. Both a LowEnd and a HighEnd value are required. The date format is in XSD’s dateTime data type (YYYY-MM-DDThh:mm:ss).
- Parameters
lowEnd – type str
highEnd – type str
tabularColumn – type str
-
property
highEnd¶ Property highEnd is of type str.
-
property
lowEnd¶ Property lowEnd is of type str.
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
BetweenSearchValue¶
-
class
BetweenSearchValue(lowEnd=None, highEnd=None, tabularColumn=None, _isOwner=True)¶ Bases:
objectBetweenSearchValue. 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
lowEnd – type
LowEndSearchValuehighEnd – type
HighEndSearchValuetabularColumn – type str
-
property
highEnd¶ Property highEnd is of type
HighEndSearchValue.
-
property
lowEnd¶ Property lowEnd is of type
LowEndSearchValue.
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
BinaryDataSettings¶
-
class
BinaryDataSettings(binaryDataRepresentation=None, maxImageSize=None, _isOwner=True)¶ Bases:
objectBinaryDataSettings. Settings for exporting file and picture data.
- Parameters
binaryDataRepresentation – type int
maxImageSize – type
RasterSize
-
property
binaryDataRepresentation¶ Property binaryDataRepresentation is of type int. See
GRANTA_Constants.BinaryDataRepresentationfor supported values.
-
property
maxImageSize¶ Property maxImageSize is of type
RasterSize.
-
property
c_obj¶ Pointer to the underlying C-object
BrowseService¶
-
class
BrowseService(mi_session)¶ Bases:
GRANTA_MIScriptingToolkit.Service.ServiceThe Browse service provides read-only operation for a Granta MI Server.
-
GetDatabases()¶ List the databases available on the Granta MI Server.
- Returns
GetDatabasesResponseobject
-
GetTables(_req)¶ List the tables contained in a particular Granta MI Database.
- Parameters
_req –
GetTablesobject- Returns
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- Returns
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- Returns
GetChildNodesResponseobject
-
GetSubsets(_req)¶ List the Subsets for a Granta MI Database or for one Table in a Database.
- Parameters
_req –
GetSubsetsRequestobject- Returns
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- Returns
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- Returns
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- Returns
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- Returns
GetRecordAttributesResponseobject
-
GetUnitSystems(_req)¶ Returns information about the unit systems known to a Granta MI Database
- Parameters
_req –
GetUnitSystemsobject- Returns
GetUnitSystemsResponseobject
-
GetRecordVersions(_req)¶ Returns version information about the records specified in the request object.
- Parameters
_req –
GetRecordVersionsRequestobject- Returns
GetRecordVersionsResponseobject
-
GetRecordLinkGroups(_req)¶ Gets details of Record Link Groups in a Granta MI Database.
- Parameters
_req –
GetRecordLinkGroupsobject- Returns
GetRecordLinkGroupsResponseobject
-
GetLinkedRecords(_req)¶ Returns the linked records for specified records, for one or more record link groups.
- Parameters
_req –
GetLinkedRecordsRequestobject- Returns
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- Returns
-
GetParameterDetails(_req)¶ Returns detailed information about the given Parameter(s) in a Granta MI Database.
- Parameters
_req –
GetParameterDetailsRequestobject- Returns
GetParameterDetailsResponseobject
-
GetMetaAttributes(_req)¶ Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.
- Parameters
_req –
GetMetaAttributesRequestobject- Returns
GetMetaAttributesResponseobject
-
GetDatabaseParameters(_req)¶ List the parameter(s) in a Granta MI Database.
- Parameters
_req –
GetDatabaseParametersobject- Returns
-
GetIntegrationProfiles(_req)¶ List the profiles available on a Granta MI Database.
- Parameters
_req –
GetIntegrationProfilesobject- Returns
-
GetLayouts(_req)¶ List the Layouts for an MI Database or for one Table in a Database.
- Parameters
_req –
GetLayoutsobject- Returns
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- Returns
ResolveReferencesResponseobject
-
GetUnitConversions(_req)¶ Gets all the unit conversions available for a specified unit or unit system.
- Parameters
_req –
GetUnitConversionsRequestobject- Returns
GetUnitConversionsResponseobject
-
CategoryAttributeDetail¶
-
class
CategoryAttributeDetail(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, about=None, _isOwner=True)¶ Bases:
objectCategoryAttributeDetail. Gives the attribute details with a client read only and is required flag.
- Parameters
attribute – type
AttributeReferenceaxisName – type str
chartable – type bool
databaseUnit – type str
defaultThreshold – type str
discreteValues – type list of str objects
helpInfo – type
HelpInfoidentity – type int
isMeta – type bool
isMultiValued – type bool
isReadOnly – type bool
isRequired – type bool
isSearchable – type bool
name – type str
order – type int
revisionInfo – type
RevisionInfotype – type str
about – type
NamedAttribute
-
property
about¶ Property about is of type
NamedAttribute.
-
property
attribute¶ Property attribute is of type
AttributeReference.
-
property
axisName¶ Property axisName is of type str.
-
property
chartable¶ Property chartable is of type bool.
-
property
databaseUnit¶ Property databaseUnit is of type str.
-
property
defaultThreshold¶ Property defaultThreshold is of type str.
-
property
discreteValues¶ Property discreteValues is a str objects. Warning: Do not attempt to edit or append to the returned value.
-
property
identity¶ Property identity is of type int.
-
property
isMeta¶ Property isMeta is of type bool.
-
property
isMultiValued¶ Property isMultiValued is of type bool.
-
property
isReadOnly¶ Property isReadOnly is of type bool.
-
property
isRequired¶ Property isRequired is of type bool.
-
property
isSearchable¶ Property isSearchable is of type bool.
-
property
name¶ Property name is of type str.
-
property
order¶ Property order is of type int.
-
property
revisionInfo¶ Property revisionInfo is of type
RevisionInfo.
-
property
type¶ Property type is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
Constraint¶
-
class
Constraint(parameterValue=None, parameter=None, label=None, _isOwner=True)¶ Bases:
objectConstraint. A constraint on functional data. For requests, both parameter and parameter value are required.
- Parameters
parameterValue – type
ParameterValueparameter – type
ParameterReferencelabel – type str
-
property
label¶ Property label is of type str.
-
property
parameter¶ Property parameter is of type
ParameterReference.
-
property
parameterValue¶ Property parameterValue is of type
ParameterValue.
-
property
c_obj¶ Pointer to the underlying C-object
Constraints¶
-
class
Constraints(constraints=None, _isOwner=True)¶ Bases:
objectConstraints. A container of constraints.
- Parameters
constraints – type list of
Constraintobjects
-
property
constraints¶ Property constraints is a list of
Constraintobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddConstraint(_constraint)¶ Appends _constraint to constraints property on Constraints C-object.
- Parameters
_constraint – object of type Constraint.
-
property
c_obj¶ Pointer to the underlying C-object
ContainsAllSearchValue¶
-
class
ContainsAllSearchValue(values=None, tabularColumn=None, _isOwner=True)¶ Bases:
objectContainsAllSearchValue. Search criterion to search for discrete data types that contain all of the specified search values. If the discrete values of the data include further values, it still passes. This criterion type is specific to discrete attributes.
- Parameters
values – type list of str objects
tabularColumn – type str
-
property
values¶ Property values is of type list of str.
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
AddValue(value)¶ Appends value to values property on ContainsAllSearchValue C-object.
- Parameters
value – object of type Defs.string_types.
-
property
c_obj¶ Pointer to the underlying C-object
ContainsAnySearchValue¶
-
class
ContainsAnySearchValue(values=None, tabularColumn=None, _isOwner=True)¶ Bases:
objectContainsAnySearchValue. Search criterion to search for discrete data types that contain any of the specified search values. This criterion type is specific to discrete attributes.
- Parameters
values – type list of str objects
tabularColumn – type str
-
property
values¶ Property values is of type list of str.
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
AddValue(value)¶ Appends value to values property on ContainsAnySearchValue C-object.
- Parameters
value – object of type Defs.string_types.
-
property
c_obj¶ Pointer to the underlying C-object
ContainsSearchValue¶
-
class
ContainsSearchValue(value=None, tabularColumn=None, _isOwner=True)¶ Bases:
objectContainsSearchValue. Search criterion to search for data that contains the specified search text value. Search criterion applies to text, logical, and discrete attributes. For logicals, specify ‘true’ or ‘false’ as the text.
- Parameters
value – type str
tabularColumn – type str
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
property
value¶ Property value is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
CriteriaSearch¶
-
class
CriteriaSearch(recordFilter=None, searchFilter=None, DBKey=None, searchMode=None, populateGUIDs=None, searchCriteria=None, parameterValues=None, significantFigures=None, _isOwner=True)¶ Bases:
objectCriteriaSearch. The input for the CriteriaSearch operation. Both the DBKey and recordSearchCriterion are required. If no subsets are specified, only the default subset will be searched.
- Parameters
recordFilter – type
RecordFiltersearchFilter – type int
DBKey – type str
searchMode – type int
populateGUIDs – type bool
searchCriteria – type list of
RecordSearchCriterionobjectsparameterValues – type list of
UnittedParameterValueobjectssignificantFigures – type int
-
property
parameterValues¶ Property parameterValues is a list of
UnittedParameterValueobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
searchCriteria¶ Property searchCriteria is a list of
RecordSearchCriterionobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
DBKey¶ Property DBKey is of type str.
-
property
populateGUIDs¶ Property populateGUIDs is of type bool.
-
property
recordFilter¶ Property recordFilter is of type
RecordFilter.
-
property
searchFilter¶ Property searchFilter is of type int. See
GRANTA_Constants.TablesFilterfor supported values.
-
property
searchMode¶ Property searchMode is of type int. See
GRANTA_Constants.SearchModefor supported values.
-
property
significantFigures¶ Property significantFigures is of type int.
-
AddParameterValue(_unittedParameterValue)¶ Appends _unittedParameterValue to parameterValues property on CriteriaSearch C-object.
- Parameters
_unittedParameterValue – object of type UnittedParameterValue.
-
AddSearchCriteria(_recordSearchCriterion)¶ Appends _recordSearchCriterion to searchCriteria property on CriteriaSearch C-object.
- Parameters
_recordSearchCriterion – object of type RecordSearchCriterion.
-
property
c_obj¶ Pointer to the underlying C-object
DataExportService¶
-
class
DataExportService(mi_session)¶ Bases:
GRANTA_MIScriptingToolkit.Service.ServiceThe 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- Returns
-
DataImportService¶
-
class
DataImportService(mi_session)¶ Bases:
GRANTA_MIScriptingToolkit.Service.ServiceThe 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- Returns
SetRecordAttributesResponseobject
-
ModifyRecordLinks(_req)¶ Adds or removes static Links between record(s) in a Granta MI Database.
- Parameters
_req –
ModifyRecordLinksRequestobject- Returns
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- Returns
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- Returns
-
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- Returns
-
DatabaseDetail¶
-
class
DatabaseDetail(DBKey=None, author=None, company=None, volumeName=None, _isOwner=True)¶ Bases:
objectDatabaseDetail. Detailed meta-information about a Granta MI database.
- Parameters
DBKey – type str
author – type str
company – type str
volumeName – type str
Property author is of type str.
-
property
company¶ Property company is of type str.
-
property
DBKey¶ Property DBKey is of type str.
-
property
volumeName¶ Property volumeName is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
DateDataType¶
-
class
DateDataType(value=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueDateDataType. Container of date data. The format is YYYY-MM-DD.
- Parameters
value – type str
isApplicable – type bool
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
value¶ Property value is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
DeleteOrWithdrawIfLatestRecordVersionRequest¶
-
class
DeleteOrWithdrawIfLatestRecordVersionRequest(deleteOrWithdrawRecords=None, _isOwner=True)¶ Bases:
objectDeleteOrWithdrawIfLatestRecordVersionRequest. DeleteOrWithdrawIfLatestRecordVersionRequest. Input for the DeleteOrWithdrawIfLatestRecordVersion operation, containing the
DeleteOrWithdrawRecordobjects.- Parameters
deleteOrWithdrawRecords – type list of
DeleteOrWithdrawRecordobjects
-
property
deleteOrWithdrawRecords¶ Property deleteOrWithdrawRecords is a list of
DeleteOrWithdrawRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddDeleteOrWithdrawRecord(_deleteOrWithdrawRecord)¶ Appends _deleteOrWithdrawRecord to deleteOrWithdrawRecords property on DeleteOrWithdrawIfLatestRecordVersionRequest C-object.
- Parameters
_deleteOrWithdrawRecord – object of type DeleteOrWithdrawRecord.
-
property
c_obj¶ Pointer to the underlying C-object
DeleteOrWithdrawIfLatestRecordVersionResponse¶
-
class
DeleteOrWithdrawIfLatestRecordVersionResponse(c_obj)¶ Bases:
objectDeleteOrWithdrawIfLatestRecordVersionResponse. DeleteOrWithdrawIfLatestRecordVersionResponse. Output of the DeleteOrWithdrawIfLatestRecordVersion operation.
- Parameters
c_obj – ctypes.POINTER to a DeleteOrWithdrawIfLatestRecordVersionResponse object.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
DeleteOrWithdrawRecord¶
-
class
DeleteOrWithdrawRecord(recordReference=None, _isOwner=True)¶ Bases:
objectDeleteOrWithdrawRecord. Record to be deleted or withdrawn. Contains a
RecordReference.- Parameters
recordReference – type
RecordReference
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
DiscreteDataType¶
-
class
DiscreteDataType(discreteValues=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueDiscreteDataType. Container of discrete data.
- Parameters
discreteValues – type list of
DiscreteValueobjectsisApplicable – type bool
-
property
discreteValues¶ Property discreteValues is a list of
DiscreteValueobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
isApplicable¶ Property isApplicable is of type bool.
-
AddDiscreteValue(_discreteValue)¶ Appends _discreteValue to discreteValues property on DiscreteDataType C-object.
- Parameters
_discreteValue – object of type DiscreteValue.
-
property
c_obj¶ Pointer to the underlying C-object
DiscreteValue¶
-
class
DiscreteValue(order=None, value=None, _isOwner=True)¶ Bases:
objectDiscreteValue. The value of a discrete data type. Contains an order and a value.
- Parameters
order – type int
value – type str
-
property
order¶ Property order is of type int.
-
property
value¶ Property value is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
DoesNotContainSearchValue¶
-
class
DoesNotContainSearchValue(value=None, tabularColumn=None, _isOwner=True)¶ Bases:
objectDoesNotContainSearchValue. Search criterion to search for discrete data types that contain none of the specified search values. This criterion type is specific to discrete attributes.
- Parameters
value – type str
tabularColumn – type str
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
property
value¶ Property value is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
DoesNotExistSearchValue¶
-
class
DoesNotExistSearchValue(tabularColumn=None, _isOwner=True)¶ Bases:
objectDoesNotExistSearchValue. Search criterion to search for attributes with no data. All attribute types supported.
- Parameters
tabularColumn – type str
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
EngineeringDataService¶
-
class
EngineeringDataService(mi_session)¶ Bases:
GRANTA_MIScriptingToolkit.Service.ServiceThe 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- Returns
-
ExportRecordData(_req)¶ Performs an FEA Export and returns the result as the response.
- Parameters
_req –
ExportRecordDataRequestobject- Returns
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- Returns
-
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- Returns
ExportersForRecordsResponseobject
-
EnsureRecordFolderPathsRequest¶
-
class
EnsureRecordFolderPathsRequest(folderPaths=None, importErrorMode=None, _isOwner=True)¶ Bases:
objectEnsureRecordFolderPathsRequest. Input for the EnsureRecordFolderPaths operation, containing the folder paths to check and the import error mode.
- Parameters
folderPaths – type list of
RecordFolderPathobjectsimportErrorMode – type str
-
property
folderPaths¶ Property folderPaths is a list of
RecordFolderPathobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
importErrorMode¶ Property importErrorMode is of type str.
-
AddFolderPath(_recordFolderPath)¶ Appends _recordFolderPath to folderPaths property on EnsureRecordFolderPathsRequest C-object.
- Parameters
_recordFolderPath – object of type RecordFolderPath.
-
property
c_obj¶ Pointer to the underlying C-object
EnsureRecordFolderPathsResponse¶
-
class
EnsureRecordFolderPathsResponse(c_obj)¶ Bases:
objectEnsureRecordFolderPathsResponse. Output of the EnsureRecordFolderPaths operation.
- Parameters
c_obj – ctypes.POINTER to a EnsureRecordFolderPathsResponse object.
-
property
pathLeaves¶ Property pathLeaves is a list of
PathLeafobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
ExactlySearchValue¶
-
class
ExactlySearchValue(value=None, tabularColumn=None, _isOwner=True)¶ Bases:
objectExactlySearchValue. Search criterion to search for integer values which exactly match the specifed search value. Applies to integer attributes only.
- Parameters
value – type int
tabularColumn – type str
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
property
value¶ Property value is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
ExistsSearchValue¶
-
class
ExistsSearchValue(tabularColumn=None, _isOwner=True)¶ Bases:
objectExistsSearchValue. Search criterion to search for attributes which contain data. All attribute types supported.
- Parameters
tabularColumn – type str
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
ExportRecordDataRequest¶
-
class
ExportRecordDataRequest(sigFigs=None, exporterKey=None, stopBeforeId=None, parameterValues=None, stopBeforeIndex=None, attributeReferences=None, filter=None, records=None, unitConversionContext=None, _isOwner=True)¶ Bases:
objectExportRecordDataRequest. 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
sigFigs – type int
exporterKey – type str
stopBeforeId – type str
parameterValues – type list of
UnittedParameterValueobjectsstopBeforeIndex – type int
attributeReferences – type list of
AttributeReferenceobjectsfilter – type
RecordFilterrecords – type list of
RecordReferenceobjectsunitConversionContext – type
UnitConversionContext
-
property
attributeReferences¶ Property attributeReferences is a list of
AttributeReferenceobjects. If this property is not specified, the attributes from the exporter configuration are used. If this element is included and non-empty, the attributes specified are used. Warning: Do not attempt to edit or append to the returned value.
-
property
parameterValues¶ Property parameterValues is a list of
UnittedParameterValueobjects. Parameter values to use for any parameterised Data in the export. Each Parameter can only have one value for all parameterised Attributes in an export. Note that the true Parameter names (or Standard Names) in the MI Database must be used; aliases defined in the exporter configuration will not be understood. Warning: Do not attempt to edit or append to the returned value.
-
property
records¶ Property records is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
exporterKey¶ Property exporterKey is of type str.
-
property
filter¶ Property filter is of type
RecordFilter. If specified, this filters the records that can be included when traversing record links within Tabular Data. This filter is NOT applied to the explicit list of records passed to this operation.
-
property
sigFigs¶ Property sigFigs is of type int.
-
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.
-
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.
-
property
unitConversionContext¶ Property unitConversionContext is of type
UnitConversionContext.
-
AddAttributeReference(_attributeReference)¶ Appends _attributeReference to attributeReferences property on ExportRecordDataRequest C-object.
- Parameters
_attributeReference – object of type AttributeReference.
-
AddParameterValues(_unittedParameterValue)¶ Appends _unittedParameterValue to parameterValues property on ExportRecordDataRequest C-object.
- Parameters
_unittedParameterValue – object of type UnittedParameterValue.
-
AddRecord(_recordReference)¶ Appends _recordReference to records property on ExportRecordDataRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
ExportRecordDataResponse¶
-
class
ExportRecordDataResponse(c_obj)¶ Bases:
objectExportRecordDataResponse. Output for the ExportRecordData operation.
- Parameters
c_obj – ctypes.POINTER to a ExportRecordDataResponse object.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
text¶ Property text is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
ExportedAttribute¶
-
class
ExportedAttribute(DBKey=None, attributeID=None, isStandardName=None, name=None, partialTableReference=None, preferredXAxisParameter=None, pseudoAttribute=None, specificUnitConversionContext=None, _isOwner=True)¶ Bases:
objectExportedAttribute. A type that allows identification of a particular attribute in a Granta MI, and also specifies how that Attribute should be exported.
- Parameters
DBKey – type str
attributeID – type int
isStandardName – type bool
name – type str
partialTableReference – type
PartialTableReferencepreferredXAxisParameter – type
ParameterReferencepseudoAttribute – type int
specificUnitConversionContext – type
SpecificUnitConversionContext
-
property
attributeID¶ Property attributeID is of type int.
-
property
DBKey¶ Property DBKey is of type str.
-
property
isStandardName¶ Property isStandardName is of type bool.
-
property
name¶ Property name is of type str.
-
property
partialTableReference¶ Property partialTableReference is of type
PartialTableReference.
-
property
preferredXAxisParameter¶ Property preferredXAxisParameter is of type
ParameterReference.
-
property
specificUnitConversionContext¶ Property specificUnitConversionContext is of type
SpecificUnitConversionContext.
-
property
pseudoAttribute¶ Property pseudoAttribute is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
Exporter¶
-
class
Exporter(name=None, package=None, validatedOk=None, version=None, transforms=None, key=None, model=None, description=None, absoluteUnitsOptional=None, unitSystems=None, useAbsoluteUnits=None, outputFile=None, _isOwner=True)¶ Bases:
objectExporter. Details of a particular FEA Exporter configuration, typically obtained from an Exporter Configuration File (EXP file) on the MI Server.
- Parameters
name – type str
package – type str
validatedOk – type bool
version – type int
transforms – type list of
ExporterTransformobjectskey – type str
model – type str
description – type str
absoluteUnitsOptional – type bool
unitSystems – type list of str objects
useAbsoluteUnits – type bool
outputFile – type
ExporterOutputFile
-
property
absoluteUnitsOptional¶ Property absoluteUnitsOptional is of type bool.
-
property
description¶ Property description is of 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.
-
property
model¶ Property model is of type str.
-
property
name¶ Property name is of type str.
-
property
transforms¶ Property transforms is a list of
ExporterTransformobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
unitSystems¶ Property unitSystems is a list of str objects. Warning: Do not attempt to edit or append to the returned value.
-
property
outputFile¶ Property outputFile is of type
ExporterOutputFile.
-
property
package¶ Property package is of type str.
-
property
useAbsoluteUnits¶ Property useAbsoluteUnits is of type bool.
-
property
validatedOk¶ Property validatedOk is of type bool.
-
property
version¶ Property version is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
ExporterParameter¶
-
class
ExporterParameter(usage=None, parameterReference=None, Id=None, unit=None, name=None, _isOwner=True)¶ Bases:
objectExporterParameter. Information about a Parameter of Functional Data.
- Parameters
usage – type int
parameterReference – type
ParameterReferenceId – type str
unit – type
UnitInformationname – type str
-
property
Id¶ Property Id is of type str.
-
property
name¶ Property name is of type str.
-
property
parameterReference¶ Property parameterReference is of type
ParameterReference.
-
property
unit¶ Property unit is of type
UnitInformation.
-
property
usage¶ Property usage is of type int. See
ExporterParameter.Usagefor supported values.
-
property
c_obj¶ Pointer to the underlying C-object
ExporterPopulation¶
-
class
ExporterPopulation(description=None, package=None, validatedOk=None, name=None, version=None, transforms=None, key=None, model=None, populationState=None, _isOwner=True)¶ Bases:
objectExporterPopulation. Details of a particular FEA
Exporterconfiguration, typically obtained from anExporterConfiguration File (EXP file) on the MI Server.- Parameters
description – type str
package – type str
validatedOk – type bool
name – type str
version – type int
transforms – type list of
ExporterTransformobjectskey – type str
model – type str
populationState – type int
-
property
description¶ Property description is of type str.
-
property
key¶ Property key is of type str.
-
property
model¶ Property model is of type str.
-
property
name¶ Property name is of type str.
-
property
transforms¶ Property transforms is a list of
ExporterTransformobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
package¶ Property package is of type str.
-
property
populationState¶ Property populationState is of type int. See
ExporterPopulation.PopulationStatefor supported values.
-
property
validatedOk¶ Property validatedOk is of type bool.
-
property
version¶ Property version is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
ExporterTransform¶
-
class
ExporterTransform(type=None, Id=None, _isOwner=True)¶ Bases:
objectExporterTransform. Contains a type and an ID for an
ExporterTransform- Parameters
type – type int
Id – type str
-
property
Id¶ Property Id is of type str.
-
property
type¶ Property type is of type int. See
ExporterTransform.Typefor supported values.
-
property
c_obj¶ Pointer to the underlying C-object
ExportersForRecord¶
-
class
ExportersForRecord(record=None, exporters=None, _isOwner=True)¶ Bases:
objectExportersForRecord. A type to contain a record and its associated exporters.
- Parameters
record – type
RecordReferenceexporters – type list of
ExporterPopulationobjects
-
property
exporters¶ Property exporters is a
ExporterPopulationobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
record¶ Property record is of type
RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
ExportersForRecordsRequest¶
-
class
ExportersForRecordsRequest(specificAttributeExportersOnly=None, package=None, packageAndModelRequired=None, versionPolicy=None, records=None, model=None, applicabilityTag=None, _isOwner=True)¶ Bases:
objectExportersForRecordsRequest. Input for the ExportersForRecords operation.
- Parameters
specificAttributeExportersOnly – type bool
package – type str
packageAndModelRequired – type bool
versionPolicy – type int
records – type list of
RecordReferenceobjectsmodel – type str
applicabilityTag – type str
-
property
records¶ Property records is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
applicabilityTag¶ Property applicabilityTag is of type str.
-
property
model¶ Property model is of type str.
-
property
package¶ Property package is of type str.
-
property
packageAndModelRequired¶ Property packageAndModelRequired is of type bool.
-
property
specificAttributeExportersOnly¶ Property specificAttributeExportersOnly is of type bool.
-
property
versionPolicy¶ Property versionPolicy is of type int. See
GRANTA_Constants.VersionPolicyfor supported values.
-
AddRecord(_recordReference)¶ Appends _recordReference to records property on ExportersForRecordsRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
ExportersForRecordsResponse¶
-
class
ExportersForRecordsResponse(c_obj)¶ Bases:
objectExportersForRecordsResponse. Output from the ExportersForRecords operation. Contains a list of records and supported exporters.
- Parameters
c_obj – ctypes.POINTER to a ExportersForRecordsResponse object.
-
property
records¶ Property records is a list of
ExportersForRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
FileDataType¶
-
class
FileDataType(URL=None, contentType=None, data=None, description=None, fileName=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueFileDataType. 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 sepcified, 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
URL – type str
contentType – type str
data – type str
description – type str
fileName – type str
isApplicable – type bool
-
ModifyBinaryData(binaryData)¶ Modify the byte string data of the file.
- Parameters
len - (*) –
-
ReadBinaryData()¶ Return a byte string representation of this file.
-
property
contentType¶ Property contentType is of type str.
-
property
data¶ Property data is of type str.
-
property
description¶ Property description is of type str.
-
property
fileName¶ Property fileName is of type str.
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
URL¶ Property URL is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
FloatFunctionalGraph¶
-
class
FloatFunctionalGraph(series=None, hideGraph=None, logarithmicYAxis=None, _isOwner=True)¶ Bases:
objectFloatFunctionalGraph. A type to contain a collection of series which contain the data functional data.
- Parameters
series – type list of
SeriesobjectshideGraph – type bool
logarithmicYAxis – type bool
-
property
series¶ Property series is a list of
Seriesobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
hideGraph¶ Property hideGraph is of type bool.
-
property
logarithmicYAxis¶ Property logarithmicYAxis is of type bool.
-
AddSeries(_series)¶ Appends _series to series property on FloatFunctionalGraph C-object.
- Parameters
_series – object of type Series.
-
property
c_obj¶ Pointer to the underlying C-object
FloatFunctionalGriddedDataType¶
-
class
FloatFunctionalGriddedDataType(decoration=None, defaultXAxisParameter=None, values=None, parameters=None, unitInformation=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueFloatFunctionalGriddedDataType. A type to contain the values of float-valued functional gridded data. For requests, Values and
Parametersare required.- Parameters
decoration – type int
defaultXAxisParameter – type
ParameterInformationvalues – type
FloatFunctionalValuesparameters – type
ParametersunitInformation – type
UnitInformationisApplicable – type bool
-
property
decoration¶ Property decoration is of type int. See
GRANTA_Constants.GraphDecorationfor supported values.
-
property
defaultXAxisParameter¶ Property defaultXAxisParameter is of type
ParameterInformation.
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
parameters¶ Property parameters is of type
Parameters.
-
property
unitInformation¶ Property unitInformation is of type
UnitInformation.
-
property
values¶ Property values is of type
FloatFunctionalValues.
-
property
c_obj¶ Pointer to the underlying C-object
FloatFunctionalPointValue¶
-
class
FloatFunctionalPointValue(estimated=None, value=None, constraints=None, _isOwner=True)¶ Bases:
objectFloatFunctionalPointValue. A single grid point in Gridded Float-Valued Functional Data, where the Y-axis value is a point
- Parameters
estimated – type bool
value – type float
constraints – type
Constraints
-
property
constraints¶ Property constraints is of type
Constraints.
-
property
estimated¶ Property estimated is of type bool.
-
property
value¶ Property value is of type float.
-
property
c_obj¶ Pointer to the underlying C-object
FloatFunctionalRangeValue¶
-
class
FloatFunctionalRangeValue(lowValue=None, estimated=None, highValue=None, constraints=None, _isOwner=True)¶ Bases:
objectFloatFunctionalRangeValue. A single grid point in Gridded Float-Valued Functional Data, where the Y-axis value is a range.
- Parameters
lowValue – type float
estimated – type bool
highValue – type float
constraints – type
Constraints
-
property
constraints¶ Property constraints is of type
Constraints.
-
property
estimated¶ Property estimated is of type bool.
-
property
highValue¶ Property highValue is of type float.
-
property
lowValue¶ Property lowValue is of type float.
-
property
c_obj¶ Pointer to the underlying C-object
FloatFunctionalSeriesDataType¶
-
class
FloatFunctionalSeriesDataType(graph=None, parameters=None, unitInformation=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueFloatFunctionalSeriesDataType. A type to contain the values of float-valued functional series data. For requests Graph, and
Parametersare required.- Parameters
graph – type
FloatFunctionalSeriesGraphparameters – type
ParametersunitInformation – type
UnitInformationisApplicable – type bool
-
property
graph¶ Property graph is of type
FloatFunctionalSeriesGraph.
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
parameters¶ Property parameters is of type
Parameters.
-
property
unitInformation¶ Property unitInformation is of type
UnitInformation.
-
property
c_obj¶ Pointer to the underlying C-object
FloatFunctionalSeriesGraph¶
-
class
FloatFunctionalSeriesGraph(series=None, XAxisParameter=None, hideGraph=None, logarithmicYAxis=None, _isOwner=True)¶ Bases:
objectFloatFunctionalSeriesGraph. A type a collection of series which contain the data functional data and parameter information for the graph x-axis. For requests an XAxisParameter is required.
- Parameters
series – type list of
SeriesobjectsXAxisParameter – type
ParameterInformationhideGraph – type bool
logarithmicYAxis – type bool
-
property
series¶ Property series is a list of
Seriesobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
hideGraph¶ Property hideGraph is of type bool.
-
property
logarithmicYAxis¶ Property logarithmicYAxis is of type bool.
-
property
XAxisParameter¶ Property XAxisParameter is of type
ParameterInformation.
-
AddSeries(_series)¶ Appends _series to series property on FloatFunctionalSeriesGraph C-object.
- Parameters
_series – object of type Series.
-
property
c_obj¶ Pointer to the underlying C-object
FloatFunctionalValues¶
-
class
FloatFunctionalValues(valueType=None, rangeValues=None, pointValues=None, _isOwner=True)¶ Bases:
objectFloatFunctionalValues. A collection of
FloatFunctionalPointValueandFloatFunctionalRangeValueobjects.- Parameters
valueType – type str
rangeValues – type list of
FloatFunctionalRangeValueobjectspointValues – type list of
FloatFunctionalPointValueobjects
-
property
pointValues¶ Property pointValues is a list of
FloatFunctionalPointValueobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
rangeValues¶ Property rangeValues is a list of
FloatFunctionalRangeValueobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
valueType¶ Property valueType is of type str.
-
AddPointValue(_floatFunctionalPointValue)¶ Appends _floatFunctionalPointValue to pointValues property on FloatFunctionalValues C-object.
- Parameters
_floatFunctionalPointValue – object of type FloatFunctionalPointValue.
-
AddRangeValue(_floatFunctionalRangeValue)¶ Appends _floatFunctionalRangeValue to rangeValues property on FloatFunctionalValues C-object.
- Parameters
_floatFunctionalRangeValue – object of type FloatFunctionalRangeValue.
-
property
c_obj¶ Pointer to the underlying C-object
FunctionalDataSettings¶
-
class
FunctionalDataSettings(convertGridToSeries=None, maxSeries=None, _isOwner=True)¶ Bases:
objectFunctionalDataSettings. Settings affecting the export of Functional Data. If convertGridToSeries is true, gridded Functional Data will be converted to series data, allowing you to avoid the need to deal with the gridded data format.
- Parameters
convertGridToSeries – type bool
maxSeries – type int
-
property
convertGridToSeries¶ Property convertGridToSeries is of type bool.
-
property
maxSeries¶ Property maxSeries is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
GRANTA_Constants¶
-
class
GRANTA_Constants¶ Bases:
object-
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
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'¶
-
-
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'¶
-
class
GRANTA_Exceptions¶
-
exception
GRANTA_Exception(expr, msg)¶ Bases:
ExceptionException raised when there are errors in input.
- Parameters
expr – input expression in which the error occurred
msg – explanation of the error
-
exception
GRANTA_ServiceLayerError(slResponse, operation)¶ Bases:
ExceptionException raised when the Granta MI Service Layer returns an error.
- Parameters
slResponse – type
ServiceLayerResponse, request data causing this erroroperation – a string that identifies the operation from which this exception originated
- Variables
responseXML (str) – the XML from the response from Granta MI
message (str) – error string extracted from responseXML
responseCode (responseCode) – HTTP response code associated with this error
data (str) – request data causing this error
GRANTA_Logging¶
GRANTA_MISession¶
-
class
GRANTA_MISession(url, username=None, password=None, domain=None, verbosity='ERROR', autoLogon=False, receiveTimeout=300000, authorization=None)¶ Bases:
objectThe 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 – URL of your Granta MI Service Layer installation
username – Your Granta MI username (for Basic authentication)
password – Your Granta MI password (for Basic authentication)
domain – Your Granta MI user domain (for Basic authentication)
verbosity – Logging verbosity; accepted values are “ERROR”, “WARNING”, or “DEBUG”
autoLogon – If set to True, this object will authenticate as the current Windows user
receiveTimeout – Time in milliseconds to wait for a response before timing out
authorization –
OIDCobject (for OpenID Connect authentication)
-
TestConnection()¶ Raises a GRANTA_Exception if connection cannot be made - eg bad credentials or unreachable Granta MI Service Layer URL
-
property
browseService¶ Property browseService is of type
BrowseService
-
property
searchService¶ Property searchService is of type
SearchService
-
property
dataExportService¶ Property dataExportService is of type
DataExportService
-
property
dataImportService¶ Property dataImportService is of type
DataImportService
-
property
engineeringDataService¶ Property engineeringDataServiceis of type
EngineeringDataService
GetAssociatedRecordsRequest¶
-
class
GetAssociatedRecordsRequest(attributeReferences=None, linkDirection=None, populateGUIDs=None, recordFilter=None, recordReferences=None, tableReference=None, _isOwner=True)¶ Bases:
objectGetAssociatedRecordsRequest. Input for the GetAssociatedRecords operation.
- Parameters
attributeReferences – type list of
AttributeReferenceobjectslinkDirection – type int
populateGUIDs – type bool
recordFilter – type
RecordFilterrecordReferences – type list of
RecordReferenceobjectstableReference – type
TableReference
-
property
attributeReferences¶ Property attributeReferences is a list of
AttributeReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
recordReferences¶ Property recordReferences is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
linkDirection¶ Property linkDirection is of type int.
-
property
populateGUIDs¶ Property populateGUIDs is of type bool.
-
property
recordFilter¶ Property recordFilter is of type
RecordFilter.
-
property
tableReference¶ Property tableReference is of type
TableReference.
-
AddAttributeReference(_attributeReference)¶ Appends _attributeReference to attributeReferences property on GetAssociatedRecordsRequest C-object.
- Parameters
_attributeReference – object of type AttributeReference.
-
AddRecordReference(_recordReference)¶ Appends _recordReference to recordReferences property on GetAssociatedRecordsRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetAssociatedRecordsResponse¶
-
class
GetAssociatedRecordsResponse(c_obj)¶ Bases:
objectGetAssociatedRecordsResponse. Output from the GetAssociatedRecords operation. An array of
AssociatedRecordsobjects.- Parameters
c_obj – ctypes.POINTER to a GetAssociatedRecordsResponse object.
-
property
associatedRecords¶ Property associatedRecords is a list of
AssociatedRecordsobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddAssociatedRecords(_associatedRecords)¶ Appends _associatedRecords to associatedRecords property on GetAssociatedRecordsResponse C-object.
- Parameters
_associatedRecords – object of type AssociatedRecords.
-
property
c_obj¶ Pointer to the underlying C-object
GetAttributeDetailsRequest¶
-
class
GetAttributeDetailsRequest(attributeReferences=None, minMaxCalculation=None, _isOwner=True)¶ Bases:
objectGetAttributeDetailsRequest. Input for the GetAttributeDetails operation. For requests at least one
AttributeReferenceis required.- Parameters
attributeReferences – type list of
AttributeReferenceobjectsminMaxCalculation – type int
-
property
attributeReferences¶ Property attributeReferences is a list of
AttributeReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
minMaxCalculation¶ Property minMaxCalculation is of type int.
-
AddAttributeReference(_attributeReference)¶ Appends _attributeReference to attributeReferences property on GetAttributeDetailsRequest C-object.
- Parameters
_attributeReference – object of type AttributeReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetAttributeDetailsResponse¶
-
class
GetAttributeDetailsResponse(c_obj)¶ Bases:
objectGetAttributeDetailsResponse. Output from the GetAttributeDetails operation. Includes an array of
AttributeDetailobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetAttributeDetailsResponse object.
-
property
attributeDetails¶ Property attributeDetails is a list of
AttributeDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddAttributeDetails(_attributeDetail)¶ Appends _attributeDetail to attributeDetails property on GetAttributeDetailsResponse C-object.
- Parameters
_attributeDetail – object of type AttributeDetail.
-
property
c_obj¶ Pointer to the underlying C-object
GetAttributeParametersRequest¶
-
class
GetAttributeParametersRequest(attributeReferences=None, _isOwner=True)¶ Bases:
objectGetAttributeParametersRequest. Input for the GetAttributeParameters operation. For requests, at least one
AttributeReferenceis required.- Parameters
attributeReferences – type list of
AttributeReferenceobjects
-
property
attributeReferences¶ Property attributeReferences is a list of
AttributeReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddAttributeReference(_attributeReference)¶ Appends _attributeReference to attributeReferences property on GetAttributeParametersRequest C-object.
- Parameters
_attributeReference – object of type AttributeReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetAttributeParametersResponse¶
-
class
GetAttributeParametersResponse(c_obj)¶ Bases:
objectGetAttributeParametersResponse. Output from the GetAttributeParameters operation. Includes an array of
ParameterDetailobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetAttributeParametersResponse object.
-
property
attributeParameters¶ Property attributeParameters is a
ParameterDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetAvailableExportersRequest¶
-
class
GetAvailableExportersRequest(package=None, partialTableReference=None, DBKey=None, versionPolicy=None, applicabilityTag=None, model=None, matchDB=None, _isOwner=True)¶ Bases:
objectGetAvailableExportersRequest. Input for the GetAvailableExporters operation.
- Parameters
package – type str
partialTableReference – type
PartialTableReferenceDBKey – type str
versionPolicy – type int
applicabilityTag – type str
model – type str
matchDB – type bool
-
property
applicabilityTag¶ Property applicabilityTag is of type str.
-
property
DBKey¶ Property DBKey is of type str.
-
property
matchDB¶ Property matchDB is of type bool. If true, we check that the exporter config Table element is in a Database element for the right dbKey.
-
property
model¶ Property model is of type str.
-
property
package¶ Property package is of type str.
-
property
partialTableReference¶ Property partialTableReference is of type
PartialTableReference.
-
property
versionPolicy¶ Property versionPolicy is of type int. See
GRANTA_Constants.VersionPolicyfor supported values.
-
property
c_obj¶ Pointer to the underlying C-object
GetAvailableExportersResponse¶
-
class
GetAvailableExportersResponse(c_obj)¶ Bases:
objectGetAvailableExportersResponse. Output from the GetAvailableExporters operation. Contains a list of exporters.
- Parameters
c_obj – ctypes.POINTER to a GetAvailableExportersResponse object.
-
property
exporters¶ Property exporters is a
Exporterobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetChildNodes¶
-
class
GetChildNodes(recordFilter=None, recurse=None, populateGUIDs=None, parent=None, recurseMaxDepth=None, _isOwner=True)¶ Bases:
objectGetChildNodes. Input for the GetChildNodes operation. A
RecordReferencefor the record you wish to find the children of is required.- Parameters
recordFilter – type
RecordFilterrecurse – type bool
populateGUIDs – type bool
parent – type
RecordReferencerecurseMaxDepth – type int
-
property
parent¶ Property parent is of type
RecordReference.
-
property
populateGUIDs¶ Property populateGUIDs is of type bool.
-
property
recordFilter¶ Property recordFilter is of type
RecordFilter.
-
property
recurse¶ Property recurse is of type bool.
-
property
recurseMaxDepth¶ Property recurseMaxDepth is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
GetChildNodesResponse¶
-
class
GetChildNodesResponse(c_obj)¶ Bases:
objectGetChildNodesResponse. Response for the
GetChildNodesoperation. Includes an array ofTreeRecordobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetChildNodesResponse object.
-
property
treeRecords¶ Property treeRecords is a list of
TreeRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddTreeRecord(_treeRecord)¶ Appends _treeRecord to treeRecords property on GetChildNodesResponse C-object.
- Parameters
_treeRecord – object of type TreeRecord.
-
property
c_obj¶ Pointer to the underlying C-object
GetDatabaseParameters¶
-
class
GetDatabaseParameters(DBKey=None, requireStandardNames=None, useStandardNamesWherePossible=None, _isOwner=True)¶ Bases:
objectGetDatabaseParameters. Input for the GetDatabaseParameters operation. Requires a DBKey to be set. The parameters requireStandardNames and useStandardNamesWherePossible both default to false.
- Parameters
DBKey – type str
requireStandardNames – type bool
useStandardNamesWherePossible – type bool
-
property
DBKey¶ Property DBKey is of type str.
-
property
requireStandardNames¶ Property requireStandardNames is of type bool.
-
property
useStandardNamesWherePossible¶ Property useStandardNamesWherePossible is of type bool.
-
property
c_obj¶ Pointer to the underlying C-object
GetDatabaseParametersResponse¶
-
class
GetDatabaseParametersResponse(c_obj)¶ Bases:
objectGetDatabaseParametersResponse. Output from the GetDatabaseParametersResponse operation. Includes an array of
ParameterDetailobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetDatabaseParametersResponse object.
-
property
parameterDetails¶ Property parameterDetails is a list of
ParameterDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddParameterDetail(_parameterDetail)¶ Appends _parameterDetail to parameterDetails property on GetDatabaseParametersResponse C-object.
- Parameters
_parameterDetail – object of type ParameterDetail.
-
property
c_obj¶ Pointer to the underlying C-object
GetDatabasesResponse¶
-
class
GetDatabasesResponse(c_obj)¶ Bases:
objectGetDatabasesResponse. Output from the GetDatabases operation. Includes an array of
MIDatabaseobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetDatabasesResponse object.
-
property
databases¶ Property databases is a list of
MIDatabaseobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddDatabase(_MIDatabase)¶ Appends _MIDatabase to databases property on GetDatabasesResponse C-object.
- Parameters
_MIDatabase – object of type MIDatabase.
-
property
c_obj¶ Pointer to the underlying C-object
GetExporterParametersRequest¶
-
class
GetExporterParametersRequest(records=None, exporterKey=None, populateGUIDs=None, unitConversionContext=None, _isOwner=True)¶ Bases:
objectGetExporterParametersRequest. Input for the GetExporterParameters operation.
- Parameters
records – type list of
RecordReferenceobjectsexporterKey – type str
populateGUIDs – type bool
unitConversionContext – type
UnitConversionContext
-
property
records¶ Property records is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
exporterKey¶ Property exporterKey is of type str.
-
property
populateGUIDs¶ Property populateGUIDs is of type bool.
-
property
unitConversionContext¶ Property unitConversionContext is of type
UnitConversionContext.
-
AddRecord(_recordReference)¶ Appends _recordReference to records property on GetExporterParametersRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetExporterParametersResponse¶
-
class
GetExporterParametersResponse(c_obj)¶ Bases:
objectGetExporterParametersResponse. Output from the GetExporterParameters operation. Contains a list of records and details for exporting their attributes.
- Parameters
c_obj – ctypes.POINTER to a GetExporterParametersResponse object.
-
property
records¶ Property records is a list of
RecordExporterParametersobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetIntegrationProfiles¶
-
class
GetIntegrationProfiles(databases=None, depth=None, _isOwner=True)¶ Bases:
objectGetIntegrationProfiles. Input for the GetIntegrationProfiles operation.
- Parameters
databases – type list of str objects
depth – type int
-
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.
-
AddDatabase(value)¶ Appends value to databases property on GetIntegrationProfiles C-object.
- Parameters
value – object of type Defs.string_types.
-
property
c_obj¶ Pointer to the underlying C-object
GetIntegrationProfilesResponse¶
-
class
GetIntegrationProfilesResponse(c_obj)¶ Bases:
objectGetIntegrationProfilesResponse. Output from
GetIntegrationProfilesoperation. Includes an array ofIntegrationProfileDetailobjects and a ServiceLayerResponse- Parameters
c_obj – ctypes.POINTER to a GetIntegrationProfilesResponse object.
-
property
profileDetails¶ Property profileDetails is a list of
IntegrationProfileDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetLayouts¶
-
class
GetLayouts(layouts=None, table=None, applicabilityTag=None, minMaxCalculation=None, _isOwner=True)¶ Bases:
objectGetLayouts. Input for the GetLayouts operation. Includes a table reference or list of layouts to retrieve.
- Parameters
layouts – type list of
LayoutReferenceobjectstable – type
TableReferenceapplicabilityTag – type str
minMaxCalculation – type int
-
property
layouts¶ Property layouts is a list of
LayoutReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
table¶ Property table is of type
TableReference.
-
property
applicabilityTag¶ Property applicabilityTag is of type str.
-
property
minMaxCalculation¶ Property minMaxCalculation is of type int.
-
AddLayout(_layoutReference)¶ Appends _layoutReference to layouts property on GetLayouts C-object.
- Parameters
_layoutReference – object of type LayoutReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetLayoutsResponse¶
-
class
GetLayoutsResponse(c_obj)¶ Bases:
objectGetLayoutsResponse. Output from the
GetLayoutsoperation. Includes a list of layouts retrieved.- Parameters
c_obj – ctypes.POINTER to a GetLayoutsResponse object.
-
property
layoutDetails¶ Property layoutDetails is a list of
LayoutDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddLayoutDetail(_layoutDetail)¶ Appends _layoutDetail to layoutDetails property on GetLayoutsResponse C-object.
- Parameters
_layoutDetail – object of type LayoutDetail.
-
property
c_obj¶ Pointer to the underlying C-object
GetLinkedRecordsRequest¶
-
class
GetLinkedRecordsRequest(recordReferences=None, recordLinkGroups=None, populateGUIDs=None, recordFilter=None, directLinksOnly=None, _isOwner=True)¶ Bases:
objectGetLinkedRecordsRequest. Input for the GetLinkedRecords operation.
- Parameters
recordReferences – type list of
RecordReferenceobjectsrecordLinkGroups – type list of
RecordLinkGroupReferenceobjectspopulateGUIDs – type bool
recordFilter – type
RecordFilterdirectLinksOnly – type bool
-
property
recordLinkGroups¶ Property recordLinkGroups is a list of
RecordLinkGroupReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
recordReferences¶ Property recordReferences is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
directLinksOnly¶ Property directLinksOnly is of type bool.
-
property
populateGUIDs¶ Property populateGUIDs is of type bool.
-
property
recordFilter¶ Property recordFilter is of type
RecordFilter.
-
AddRecordLinkGroup(_recordLinkGroupReference)¶ Appends _recordLinkGroupReference to recordLinkGroups property on GetLinkedRecordsRequest C-object.
- Parameters
_recordLinkGroupReference – object of type RecordLinkGroupReference.
-
AddRecordReference(_recordReference)¶ Appends _recordReference to recordReferences property on GetLinkedRecordsRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetLinkedRecordsResponse¶
-
class
GetLinkedRecordsResponse(c_obj)¶ Bases:
objectGetLinkedRecordsResponse. Output from the GetLinkedRecords operation. Includes an array of
SourceRecordobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetLinkedRecordsResponse object.
-
property
sourceRecords¶ Property sourceRecords is a list of
SourceRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetMetaAttributesRequest¶
-
class
GetMetaAttributesRequest(attributeReferences=None, _isOwner=True)¶ Bases:
objectGetMetaAttributesRequest. Input for the GetMetaAttributesRequest operation.
- Parameters
attributeReferences – type list of
AttributeReferenceobjects
-
property
attributeReferences¶ Property attributeReferences is a list of
AttributeReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddAttributeReference(_attributeReference)¶ Appends _attributeReference to attributeReferences property on GetMetaAttributesRequest C-object.
- Parameters
_attributeReference – object of type AttributeReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetMetaAttributesResponse¶
-
class
GetMetaAttributesResponse(c_obj)¶ Bases:
objectGetMetaAttributesResponse. Output from the GetMetaAttributes operation. Includes an array of
AttributeMetaAttributesobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetMetaAttributesResponse object.
-
property
attributes¶ Property attributes is a
AttributeMetaAttributesobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetParameterDetailsRequest¶
-
class
GetParameterDetailsRequest(attribute=None, parameterReferences=None, recordReference=None, _isOwner=True)¶ Bases:
objectGetParameterDetailsRequest. Input for the GetParameterDetails operation.
- Parameters
attribute – type
AttributeReferenceparameterReferences – type list of
ParameterReferenceobjectsrecordReference – type
RecordReference
-
property
parameterReferences¶ Property parameterReferences is a list of
ParameterReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
attribute¶ Property attribute is of type
AttributeReference.
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
AddParameterReference(_parameterReference)¶ Appends _parameterReference to parameterReferences property on GetParameterDetailsRequest C-object.
- Parameters
_parameterReference – object of type ParameterReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetParameterDetailsResponse¶
-
class
GetParameterDetailsResponse(c_obj)¶ Bases:
objectGetParameterDetailsResponse. Output from the GetParameterDetails operation. Includes an array of
ParameterDetailobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetParameterDetailsResponse object.
-
property
attributeParameters¶ Property attributeParameters is a
ParameterDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetRecordAttributesByRefRequest¶
-
class
GetRecordAttributesByRefRequest(recordFilter=None, useFallback=None, attributeReferences=None, populateGUIDs=None, unitConversionContext=None, recordReferences=None, exportedAttributes=None, functionalDataSettings=None, binaryData=None, directLinksOnly=None, _isOwner=True)¶ Bases:
objectGetRecordAttributesByRefRequest. Input for the GetRecordAttributesByRef operation. For requests, at least one
RecordReferenceand at least oneAttributeReferenceis required.- Parameters
recordFilter – type
RecordFilteruseFallback – type bool
attributeReferences – type list of
AttributeReferenceobjectspopulateGUIDs – type bool
unitConversionContext – type
UnitConversionContextrecordReferences – type list of
RecordReferenceobjectsexportedAttributes – type list of
ExportedAttributeobjectsfunctionalDataSettings – type
FunctionalDataSettingsbinaryData – type
BinaryDataSettingsdirectLinksOnly – type bool
-
property
attributeReferences¶ Property attributeReferences is a list of
AttributeReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
exportedAttributes¶ Property exportedAttributes is a list of
ExportedAttributeobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
recordReferences¶ Property recordReferences is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
directLinksOnly¶ Property directLinksOnly is of type bool.
-
property
populateGUIDs¶ Property populateGUIDs is of type bool.
-
property
recordFilter¶ Property recordFilter is of type
RecordFilter.
-
property
unitConversionContext¶ Property unitConversionContext is of type
UnitConversionContext.
-
property
useFallback¶ Property useFallback is of type bool.
-
property
binaryData¶ Property binaryData is of type
BinaryDataSettings.
-
property
functionalDataSettings¶ Property functionalDataSettings is of type
FunctionalDataSettings.
-
AddAttributeReference(_attributeReference)¶ Appends _attributeReference to attributeReferences property on GetRecordAttributesByRefRequest C-object.
- Parameters
_attributeReference – object of type AttributeReference.
-
AddExportedAttribute(_exportedAttribute)¶ Appends _exportedAttribute to exportedAttributes property on GetRecordAttributesByRefRequest C-object.
- Parameters
_exportedAttribute – object of type ExportedAttribute.
-
AddRecordReference(_recordReference)¶ Appends _recordReference to recordReferences property on GetRecordAttributesByRefRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetRecordAttributesByRefResponse¶
-
class
GetRecordAttributesByRefResponse(c_obj)¶ Bases:
objectGetRecordAttributesByRefResponse. Output from the GetRecordAttributesByRef operation. Includes an array of
RecordDataobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetRecordAttributesByRefResponse object.
-
property
recordData¶ Property recordData is a list of
RecordDataobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddRecordData(_recordData)¶ Appends _recordData to recordData property on GetRecordAttributesByRefResponse C-object.
- Parameters
_recordData – object of type RecordData.
-
property
c_obj¶ Pointer to the underlying C-object
GetRecordAttributesRequest¶
-
class
GetRecordAttributesRequest(includeMeta=None, recordReferences=None, includeEmpty=None, includeParamDetails=None, minMaxCalculation=None, _isOwner=True)¶ Bases:
objectGetRecordAttributesRequest. Input for the GetRecordAttribute operation.
- Parameters
includeMeta – type bool
recordReferences – type list of
RecordReferenceobjectsincludeEmpty – type bool
includeParamDetails – type bool
minMaxCalculation – type int
-
property
recordReferences¶ Property recordReferences is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
includeEmpty¶ Property includeEmpty is of type bool.
-
property
includeMeta¶ Property includeMeta is of type bool.
-
property
includeParamDetails¶ Property includeParamDetails is of type bool.
-
property
minMaxCalculation¶ Property minMaxCalculation is of type int.
-
AddRecordReference(_recordReference)¶ Appends _recordReference to recordReferences property on GetRecordAttributesRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetRecordAttributesResponse¶
-
class
GetRecordAttributesResponse(c_obj)¶ Bases:
objectGetRecordAttributesResponse. Output from the GetRecordAttributes operation. Includes an array of
RecordAttributeobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetRecordAttributesResponse object.
-
property
recordAttributes¶ Property recordAttributes is a list of
RecordAttributeobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddRecordAttribute(_recordAttribute)¶ Appends _recordAttribute to recordAttributes property on GetRecordAttributesResponse C-object.
- Parameters
_recordAttribute – object of type RecordAttribute.
-
property
c_obj¶ Pointer to the underlying C-object
GetRecordLinkGroups¶
-
class
GetRecordLinkGroups(standardNamesOnly=None, recordLinkGroups=None, DBKey=None, _isOwner=True)¶ Bases:
objectGetRecordLinkGroups. Returns details of Record Link Groups in a Granta MI Database.
- Parameters
standardNamesOnly – type bool
recordLinkGroups – type list of
RecordLinkGroupReferenceobjectsDBKey – type str
-
property
recordLinkGroups¶ Property recordLinkGroups is a list of
RecordLinkGroupReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
DBKey¶ Property DBKey is of type str. When this is provided, details of all Record Link Groups in the specified Granta MI Database will be returned.
-
property
standardNamesOnly¶ Property standardNamesOnly is of type bool.
-
AddRecordLinkGroup(_recordLinkGroupReference)¶ Appends _recordLinkGroupReference to recordLinkGroups property on GetRecordLinkGroups C-object.
- Parameters
_recordLinkGroupReference – object of type RecordLinkGroupReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetRecordLinkGroupsResponse¶
-
class
GetRecordLinkGroupsResponse(c_obj)¶ Bases:
objectGetRecordLinkGroupsResponse. Output from the
GetRecordLinkGroupsoperation.- Parameters
c_obj – ctypes.POINTER to a GetRecordLinkGroupsResponse object.
-
property
recordLinkGroups¶ Property recordLinkGroups is a list of
RecordLinkGroupDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetRecordVersionsRequest¶
-
class
GetRecordVersionsRequest(records=None, versions=None, _isOwner=True)¶ Bases:
objectGetRecordVersionsRequest. Input for the GetRecordVersions operation.
- Parameters
records – type list of
RecordReferenceobjectsversions – type int
-
property
records¶ Property records is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
versions¶ Property versions is of type int. See
GetRecordVersionsRequest.VersionSelectorfor supported values.
-
AddRecord(_recordReference)¶ Appends _recordReference to records property on GetRecordVersionsRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetRecordVersionsResponse¶
-
class
GetRecordVersionsResponse(c_obj)¶ Bases:
objectGetRecordVersionsResponse. Output from the GetRecordVersions operation. Contains a list of version states.
- Parameters
c_obj – ctypes.POINTER to a GetRecordVersionsResponse object.
-
property
recordStates¶ Property recordStates is a list of
RecordVersionStateobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetRootNode¶
-
class
GetRootNode(table=None, _isOwner=True)¶ Bases:
objectGetRootNode. Input to the GetRootNode operation. Requires a
TableReference.- Parameters
table – type
TableReference
-
property
table¶ Property table is of type
TableReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetRootNodeResponse¶
-
class
GetRootNodeResponse(c_obj)¶ Bases:
objectGetRootNodeResponse. Output from the
GetRootNodeoperation. Includes aTreeRecordobject and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetRootNodeResponse object.
-
property
rootNode¶ Property rootNode is of type
TreeRecord.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetSubsetsRequest¶
-
class
GetSubsetsRequest(table=None, subsetReferences=None, _isOwner=True)¶ Bases:
objectGetSubsetsRequest. Input to the GetSubsets operation. Requires a
TableReference.- Parameters
table – type
TableReferencesubsetReferences – type list of
SubsetReferenceobjects
-
property
subsetReferences¶ Property subsetReferences is of type list of
SubsetReference.
-
property
table¶ Property table is of type
TableReference.
-
AddSubsetReference(_subsetReference)¶ Appends _subsetReference to subsetReferences property on GetSubsetsRequest C-object.
- Parameters
_subsetReference – object of type SubsetReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetSubsetsResponse¶
-
class
GetSubsetsResponse(c_obj)¶ Bases:
objectGetSubsetsResponse. Output from the GetSubsets operation. Includes an array of SubsetDetails objects and a
ServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetSubsetsResponse object.
-
property
subsetDetails¶ Property subsetDetails is a list of
SubsetDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetTables¶
-
class
GetTables(tableFilter=None, attributeSelectors=None, DBKey=None, _isOwner=True)¶ Bases:
objectGetTables. Input to the GetTables operation. Requires a DBKey to be set.
- Parameters
tableFilter – type int
attributeSelectors – type list of int objects
DBKey – type str
-
class
AttributeSelector¶ Bases:
object-
NONE= 0¶
-
NonMetaAttributes= 1¶
-
MetaAttributes= 2¶
-
StandardAttributes= 3¶
-
-
property
attributeSelectors¶ Property attributeSelectors is a list of int objects. See
GetTables.AttributeSelectorfor supported values. Warning: Do not attempt to edit or append to the returned value.
-
property
DBKey¶ Property DBKey is of type str.
-
property
tableFilter¶ Property tableFilter is of type int. See
GRANTA_Constants.TablesFilterfor supported values.
-
AddAttributeSelector(value)¶ Appends value to attributeSelectors property on GetTables C-object.
- Parameters
value – object of type int.
-
property
c_obj¶ Pointer to the underlying C-object
GetTablesResponse¶
-
class
GetTablesResponse(c_obj)¶ Bases:
objectGetTablesResponse. Output from the
GetTablesoperation. Includes an array ofTableDetailobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetTablesResponse object.
-
property
tableDetails¶ Property tableDetails is a list of
TableDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddTableDetail(_tableDetail)¶ Appends _tableDetail to tableDetails property on GetTablesResponse C-object.
- Parameters
_tableDetail – object of type TableDetail.
-
property
c_obj¶ Pointer to the underlying C-object
GetTreeRecordsRequest¶
-
class
GetTreeRecordsRequest(records=None, _isOwner=True)¶ Bases:
objectGetTreeRecordsRequest. Input to the GetTreeRecords operation. Requires at least one RecordReference
- Parameters
records – type list of
RecordReferenceobjects
-
property
records¶ Property records is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddRecord(_recordReference)¶ Appends _recordReference to records property on GetTreeRecordsRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetTreeRecordsResponse¶
-
class
GetTreeRecordsResponse(c_obj)¶ Bases:
objectGetTreeRecordsResponse. Output to the GetTreeRecords operation. Includes an array of
TreeRecordobjects and aServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a GetTreeRecordsResponse object.
-
property
treeRecords¶ Property treeRecords is a list of
TreeRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddTreeRecord(_treeRecord)¶ Appends _treeRecord to treeRecords property on GetTreeRecordsResponse C-object.
- Parameters
_treeRecord – object of type TreeRecord.
-
property
c_obj¶ Pointer to the underlying C-object
GetUnitConversionsRequest¶
-
class
GetUnitConversionsRequest(DBKey=None, sourceCurrency=None, targetCurrency=None, unitConversionContexts=None, unitSymbols=None, _isOwner=True)¶ Bases:
objectGetUnitConversionsRequest. Input for the GetUnitConversions operation.
- Parameters
DBKey – type str
sourceCurrency – type str
targetCurrency – type str
unitConversionContexts – type list of
UnitConversionContextobjectsunitSymbols – type list of str objects
-
property
unitConversionContexts¶ Property unitConversionContexts is a list of
UnitConversionContextobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
unitSymbols¶ Property unitSymbols is a list of str objects. Warning: Do not attempt to edit or append to the returned value.
-
property
DBKey¶ Property DBKey is of type str.
-
property
sourceCurrency¶ Property sourceCurrency is of type str.
-
property
targetCurrency¶ Property targetCurrency is of type str.
-
AddUnitConversionContext(_unitConversionContext)¶ Appends _unitConversionContext to unitConversionContexts property on GetUnitConversionsRequest C-object.
- Parameters
_unitConversionContext – object of type UnitConversionContext.
-
AddUnitSymbol(value)¶ Appends value to unitSymbols property on GetUnitConversionsRequest C-object.
- Parameters
value – object of type Defs.string_types.
-
property
c_obj¶ Pointer to the underlying C-object
GetUnitConversionsResponse¶
-
class
GetUnitConversionsResponse(c_obj)¶ Bases:
objectGetUnitConversionsResponse. Output from the GetUnitConversions operation.
- Parameters
c_obj – ctypes.POINTER to a GetUnitConversionsResponse object.
-
property
DBKey¶ Property DBKey is of type str.
-
property
sourceUnits¶ Property sourceUnits is a list of
SourceUnitConversionSetobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
unitConversionContexts¶ Property unitConversionContexts is a list of
UnitConversionContextConversionSetobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetUnitSystems¶
-
class
GetUnitSystems(excludeCurrencies=None, DBKey=None, _isOwner=True)¶ Bases:
objectGetUnitSystems. A type for requesting the unit systems on a particular Granta MI database. A DBKey must be specified.
- Parameters
excludeCurrencies – type bool
DBKey – type str
-
property
DBKey¶ Property DBKey is of type str.
-
property
excludeCurrencies¶ Property excludeCurrencies is of type bool.
-
property
c_obj¶ Pointer to the underlying C-object
GetUnitSystemsResponse¶
-
class
GetUnitSystemsResponse(c_obj)¶ Bases:
objectGetUnitSystemsResponse. The ouput of a
GetUnitSystemsrequests. Contains an array of unit systems for the specified database.- Parameters
c_obj – ctypes.POINTER to a GetUnitSystemsResponse object.
-
property
DBKey¶ Property DBKey is of type str.
-
property
unitSystems¶ Property unitSystems is a list of str objects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GetUploadAddressesRequest¶
-
class
GetUploadAddressesRequest(recordReferences=None, attributeReferences=None, _isOwner=True)¶ Bases:
objectGetUploadAddressesRequest. Input to the GetUploadAddresses operation. Contains a list of records and attributes to get the upload URL addresses of.
- Parameters
recordReferences – type list of
RecordReferenceobjectsattributeReferences – type list of
AttributeReferenceobjects
-
property
attributeReferences¶ Property attributeReferences is a list of
AttributeReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
recordReferences¶ Property recordReferences is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddAttributeReference(_attributeReference)¶ Appends _attributeReference to attributeReferences property on GetUploadAddressesRequest C-object.
- Parameters
_attributeReference – object of type AttributeReference.
-
AddRecordReference(_recordReference)¶ Appends _recordReference to recordReferences property on GetUploadAddressesRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
GetUploadAddressesResponse¶
-
class
GetUploadAddressesResponse(c_obj)¶ Bases:
objectGetUploadAddressesResponse. Output from the GetUploadAddresses operation. Contains a list of
RecordWithAttributeAddressesobjects for each record in theGetUploadAddressesRequest.- Parameters
c_obj – ctypes.POINTER to a GetUploadAddressesResponse object.
-
property
recordsWithAttributeAddresses¶ Property recordsWithAttributeAddresses is a list of
RecordWithAttributeAddressesobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
GraphDomain¶
-
class
GraphDomain(parameterDomains=None, _isOwner=True)¶ Bases:
objectGraphDomain. A type to contain choices of fixed parameter values. A value must be chosen for each parameter, within the given constraints.
- Parameters
parameterDomains – type list of
ParameterDomainobjects
-
property
parameterDomains¶ Property parameterDomains is a list of
ParameterDomainobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
c_obj¶ Pointer to the underlying C-object
GreaterThanSearchValue¶
-
class
GreaterThanSearchValue(unit=None, value=None, tabularColumn=None, _isOwner=True)¶ Bases:
objectGreaterThanSearchValue. Search criterion to search for data greater than a specified value. Criterion passes if data value is above a given value. Point, range, and integer attributes are supported.
- Parameters
unit – type str
value – type float
tabularColumn – type str
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
property
unit¶ Property unit is of type str.
-
property
value¶ Property value is of type float.
-
property
c_obj¶ Pointer to the underlying C-object
HelpInfo¶
-
class
HelpInfo(databaseHelp=None, helpURI=None, _isOwner=True)¶ Bases:
objectHelpInfo. Type describing how to obtain detailed Help information for an entity in a Granta MI database.
- Parameters
databaseHelp – type bool
helpURI – type str
-
property
databaseHelp¶ Property databaseHelp is of type bool.
-
property
helpURI¶ Property helpURI is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
HighEndSearchValue¶
-
class
HighEndSearchValue(unit=None, value=None, _isOwner=True)¶ Bases:
objectHighEndSearchValue. Upper limit for the
BetweenSearchValuesearch criterion. Requires a double value and an optional unit.- Parameters
unit – type str
value – type float
-
property
unit¶ Property unit is of type str.
-
property
value¶ Property value is of type float.
-
property
c_obj¶ Pointer to the underlying C-object
HyperlinkDataType¶
-
class
HyperlinkDataType(value=None, description=None, hyperlinkDisplay=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueHyperlinkDataType. A type to contain a HyperLink string value.
- Parameters
value – type str
description – type str
hyperlinkDisplay – type int
isApplicable – type bool
-
property
description¶ Property description is of type str.
-
property
hyperlinkDisplay¶ Property hyperlinkDisplay is of type int.
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
value¶ Property value is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
IDataValue¶
-
class
IDataValue¶ Bases:
objectBase class for data values in Granta MI.
You should not interact directly with this class.
ImportAttributeValue¶
-
class
ImportAttributeValue(rangeDataValue=None, discreteDataValue=None, hyperlinkDataValue=None, fileDataValue=None, floatFunctionalGriddedDataType=None, shortTextDataValue=None, integerDataValue=None, pointDataValue=None, logicalDataValue=None, longTextDataValue=None, dateDataValue=None, floatFunctionalSeriesDataType=None, attributeReference=None, tabularDataValue=None, pictureDataValue=None, _isOwner=True)¶ Bases:
objectImportAttributeValue. An
AttributeValueto import to a Granta MI database. Requires aAttributeReferenceand an attribute value for the data type you wish to upload. Supports: PointDataType, RangeDataType, FloatFunctionalSeriesDataType, FloatFunctionalGriddedDataType, ShortTextDataType, LongTextDataType, DiscreteDataType, IntegerDataType, LogicalDataType, HyperlinkDataType, andFileDataType.- Parameters
rangeDataValue – type
RangeDataTypediscreteDataValue – type
DiscreteDataTypehyperlinkDataValue – type
HyperlinkDataTypefileDataValue – type
FileDataTypefloatFunctionalGriddedDataType – type
FloatFunctionalGriddedDataTypeshortTextDataValue – type
ShortTextDataTypeintegerDataValue – type
IntegerDataTypepointDataValue – type
PointDataTypelogicalDataValue – type
LogicalDataTypelongTextDataValue – type
LongTextDataTypedateDataValue – type
DateDataTypefloatFunctionalSeriesDataType – type
FloatFunctionalSeriesDataTypeattributeReference – type
AttributeReferencetabularDataValue – type
TabularDataTypepictureDataValue – type
PictureDataType
-
property
attributeReference¶ Property attributeReference is of type
AttributeReference.
-
property
dateDataValue¶ Property dateDataValue is of type
DateDataType.
-
property
discreteDataValue¶ Property discreteDataValue is of type
DiscreteDataType.
-
property
fileDataValue¶ Property fileDataValue is of type
FileDataType.
-
property
floatFunctionalGriddedDataType¶ Property floatFunctionalGriddedDataType is of type
FloatFunctionalGriddedDataType.
-
property
floatFunctionalSeriesDataType¶ Property floatFunctionalSeriesDataType is of type
FloatFunctionalSeriesDataType.
-
property
hyperlinkDataValue¶ Property hyperlinkDataValue is of type
HyperlinkDataType.
-
property
integerDataValue¶ Property integerDataValue is of type
IntegerDataType.
-
property
logicalDataValue¶ Property logicalDataValue is of type
LogicalDataType.
-
property
longTextDataValue¶ Property longTextDataValue is of type
LongTextDataType.
-
property
pictureDataValue¶ Property pictureDataValue is of type
PictureDataType.
-
property
pointDataValue¶ Property pointDataValue is of type
PointDataType.
-
property
rangeDataValue¶ Property rangeDataValue is of type
RangeDataType.
-
property
shortTextDataValue¶ Property shortTextDataValue is of type
ShortTextDataType.
-
property
tabularDataValue¶ Property tabularDataValue is of type
TabularDataType.
-
property
c_obj¶ Pointer to the underlying C-object
ImportRecord¶
-
class
ImportRecord(recordName=None, importAttributeValues=None, isFolder=None, importRecordMode=None, releaseRecord=None, subsetReferences=None, copyDestinationParent=None, existingRecord=None, updateSubsetsMode=None, _isOwner=True)¶ Bases:
objectImportRecord. 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
recordName – type str
importAttributeValues – type list of
ImportAttributeValueobjectsisFolder – type bool
importRecordMode – type str
releaseRecord – type bool
subsetReferences – type list of
SubsetReferenceobjectscopyDestinationParent – type
RecordReferenceexistingRecord – type
RecordReferenceupdateSubsetsMode – type int
-
property
importAttributeValues¶ Property importAttributeValues is a list of
ImportAttributeValueobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
subsetReferences¶ Property subsetReferences is a list of
SubsetReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
recordName¶ Property recordName is of type str.
-
property
copyDestinationParent¶ Property copyDestinationParent is of type
RecordReference.
-
property
existingRecord¶ Property existingRecord is of type
RecordReference.
-
property
importRecordMode¶ Property importRecordMode is of type str. See
GRANTA_Constants.ImportTypesfor supported values.
-
property
isFolder¶ Property isFolder is of type bool.
-
property
releaseRecord¶ Property releaseRecord is of type bool.
-
property
updateSubsetsMode¶ Property updateSubsetsMode is of type int.
-
AddImportAttributeValue(_importAttributeValue)¶ Appends _importAttributeValue to importAttributeValues property on ImportRecord C-object.
- Parameters
_importAttributeValue – object of type ImportAttributeValue.
-
AddSubsetReference(_subsetReference)¶ Appends _subsetReference to subsetReferences property on ImportRecord C-object.
- Parameters
_subsetReference – object of type SubsetReference.
-
property
c_obj¶ Pointer to the underlying C-object
IntegerDataType¶
-
class
IntegerDataType(value=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueIntegerDataType. A type to contain an integer data type.
- Parameters
value – type int
isApplicable – type bool
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
value¶ Property value is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
IntegrationDatabase¶
-
class
IntegrationDatabase(DBKey=None, author=None, company=None, volumeName=None, integrationTables=None, _isOwner=True)¶ Bases:
objectIntegrationDatabase. Represents a database within an Integration Profile.
- Parameters
DBKey – type str
author – type str
company – type str
volumeName – type str
integrationTables – type list of
TableDetailobjects
Property author is of type str.
-
property
company¶ Property company is of type str.
-
property
DBKey¶ Property DBKey is of type str.
-
property
integrationTables¶ Property integrationTables is a
TableDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
volumeName¶ Property volumeName is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
IntegrationProfileDetail¶
-
class
IntegrationProfileDetail(description=None, groupName=None, integrationDatabases=None, name=None, profile=None, _isOwner=True)¶ Bases:
objectIntegrationProfileDetail. Detailed information about an Integration Profile.
- Parameters
description – type
RichTextgroupName – type str
integrationDatabases – type list of
IntegrationDatabaseobjectsname – type str
profile – type
IntegrationProfileReference
-
property
groupName¶ Property groupName is of type str.
-
property
integrationDatabases¶ Property integrationDatabases is a
IntegrationDatabaseobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
name¶ Property name is of type str.
-
property
profile¶ Property profile is of type
IntegrationProfileReference.
-
property
c_obj¶ Pointer to the underlying C-object
IntegrationProfileReference¶
LayoutDetail¶
-
class
LayoutDetail(attributeCategories=None, layout=None, name=None, table=None, _isOwner=True)¶ Bases:
objectLayoutDetail. Detailed meta-information about a Layout in a Granta MI database.
- Parameters
attributeCategories – type list of
AttributeCategoryobjectslayout – type
LayoutReferencename – type str
table – type
TableReference
-
property
attributeCategories¶ Property attributeCategories is a list of
AttributeCategoryobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
layout¶ Property layout is of type
LayoutReference.
-
property
name¶ Property name is of type str.
-
property
table¶ Property table is of type
TableReference.
-
AddAttributeCategory(_attributeCategory)¶ Appends _attributeCategory to attributeCategories property on LayoutDetail C-object.
- Parameters
_attributeCategory – object of type AttributeCategory.
-
property
c_obj¶ Pointer to the underlying C-object
LayoutReference¶
-
class
LayoutReference(DBKey=None, layoutIdentity=None, name=None, partialTableReference=None, _isOwner=True)¶ Bases:
objectLayoutReference. A type that allows identification of a particular Layout in a Granta MI database.
- Parameters
DBKey – type str
layoutIdentity – type int
name – type str
partialTableReference – type
PartialTableReference
-
property
DBKey¶ Property DBKey is of type str.
-
property
layoutIdentity¶ Property layoutIdentity is of type int.
-
property
name¶ Property name is of type str.
-
property
partialTableReference¶ Property partialTableReference is of type
PartialTableReference.
-
property
c_obj¶ Pointer to the underlying C-object
LessThanSearchValue¶
-
class
LessThanSearchValue(unit=None, value=None, tabularColumn=None, _isOwner=True)¶ Bases:
objectLessThanSearchValue. Search criterion to search for data less than a specified value. Criterion passes if data value is less than a given value. Point, range, and integer attributes are supported.
- Parameters
unit – type str
value – type float
tabularColumn – type str
-
property
tabularColumn¶ Property tabularColumn is of type str.
-
property
unit¶ Property unit is of type str.
-
property
value¶ Property value is of type float.
-
property
c_obj¶ Pointer to the underlying C-object
LinkAllCombinations¶
-
class
LinkAllCombinations(sourceRecords=None, nodeName=None, targetRecords=None, _isOwner=True)¶ Bases:
objectLinkAllCombinations. For each given source record, add links to all the given target records. Silently skip any links that already exist.
- Parameters
sourceRecords – type list of
RecordReferenceobjectsnodeName – type str
targetRecords – type list of
RecordReferenceobjects
-
property
sourceRecords¶ Property sourceRecords is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
targetRecords¶ Property targetRecords is of type list of
RecordReference.
-
property
nodeName¶ Property nodeName is of type str.
-
AddSourceRecord(_recordReference)¶ Appends _recordReference to sourceRecords property on LinkAllCombinations C-object.
- Parameters
_recordReference – object of type RecordReference.
-
AddTargetRecord(_recordReference)¶ Appends _recordReference to targetRecords property on LinkAllCombinations C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
LinkRecords¶
-
class
LinkRecords(sourceRecords=None, nodeName=None, _isOwner=True)¶ Bases:
objectLinkRecords. For each given source record, add links to the target records specified for that source record. Silently skip any links that already exist.
- Parameters
sourceRecords – type list of
NotatedTargetedSourceRecordobjectsnodeName – type str
-
property
sourceRecords¶ Property sourceRecords is of type list of
NotatedTargetedSourceRecord.
-
property
nodeName¶ Property nodeName is of type str.
-
AddSourceRecord(_notatedTargetedSourceRecord)¶ Appends _notatedTargetedSourceRecord to sourceRecords property on LinkRecords C-object.
- Parameters
_notatedTargetedSourceRecord – object of type NotatedTargetedSourceRecord.
-
property
c_obj¶ Pointer to the underlying C-object
LinkedRecordsDataType¶
-
class
LinkedRecordsDataType(typeString=None, recordLinkGroups=None, nodeName=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueLinkedRecordsDataType. A type representing a list of linked Records.
- Parameters
typeString – type str
recordLinkGroups – type list of
RecordLinkGroupobjectsnodeName – type str
-
property
nodeName¶ Property nodeName is of type str.
-
property
recordLinkGroups¶ Property recordLinkGroups is a list of
RecordLinkGroupobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
typeString¶ Property typeString is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
ListDataType¶
-
class
ListDataType(items=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueListDataType. A list of values within a Cell in Tabular Data.
- Parameters
items – type list of
ListItemobjects
-
property
items¶ Property items is a
ListItemobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
c_obj¶ Pointer to the underlying C-object
ListItem¶
-
class
ListItem(rangeDataValue=None, shortTextDataValue=None, hyperlinkDataValue=None, fileDataValue=None, discreteDataValue=None, dataType=None, logicalDataValue=None, integerDataValue=None, pointDataValue=None, longTextDataValue=None, dateDataValue=None, pictureDataValue=None, sourceRecordHistoryId=None, _isOwner=True)¶ Bases:
objectListItem. An item in a List data value.
- Parameters
rangeDataValue – type
RangeDataTypeshortTextDataValue – type
ShortTextDataTypehyperlinkDataValue – type
HyperlinkDataTypefileDataValue – type
FileDataTypediscreteDataValue – type
DiscreteDataTypedataType – type str
logicalDataValue – type
LogicalDataTypeintegerDataValue – type
IntegerDataTypepointDataValue – type
PointDataTypelongTextDataValue – type
LongTextDataTypedateDataValue – type
DateDataTypepictureDataValue – type
PictureDataTypesourceRecordHistoryId – type int
-
property
dataType¶ Property dataType is of type str.
-
property
dateDataValue¶ Property dateDataValue is of type
DateDataType.
-
property
discreteDataValue¶ Property discreteDataValue is of type
DiscreteDataType.
-
property
fileDataValue¶ Property fileDataValue is of type
FileDataType.
-
property
hyperlinkDataValue¶ Property hyperlinkDataValue is of type
HyperlinkDataType.
-
property
integerDataValue¶ Property integerDataValue is of type
IntegerDataType.
-
property
logicalDataValue¶ Property logicalDataValue is of type
LogicalDataType.
-
property
longTextDataValue¶ Property longTextDataValue is of type
LongTextDataType.
-
property
pictureDataValue¶ Property pictureDataValue is of type
PictureDataType.
-
property
pointDataValue¶ Property pointDataValue is of type
PointDataType.
-
property
rangeDataValue¶ Property rangeDataValue is of type
RangeDataType.
-
property
shortTextDataValue¶ Property shortTextDataValue is of type
ShortTextDataType.
-
property
sourceRecordHistoryId¶ Property sourceRecordHistoryId is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
LogicalDataType¶
-
class
LogicalDataType(value=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueLogicalDataType. A type to contain a logical data type.
- Parameters
value – type bool
isApplicable – type bool
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
value¶ Property value is of type bool.
-
property
c_obj¶ Pointer to the underlying C-object
LongTextDataType¶
-
class
LongTextDataType(value=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueLongTextDataType. A type to contain a long text data type.
- Parameters
value – type str
isApplicable – type bool
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
value¶ Property value is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
LookupValue¶
-
class
LookupValue(attributeReference=None, attributeValue=None, _isOwner=True)¶ Bases:
objectLookupValue. Object containing an
AttributeValueandAttributeReferenceobject that uniquely identify a record in a table.- Parameters
attributeReference – type
AttributeReferenceattributeValue – type str
-
property
attributeReference¶ Property attributeReference is of type
AttributeReference.
-
property
attributeValue¶ Property attributeValue is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
LowEndSearchValue¶
-
class
LowEndSearchValue(unit=None, value=None, _isOwner=True)¶ Bases:
objectLowEndSearchValue. Lower limit for the
BetweenSearchValuesearch criterion.- Parameters
unit – type str
value – type float
-
property
unit¶ Property unit is of type str.
-
property
value¶ Property value is of type float.
-
property
c_obj¶ Pointer to the underlying C-object
MIDatabase¶
-
class
MIDatabase(name=None, DBKey=None, _isOwner=True)¶ Bases:
objectMIDatabase. Data regarding a Granta MI database. Contains a DBKey and a volume name.
- Parameters
name – type str
DBKey – type str
-
property
DBKey¶ Property DBKey is of type str.
-
property
name¶ Property name is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
MIEntityReference¶
MIEntityResolution¶
-
class
MIEntityResolution(canWrite=None, entityReference=None, resolved=None, _isOwner=True)¶ Bases:
objectMIEntityResolution. 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 – type int
entityReference – type
RecordReferenceresolved – type bool
-
property
canWrite¶ Property canWrite is of type int.
-
property
entityReference¶ Property entityReference is of type
RecordReference.
-
property
resolved¶ Property resolved is of type bool.
-
property
c_obj¶ Pointer to the underlying C-object
MIParameterValue¶
-
class
MIParameterValue(revisionInfo=None, value=None, valueName=None, _isOwner=True)¶ Bases:
objectMIParameterValue. A named value of a Parameter in a Granta MI Database.
- Parameters
revisionInfo – type
RevisionInfovalue – type float
valueName – type str
-
property
revisionInfo¶ Property revisionInfo is of type
RevisionInfo.
-
property
value¶ Property value is of type float.
-
property
valueName¶ Property valueName is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
MISession¶
-
class
MISession(url='', verbosity=1)¶ Bases:
objectA connection to a Granta MI Server. Don’t create this class directly, instead see
GRANTA_MISession- Parameters
url - url of your Granta MI Service Layer installation (*) –
-
ConnectionIsValid()¶ Returns a tuple of (bool, string). The first element is whether or not requests can succeed, and the second is a description of the outcome of the test.
-
TestConnection()¶ Raises an exception if a request to the Granta MI Service Layer does not respond or responds with an error.
-
UseAutoLogon()¶ If called, this session will use the Windows credentials of the current user to authenticate to the Granta MI Service Layer.
-
SetCredentials(domain, username, password)¶ - Parameters
username - your Granta MI username (*) –
password - your Granta MI password (*) –
domain - your Granta MI user domain (*) –
-
SetAuthorization(auth)¶ - Parameters
auth - MI Auth object to do the authorization (*) –
-
SetReceiveTimeout(timeout)¶ Sets time in milliseconds to wait for a response before timing out.
- Parameters
timeout - timeout in milliseconds (*) –
-
property
actAsReadUser¶ Property name is of type bool. If set to True, this session will perform operations as if it were a read user, even if the session authenticated as a higher privileged role.
MinMax¶
-
class
MinMax(maxValue=None, minValue=None, units=None, _isOwner=True)¶ Bases:
objectMinMax. 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 – type
MinMaxValueminValue – type
MinMaxValueunits – type str
-
property
maxValue¶ Property maxValue is of type
MinMaxValue.
-
property
minValue¶ Property minValue is of type
MinMaxValue.
-
property
units¶ Property units is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
MinMaxValue¶
-
class
MinMaxValue(dateTime=None, double=None, integer=None, type=None, _isOwner=True)¶ Bases:
objectMinMaxValue. A type that represents the minimum or maximum data value for a numerical attribute in a database.
- Parameters
dateTime – type str
double – type float
integer – type int
type – type int
-
class
Type¶ Bases:
object-
ERROR= -1¶
-
DateType= 0¶
-
DoubleType= 1¶
-
IntegerType= 2¶
-
NotANumber= 3¶
-
-
property
dateTime¶ Property dateTime is of type str.
-
property
double¶ Property double is of type float.
-
property
integer¶ Property integer is of type int.
-
property
type¶ Property type is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
ModifyRecordLinksRequest¶
-
class
ModifyRecordLinksRequest(recordLinkModifications=None, recordLinkCheckMode=None, importErrorMode=None, recordLinkGroupReference=None, _isOwner=True)¶ Bases:
objectModifyRecordLinksRequest. Input to the ModifyRecordLinks operation. Requires a
RecordLinkGroupReferenceto the record link group you wish to modify and aRecordLinkModificationsobject, 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
recordLinkModifications – type
RecordLinkModificationsrecordLinkCheckMode – type str
importErrorMode – type str
recordLinkGroupReference – type
RecordLinkGroupReference
-
property
importErrorMode¶ Property importErrorMode is of type str. See
GRANTA_Constants.ImportErrorModefor supported values.
-
property
recordLinkCheckMode¶ Property recordLinkCheckMode is of type str. See
GRANTA_Constants.RecordLinkCheckModefor supported values.
-
property
recordLinkGroupReference¶ Property recordLinkGroupReference is of type
RecordLinkGroupReference.
-
property
recordLinkModifications¶ Property recordLinkModifications is of type
RecordLinkModifications.
-
property
c_obj¶ Pointer to the underlying C-object
ModifyRecordLinksResponse¶
-
class
ModifyRecordLinksResponse(c_obj)¶ Bases:
objectModifyRecordLinksResponse. The response from a ModifyRecordLinks request.
- Parameters
c_obj – ctypes.POINTER to a ModifyRecordLinksResponse object.
-
property
recordLinkChanges¶ Property recordLinkChanges is of type
RecordLinkChanges.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
NamedAttribute¶
-
class
NamedAttribute(attribute=None, about=None, name=None, isMeta=None, _isOwner=True)¶ Bases:
objectNamedAttribute. Name information about an Attribute in a Granta MI database.
- Parameters
attribute – type
AttributeReferenceabout – type
NamedAttributename – type str
isMeta – type bool
-
property
about¶ Property about is of type
NamedAttribute. Only populated if ‘isMeta’ is True.
-
property
attribute¶ Property attribute is of type
AttributeReference.
-
property
isMeta¶ Property isMeta is of type bool. If this is True, the ‘about’ property may have additional information about the related parent attribute.
-
property
name¶ Property name is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
NamedLayout¶
-
class
NamedLayout(layout=None, name=None, _isOwner=True)¶ Bases:
objectNamedLayout. A layout in a Granta MI database.
- Parameters
layout – type
LayoutReferencename – type str
-
property
layout¶ Property layout is of type
LayoutReference.
-
property
name¶ Property name is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
NamedRecord¶
-
class
NamedRecord(recordReference=None, shortName=None, longName=None, _isOwner=True)¶ Bases:
objectNamedRecord. A
RecordReferencewith the short and long name of the record.- Parameters
recordReference – type
RecordReferenceshortName – type str
longName – type str
-
property
longName¶ Property longName is of type str.
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
property
shortName¶ Property shortName is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
NamedSubset¶
-
class
NamedSubset(subset=None, name=None, _isOwner=True)¶ Bases:
objectNamedSubset. A
SubsetReferencewith the subset name.- Parameters
subset – type
SubsetReferencename – type str
-
property
name¶ Property name is of type str.
-
property
subset¶ Property subset is of type
SubsetReference.
-
property
c_obj¶ Pointer to the underlying C-object
NamedTargetedSourceRecord¶
-
class
NamedTargetedSourceRecord(record=None, targetRecords=None, _isOwner=True)¶ Bases:
objectNamedTargetedSourceRecord. A named record used for modifying record links.
- Parameters
record – type
NamedRecordtargetRecords – type list of
NamedRecordobjects
-
property
targetRecords¶ Property targetRecords is a list of
NamedRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
record¶ Property record is of type
NamedRecord.
-
AddTargetRecords(_namedRecord)¶ Appends _namedRecord to targetRecords property on NamedTargetedSourceRecord C-object.
- Parameters
_namedRecord – object of type NamedRecord.
-
property
c_obj¶ Pointer to the underlying C-object
NotatedTargetRecord¶
-
class
NotatedTargetRecord(record=None, notes=None, reverseNotes=None, _isOwner=True)¶ Bases:
objectNotatedTargetRecord. A
RecordReferenceof the record you wish to link to and notes on the record link. Requires aRecordReference. Notes on the link and the reverse link are optional.- Parameters
record – type
RecordReferencenotes – type str
reverseNotes – type str
-
property
notes¶ Property notes is of type str.
-
property
record¶ Property record is of type
RecordReference.
-
property
reverseNotes¶ Property reverseNotes is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
NotatedTargetedSourceRecord¶
-
class
NotatedTargetedSourceRecord(sourceRecord=None, targetRecords=None, _isOwner=True)¶ Bases:
objectNotatedTargetedSourceRecord. A
NamedRecordto link from and container ofNamedRecordof the records to link to. Requires a sourceNamedRecord. Can set zero to many targetNamedRecordobjects you wish to link to.- Parameters
sourceRecord – type
RecordReferencetargetRecords – type list of
NotatedTargetRecordobjects
-
property
targetRecords¶ Property targetRecords is a list of
NotatedTargetRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
sourceRecord¶ Property sourceRecord is of type
RecordReference.
-
AddTargetRecord(_notatedTargetRecord)¶ Appends _notatedTargetRecord to targetRecords property on NotatedTargetedSourceRecord C-object.
- Parameters
_notatedTargetRecord – object of type NotatedTargetRecord.
-
property
c_obj¶ Pointer to the underlying C-object
OIDC¶
-
class
OIDC(accessToken=None, refreshToken=None, authorizeTimeout=None)¶ Bases:
objectAn object to allow authorization using OpenID Connect. Contact Ansys Granta Technical Support for information on supported identity providers, and for configuration and setup documentation.
Pass to a
GRANTA_MIScriptingToolkit.GRANTA_MISessionand callAuthorize()for a login page.- Parameters
accessToken – Valid access token for the URL of your MI Service Layer installation
refreshToken – Valid refresh token for the URL of your MI Service Layer installation
authorizeTimeout – Number of milliseconds to wait for a response after calling
Authorize()
-
Authorize()¶ Authorize a Granta MI session with an OpenID Connect provider.
-
CheckAuthentication()¶ Checks whether your access and refresh tokens are valid, and returns the result.
-
TestAuthentication()¶ Checks whether your access and refresh tokens are valid, and displays an error message if the tokens are invalid.
Property authorizeTimeout is the time in milliseconds to wait for a response from the external browser when
Authorize()is called.
-
property
accessToken¶ Property accessToken is of type str.
-
property
refreshToken¶ Property refreshToken is of type str.
ParameterDetail¶
-
class
ParameterDetail(parameterType=None, appliesToAttribute=None, name=None, appliesToRecord=None, parameterValues=None, defaultValue=None, revisionInfo=None, interpolationType=None, parameterReference=None, order=None, unit=None, scaleType=None, _isOwner=True)¶ Bases:
objectParameterDetail. Detailed information about a Parameter in a Granta MI Database.
- Parameters
parameterType – type int
appliesToAttribute – type
AttributeReferencename – type str
appliesToRecord – type
RecordReferenceparameterValues – type list of
MIParameterValueobjectsdefaultValue – type
MIParameterValuerevisionInfo – type
RevisionInfointerpolationType – type int
parameterReference – type
ParameterReferenceorder – type int
unit – type
UnitInformationscaleType – type int
-
property
appliesToAttribute¶ Property appliesToAttribute is of type
AttributeReference.
-
property
appliesToRecord¶ Property appliesToRecord is of type
RecordReference.
-
property
defaultValue¶ Property defaultValue is of type
MIParameterValue.
-
property
interpolationType¶ Property interpolationType is of type int. See
ParameterDetail.Interpolationfor supported values.
-
property
name¶ Property name is of type str.
-
property
parameterValues¶ Property parameterValues is a list of
MIParameterValueobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
order¶ Property order is of type int.
-
property
parameterReference¶ Property parameterReference is of type
ParameterReference.
-
property
parameterType¶ Property parameterType is of type int. See
ParameterDetail.ParameterTypefor supported values.
-
property
revisionInfo¶ Property revisionInfo is of type
RevisionInfo.
-
property
scaleType¶ Property scaleType is of type int. See
ParameterDetail.ScaleTypefor supported values.
-
property
unit¶ Property unit is of type
UnitInformation.
-
property
c_obj¶ Pointer to the underlying C-object
ParameterDomain¶
-
class
ParameterDomain(exporterParameterId=None, interpolable=None, values=None, _isOwner=True)¶ Bases:
objectParameterDomain. A type to contain a list of parameter values.
- Parameters
exporterParameterId – type str
interpolable – type bool
values – type list of
ParameterValueobjects
-
property
exporterParameterId¶ Property exporterParameterId is of type str.
-
property
interpolable¶ Property interpolable is of type bool.
-
property
values¶ Property values is a list of
ParameterValueobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
c_obj¶ Pointer to the underlying C-object
ParameterInformation¶
-
class
ParameterInformation(parameterReference=None, name=None, unit=None, _isOwner=True)¶ Bases:
objectParameterInformation. Information for a parameter in a Granta MI database. Contains the name and unit information for a parameter and a
ParameterReferenceto the parameter.- Parameters
parameterReference – type
ParameterReferencename – type str
unit – type
UnitInformation
-
property
name¶ Property name is of type str.
-
property
parameterReference¶ Property parameterReference is of type
ParameterReference.
-
property
unit¶ Property unit is of type
UnitInformation.
-
property
c_obj¶ Pointer to the underlying C-object
ParameterReference¶
-
class
ParameterReference(name=None, DBKey=None, ID=None, _isOwner=True)¶ Bases:
objectParameterReference. Identification of a particular parameter in a Granta MI database . For requests a DBKey is required, and either the parameter ID or the parameter name.
- Parameters
name – type str
DBKey – type str
ID – type int
-
property
DBKey¶ Property DBKey is of type str.
-
property
ID¶ Property ID is of type int.
-
property
name¶ Property name is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
ParameterReferenceAndValue¶
-
class
ParameterReferenceAndValue(parameterValue=None, parameter=None, _isOwner=True)¶ Bases:
objectParameterReferenceAndValue. Contains a
ParameterReferenceand aParameterValue.- Parameters
parameterValue – type
ParameterValueparameter – type
ParameterReference
-
property
parameter¶ Property parameter is of type
ParameterReference.
-
property
parameterValue¶ Property parameterValue is of type
ParameterValue.
-
property
c_obj¶ Pointer to the underlying C-object
ParameterReferencesAndValues¶
-
class
ParameterReferencesAndValues(parameterWithValues=None, _isOwner=True)¶ Bases:
objectParameterReferencesAndValues. A collection of
ParameterReferenceAndValueobjects.- Parameters
parameterWithValues – type list of
ParameterReferenceAndValueobjects
-
property
parameterWithValues¶ Property parameterWithValues is a list of
ParameterReferenceAndValueobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddParameterWithValue(_parameterReferenceAndValue)¶ Appends _parameterReferenceAndValue to parameterWithValues property on ParameterReferencesAndValues C-object.
- Parameters
_parameterReferenceAndValue – object of type ParameterReferenceAndValue.
-
property
c_obj¶ Pointer to the underlying C-object
ParameterValue¶
-
class
ParameterValue(numericValue=None, type=None, discreteValue=None, _isOwner=True)¶ Bases:
objectParameterValue. A value of a Parameter in Functional data.
- Parameters
numericValue – type float
type – type str
discreteValue – type str
-
property
discreteValue¶ Property discreteValue is of type str.
-
property
numericValue¶ Property numericValue is of type float.
-
property
type¶ Property type is of type str. See
GRANTA_Constants.ParameterTypesfor supported values. There is no need to set this property manually.
-
property
c_obj¶ Pointer to the underlying C-object
Parameters¶
-
class
Parameters(parameters=None, _isOwner=True)¶ Bases:
objectParameters. A collection of
ParameterInformationobjects.- Parameters
parameters – type list of
ParameterInformationobjects
-
property
parameters¶ Property parameters is a list of
ParameterInformationobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddParameter(_parameterInformation)¶ Appends _parameterInformation to parameters property on Parameters C-object.
- Parameters
_parameterInformation – object of type ParameterInformation.
-
property
c_obj¶ Pointer to the underlying C-object
PartialTableReference¶
-
class
PartialTableReference(tableName=None, tableGUID=None, tableID=None, _isOwner=True)¶ Bases:
objectPartialTableReference. A reference to a Granta MI table. Usually, just one of the several optional fields should be provided; where more than one is provided, the highest priority one is used, where the descending priority order is: tableIdentity, tableGUID, tableName.
- Parameters
tableName – type str
tableGUID – type str
tableID – type int
-
property
tableGUID¶ Property tableGUID is of type str.
-
property
tableID¶ Property tableID is of type int.
-
property
tableName¶ Property tableName is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
PathLeaf¶
-
class
PathLeaf(longName=None, recordReference=None, shortName=None, _isOwner=True)¶ Bases:
objectPathLeaf. The folder furthest from the root record folder, for each path checked or created.
- Parameters
longName – type str
recordReference – type
RecordReferenceshortName – type str
-
property
longName¶ Property longName is of type str.
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
property
shortName¶ Property shortName is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
PictureDataType¶
-
class
PictureDataType(URL=None, contentType=None, data=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValuePictureDataType. A type representing a piece of Picture data in a Granta MI Database. To get a byte-array representing the binary data, call ReadBinaryData(). To set the binary data (as part of a data import), use ModifyBinaryData().
- Parameters
URL – type str
contentType – type str
data – type str
isApplicable – type bool
-
ModifyBinaryData(binaryData)¶ len -
-
ReadBinaryData()¶
-
property
contentType¶ Property contentType is of type str.
-
property
data¶ Property data is of type str.
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
URL¶ Property URL is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
PointDataType¶
-
class
PointDataType(unitSymbol=None, points=None, parameters=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValuePointDataType. A type to contain an array of float data types.
- Parameters
unitSymbol – type str
points – type list of
PointValueWithParametersobjectsparameters – type
ParametersisApplicable – type bool
-
property
points¶ Property points is a list of
PointValueWithParametersobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
parameters¶ Property parameters is of type
Parameters.
-
property
unitSymbol¶ Property unitSymbol is of type str.
-
AddPoint(_pointValueWithParameters)¶ Appends _pointValueWithParameters to points property on PointDataType C-object.
- Parameters
_pointValueWithParameters – object of type PointValueWithParameters.
-
property
c_obj¶ Pointer to the underlying C-object
PointValueWithParameters¶
-
class
PointValueWithParameters(valueParameters=None, value=None, _isOwner=True)¶ Bases:
objectPointValueWithParameters. A numeric value with associated
ParameterReferencesAndValuesobject.- Parameters
valueParameters – type
ParameterReferencesAndValuesvalue – type float
-
property
value¶ Property value is of type float.
-
property
valueParameters¶ Property valueParameters is of type
ParameterReferencesAndValues.
-
property
c_obj¶ Pointer to the underlying C-object
RangeDataType¶
-
class
RangeDataType(hasLow=None, high=None, unitSymbol=None, hasHigh=None, low=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueRangeDataType. Type for values of range data. Both LowValue and HighValue must be populated.
- Parameters
hasLow – type bool
high – type float
unitSymbol – type str
hasHigh – type bool
low – type float
isApplicable – type bool
-
property
hasHigh¶ Property hasHigh is of type bool.
-
property
hasLow¶ Property hasLow is of type bool.
-
property
high¶ Property high is of type float.
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
low¶ Property low is of type float.
-
property
unitSymbol¶ Property unitSymbol is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
RasterSize¶
-
class
RasterSize(heightPixels=None, widthPixels=None, _isOwner=True)¶ Bases:
objectRasterSize. Gives the size in pixels of picture data.
- Parameters
heightPixels – type int
widthPixels – type int
-
property
heightPixels¶ Property heightPixels is of type int.
-
property
widthPixels¶ Property widthPixels is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
RecordAttribute¶
-
class
RecordAttribute(dataVersionNumber=None, attribute=None, dataCreatedRecordVersion=None, recordReference=None, hasData=None, dataRetiredRecordVersion=None, parameterDetails=None, dataRevisionInfo=None, _isOwner=True)¶ Bases:
objectRecordAttribute. 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
AttributeValuetype).- Parameters
dataVersionNumber – type int
attribute – type
NamedAttributedataCreatedRecordVersion – type int
recordReference – type
RecordReferencehasData – type bool
dataRetiredRecordVersion – type int
parameterDetails – type list of
ParameterDetailobjectsdataRevisionInfo – type
RevisionInfo
-
property
attribute¶ Property attribute is of type
NamedAttribute.
-
property
dataCreatedRecordVersion¶ Property dataCreatedRecordVersion is of type int.
-
property
dataRetiredRecordVersion¶ Property dataRetiredRecordVersion is of type int.
-
property
dataRevisionInfo¶ Property dataRevisionInfo is of type
RevisionInfo.
-
property
dataVersionNumber¶ Property dataVersionNumber is of type int.
-
property
hasData¶ Property hasData is of type bool.
-
property
parameterDetails¶ Property parameterDetails is a list of
ParameterDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
RecordData¶
-
class
RecordData(recordReference=None, attributeValues=None, _isOwner=True)¶ Bases:
objectRecordData. The values of data for attribute(s) of a particular record.
- Parameters
recordReference – type
RecordReferenceattributeValues – type list of
AttributeValueobjects
-
property
attributeValues¶ Property attributeValues is a
AttributeValueobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
RecordExporterParameters¶
-
class
RecordExporterParameters(record=None, attributes=None, _isOwner=True)¶ Bases:
objectRecordExporterParameters. A type to contain a record and its associated attribute exporter parameters.
- Parameters
record – type
RecordReferenceattributes – type list of
AttributeExporterParametersobjects
-
property
attributes¶ Property attributes is a
AttributeExporterParametersobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
record¶ Property record is of type
RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
RecordFilter¶
-
class
RecordFilter(profile=None, subsets=None, _isOwner=True)¶ Bases:
objectRecordFilter. 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
SubsetReferenceto 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 – type str
subsets – type list of
SubsetReferenceobjects
-
property
subsets¶ Property subsets is of type list of
SubsetReference.
-
property
profile¶ Property profile is of type str.
-
AddSubset(_subsetReference)¶ Appends _subsetReference to subsets property on RecordFilter C-object.
- Parameters
_subsetReference – object of type SubsetReference.
-
property
c_obj¶ Pointer to the underlying C-object
RecordFolderPath¶
-
class
RecordFolderPath(color=None, recordReference=None, treeNames=None, _isOwner=True)¶ Bases:
objectRecordFolderPath. 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 – type str
recordReference – type
RecordReferencetreeNames – type list of str objects
-
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.
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
AddTreeName(value)¶ Appends value to treeNames property on RecordFolderPath C-object.
- Parameters
value – object of type Defs.string_types.
-
property
c_obj¶ Pointer to the underlying C-object
RecordLinkChanges¶
-
class
RecordLinkChanges(unlinked=None, linked=None, _isOwner=True)¶ Bases:
objectRecordLinkChanges. A set of changes to be made to record link groups
- Parameters
unlinked – type list of
NamedTargetedSourceRecordobjectslinked – type list of
NamedTargetedSourceRecordobjects
-
property
linked¶ Property linked is a
NamedTargetedSourceRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
unlinked¶ Property unlinked is a list of
NamedTargetedSourceRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
c_obj¶ Pointer to the underlying C-object
RecordLinkGroup¶
-
class
RecordLinkGroup(standardNames=None, tableFilters=None, name=None, linkedRecords=None, _isOwner=True)¶ Bases:
objectRecordLinkGroup. A type representing a group of linked records.
- Parameters
standardNames – type list of str objects
tableFilters – type list of int objects
name – type str
linkedRecords – type list of
NamedRecordobjects
-
property
linkedRecords¶ Property linkedRecords is a
NamedRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
name¶ Property name is of type str.
-
property
standardNames¶ Property standardNames is a list of str objects. Warning: Do not attempt to edit or append to the returned value.
-
property
tableFilters¶ Property tableFilters is a list of int objects. See
GRANTA_Constants.TablesFilterfor supported values. Warning: Do not attempt to edit or append to the returned value.
-
property
c_obj¶ Pointer to the underlying C-object
RecordLinkGroupDetail¶
-
class
RecordLinkGroupDetail(name=None, reference=None, standardNames=None, reverseReference=None, linkGroupType=None, fromTable=None, toTable=None, reverseName=None, _isOwner=True)¶ Bases:
objectRecordLinkGroupDetail. Detailed information about a Record Link Group in a Granta MI Database.
- Parameters
name – type str
reference – type
RecordLinkGroupReferencestandardNames – type list of str objects
reverseReference – type
RecordLinkGroupReferencelinkGroupType – type str
fromTable – type
TableReferencetoTable – type
TableReferencereverseName – type str
-
property
fromTable¶ Property fromTable is of type
TableReference.
-
property
linkGroupType¶ Property linkGroupType is of type str. See
GRANTA_Constants.RecordLinkGroupTypesfor supported values.
-
property
name¶ Property name is of 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
reference¶ Property reference is of type
RecordLinkGroupReference.
-
property
reverseName¶ Property reverseName is of type str.
-
property
reverseReference¶ Property reverseReference is of type
RecordLinkGroupReference.
-
property
toTable¶ Property toTable is of type
TableReference.
-
property
c_obj¶ Pointer to the underlying C-object
RecordLinkGroupReference¶
-
class
RecordLinkGroupReference(isStandardName=None, name=None, partialTableReference=None, DBKey=None, recordLinkGroupIdentity=None, recordLinkGroupType=None, _isOwner=True)¶ Bases:
objectRecordLinkGroupReference. 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
isStandardName – type bool
name – type str
partialTableReference – type
PartialTableReferenceDBKey – type str
recordLinkGroupIdentity – type int
recordLinkGroupType – type str
-
property
DBKey¶ Property DBKey is of type str.
-
property
isStandardName¶ Property isStandardName is of type bool.
-
property
name¶ Property name is of type str.
-
property
partialTableReference¶ Property partialTableReference is of type
PartialTableReference.
-
property
recordLinkGroupIdentity¶ Property recordLinkGroupIdentity is of type int.
-
property
recordLinkGroupType¶ Property recordLinkGroupType is of type str. See
GRANTA_Constants.RecordLinkGroupTypesfor supported values.
-
property
c_obj¶ Pointer to the underlying C-object
RecordLinkModifications¶
-
class
RecordLinkModifications(unlinkRecords=None, linkAllCombinations=None, unlinkAllRecords=None, linkRecords=None, _isOwner=True)¶ Bases:
objectRecordLinkModifications. A set of modifications to be made to record link groups
- Parameters
unlinkRecords – type list of
UnlinkRecordsobjectslinkAllCombinations – type list of
LinkAllCombinationsobjectsunlinkAllRecords – type list of
UnlinkAllRecordsobjectslinkRecords – type list of
LinkRecordsobjects
-
property
linkAllCombinations¶ Property linkAllCombinations is a list of
LinkAllCombinationsobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
linkRecords¶ Property linkRecords is a list of
LinkRecordsobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
unlinkAllRecords¶ Property unlinkAllRecords is a list of
UnlinkAllRecordsobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
unlinkRecords¶ Property unlinkRecords is a list of
UnlinkRecordsobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddLinkAllCombinations(_linkAllCombinations)¶ Appends _linkAllCombinations to linkAllCombinations property on RecordLinkModifications C-object.
- Parameters
_linkAllCombinations – object of type LinkAllCombinations.
-
AddLinkRecords(_linkRecords)¶ Appends _linkRecords to linkRecords property on RecordLinkModifications C-object.
- Parameters
_linkRecords – object of type LinkRecords.
-
AddUnlinkAllRecords(_unlinkAllRecords)¶ Appends _unlinkAllRecords to unlinkAllRecords property on RecordLinkModifications C-object.
- Parameters
_unlinkAllRecords – object of type UnlinkAllRecords.
-
AddUnlinkRecords(_unlinkRecords)¶ Appends _unlinkRecords to unlinkRecords property on RecordLinkModifications C-object.
- Parameters
_unlinkRecords – object of type UnlinkRecords.
-
property
c_obj¶ Pointer to the underlying C-object
RecordNameSearchRequest¶
-
class
RecordNameSearchRequest(searchFullNames=None, recordName=None, caseSensitiveNames=None, filter=None, populateGUIDs=None, searchShortNames=None, table=None, _isOwner=True)¶ Bases:
objectRecordNameSearchRequest. The input for the RecordNameSearch operation. Both the table and recordName are required.
- Parameters
searchFullNames – type bool
recordName – type str
caseSensitiveNames – type bool
filter – type
RecordFilterpopulateGUIDs – type bool
searchShortNames – type bool
table – type
TableReference
-
property
caseSensitiveNames¶ Property caseSensitiveNames is of type bool.
-
property
filter¶ Property filter is of type
RecordFilter.
-
property
populateGUIDs¶ Property populateGUIDs is of type bool.
-
property
recordName¶ Property recordName is of type str.
-
property
searchFullNames¶ Property searchFullNames is of type bool.
-
property
searchShortNames¶ Property searchShortNames is of type bool.
-
property
table¶ Property table is of type
TableReference.
-
property
c_obj¶ Pointer to the underlying C-object
RecordReference¶
-
class
RecordReference(DBKey=None, historyGUID=None, recordGUID=None, identity=None, version=None, lookupValue=None, _isOwner=True)¶ Bases:
objectRecordReference. 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
DBKey – type str
historyGUID – type str
recordGUID – type str
identity – type int
version – type int
lookupValue – type
LookupValue
-
property
DBKey¶ Property DBKey is of type str.
-
property
historyGUID¶ Property historyGUID is of type str.
-
property
identity¶ Property identity is of type int.
-
property
lookupValue¶ Property lookupValue is of type
LookupValue.
-
property
recordGUID¶ Property recordGUID is of type str.
-
property
version¶ Property version is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
RecordSearchCriterion¶
-
class
RecordSearchCriterion(containsAnySearchValue=None, containsAllSearchValue=None, betweenSearchValue=None, lessThanSearchValue=None, type=None, betweenDateTimesSearchValue=None, searchAttribute=None, greaterThanSearchValue=None, exactlySearchValue=None, doesNotExistSearchValue=None, existsSearchValue=None, doesNotContainSearchValue=None, containsSearchValue=None, _isOwner=True)¶ Bases:
objectRecordSearchCriterion. One criterion that controls results returned from a search. A search comprises one or more such criteria.
- Parameters
containsAnySearchValue – type
ContainsAnySearchValuecontainsAllSearchValue – type
ContainsAllSearchValuebetweenSearchValue – type
BetweenSearchValuelessThanSearchValue – type
LessThanSearchValuetype – type str
betweenDateTimesSearchValue – type
BetweenDateTimesSearchValuesearchAttribute – type
AttributeReferencegreaterThanSearchValue – type
GreaterThanSearchValueexactlySearchValue – type
ExactlySearchValuedoesNotExistSearchValue – type
DoesNotExistSearchValueexistsSearchValue – type
ExistsSearchValuedoesNotContainSearchValue – type
DoesNotContainSearchValuecontainsSearchValue – type
ContainsSearchValue
-
property
betweenDateTimesSearchValue¶ Property betweenDateTimesSearchValue is of type
BetweenDateTimesSearchValue.
-
property
betweenSearchValue¶ Property betweenSearchValue is of type
BetweenSearchValue.
-
property
containsAllSearchValue¶ Property containsAllSearchValue is of type
ContainsAllSearchValue.
-
property
containsAnySearchValue¶ Property containsAnySearchValue is of type
ContainsAnySearchValue.
-
property
containsSearchValue¶ Property containsSearchValue is of type
ContainsSearchValue.
-
property
doesNotContainSearchValue¶ Property doesNotContainSearchValue is of type
DoesNotContainSearchValue.
-
property
doesNotExistSearchValue¶ Property doesNotExistSearchValue is of type
DoesNotExistSearchValue.
-
property
exactlySearchValue¶ Property exactlySearchValue is of type
ExactlySearchValue.
-
property
existsSearchValue¶ Property existsSearchValue is of type
ExistsSearchValue.
-
property
greaterThanSearchValue¶ Property greaterThanSearchValue is of type
GreaterThanSearchValue.
-
property
lessThanSearchValue¶ Property lessThanSearchValue is of type
LessThanSearchValue.
-
property
searchAttribute¶ Property searchAttribute is of type
AttributeReference.
-
property
type¶ Property type is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
RecordVersionState¶
-
class
RecordVersionState(recordReference=None, versionState=None, _isOwner=True)¶ Bases:
objectRecordVersionState. The version status of a particular Record in a Granta MI database.
- Parameters
recordReference – type
RecordReferenceversionState – type int
-
class
VersionState¶ Bases:
object-
Released= 0¶
-
Superseded= 1¶
-
Withdrawn= 2¶
-
Unreleased= 3¶
-
Unversioned= 4¶
-
Unknown= 5¶
-
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
property
versionState¶ Property versionState is of type int. See
RecordVersionState.VersionStatefor supported values.
-
property
c_obj¶ Pointer to the underlying C-object
RecordWithAttributeAddresses¶
-
class
RecordWithAttributeAddresses(recordReference=None, attributeAddresses=None, _isOwner=True)¶ Bases:
objectRecordWithAttributeAddresses. A
RecordReferencewith a list of attributes and their upload URL addresses.- Parameters
recordReference – type
RecordReferenceattributeAddresses – type list of
AttributeAddressobjects
-
property
attributeAddresses¶ Property attributeAddresses is a list of
AttributeAddressobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
AddAttributeAddress(_attributeAddress)¶ Appends _attributeAddress to attributeAddresses property on RecordWithAttributeAddresses C-object.
- Parameters
_attributeAddress – object of type AttributeAddress.
-
property
c_obj¶ Pointer to the underlying C-object
ResolveReferencesRequest¶
-
class
ResolveReferencesRequest(entities=None, _isOwner=True)¶ Bases:
objectResolveReferencesRequest. Input for the ResolveReferences operation.
- Parameters
entities – type list of
RecordReferenceobjects
-
property
entities¶ Property entities is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddEntitie(_recordReference)¶ Appends _recordReference to entities property on ResolveReferencesRequest C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
ResolveReferencesResponse¶
-
class
ResolveReferencesResponse(c_obj)¶ Bases:
objectResolveReferencesResponse. Output from the ResolveReferences operation.
- Parameters
c_obj – ctypes.POINTER to a ResolveReferencesResponse object.
-
property
entityResolutions¶ Property entityResolutions is a
MIEntityResolutionobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
RevisionInfo¶
-
class
RevisionInfo(modifiedUser=None, createdUser=None, updateCount=None, modified=None, created=None, _isOwner=True)¶ Bases:
objectRevisionInfo. Describes when an entity in a Granta MI database was created and updated.
- Parameters
modifiedUser – type str
createdUser – type str
updateCount – type int
modified – type str
created – type str
-
property
created¶ Property created is of type str.
-
property
createdUser¶ Property createdUser is of type str.
-
property
modified¶ Property modified is of type str.
-
property
modifiedUser¶ Property modifiedUser is of type str.
-
property
updateCount¶ Property updateCount is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
RichText¶
-
class
RichText(type=None, value=None, _isOwner=True)¶ Bases:
objectRichText. Contains a piece of text and its type.
- Parameters
type – type int
value – type str
-
property
type¶ Property type is of type int.
-
property
value¶ Property value is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
SearchResult¶
-
class
SearchResult(recordReference=None, ranking=None, shortName=None, longName=None, _isOwner=True)¶ Bases:
objectSearchResult. An extension of
NamedRecordwith a ranking. The higher the ranking the better the match to your search criteria.- Parameters
recordReference – type
RecordReferenceranking – type str
shortName – type str
longName – type str
-
property
longName¶ Property longName is of type str.
-
property
ranking¶ Property ranking is of type str.
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
property
shortName¶ Property shortName is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
SearchService¶
-
class
SearchService(mi_session)¶ Bases:
GRANTA_MIScriptingToolkit.Service.ServiceThe Search service finds Records, within Granta MI Databases, matching specified criteria.
-
SimpleTextSearch(_req)¶ Searches for records matching simple text criteria.
- Parameters
_req –
SimpleTextSearchobject- Returns
SimpleTextSearchResponseobject
-
CriteriaSearch(_req)¶ Searches for records matching attribute-based criteria.
- Parameters
_req –
CriteriaSearchobject- Returns
SimpleTextSearchResponseobject
-
RecordNameSearch(_req)¶ Searches for Records with a given exact Record name.
- Parameters
_req –
RecordNameSearchRequestobject- Returns
SimpleTextSearchResponseobject
-
Series¶
-
class
Series(XYPoints=None, decoration=None, constraints=None, _isOwner=True)¶ Bases:
objectSeries. Type for functional data which includes X-Y data and any constraints.
- Parameters
XYPoints – type
XYDatadecoration – type int
constraints – type
Constraints
-
property
constraints¶ Property constraints is of type
Constraints.
-
property
decoration¶ Property decoration is of type int. See
GRANTA_Constants.GraphDecorationfor supported values.
-
property
c_obj¶ Pointer to the underlying C-object
Service¶
-
class
Service¶ Bases:
objectBase class for Granta MI Service objects. For internal use only.
ServiceLayerResponse¶
-
class
ServiceLayerResponse(errorMessage=None, requestMessage=None, responseMessage=None, responseCode=None, _isOwner=True)¶ Bases:
objectServiceLayerResponse. The HTTP response information from Granta MI Service Layer. Useful for debugging bad requests.
- Parameters
errorMessage – type str
requestMessage – type str
responseMessage – type str
responseCode – type int
-
property
errorMessage¶ Property errorMessage is of type str.
-
property
requestMessage¶ Property requestMessage is of type str.
-
property
responseCode¶ Property responseCode is of type int. This is an HTTP status code.
-
property
responseMessage¶ Property responseMessage is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
SetRecordAttributesRequest¶
-
class
SetRecordAttributesRequest(importRecords=None, importErrorMode=None, _isOwner=True)¶ Bases:
objectSetRecordAttributesRequest. The input to a set record attributes operation. Includes an array of records to import.
- Parameters
importRecords – type list of
ImportRecordobjectsimportErrorMode – type str
-
property
importRecords¶ Property importRecords is of type list of
ImportRecord.
-
property
importErrorMode¶ Property importErrorMode is of type str. See
GRANTA_Constants.ImportErrorModefor supported values.
-
AddImportRecord(_importRecord)¶ Appends _importRecord to importRecords property on SetRecordAttributesRequest C-object.
- Parameters
_importRecord – object of type ImportRecord.
-
property
c_obj¶ Pointer to the underlying C-object
SetRecordAttributesResponse¶
-
class
SetRecordAttributesResponse(c_obj)¶ Bases:
objectSetRecordAttributesResponse. Response for set record attributes operation. Includes an array of import records.
- Parameters
c_obj – ctypes.POINTER to a SetRecordAttributesResponse object.
-
property
recordsImported¶ Property recordsImported is a list of
NamedRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
property
c_obj¶ Pointer to the underlying C-object
ShortTextDataType¶
-
class
ShortTextDataType(value=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueShortTextDataType. Type for values of short text (string) data.
- Parameters
value – type str
isApplicable – type bool
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
value¶ Property value is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
SimpleTextSearch¶
-
class
SimpleTextSearch(recordFilter=None, searchFilter=None, restrictToTables=None, searchValue=None, DBKey=None, searchMode=None, populateGUIDs=None, _isOwner=True)¶ Bases:
objectSimpleTextSearch. The input to a simple text search operation. Both the DBKey, and search value are required.
- Parameters
recordFilter – type
RecordFiltersearchFilter – type int
restrictToTables – type list of
PartialTableReferenceobjectssearchValue – type str
DBKey – type str
searchMode – type int
populateGUIDs – type bool
-
property
restrictToTables¶ Property restrictToTables is a list of
PartialTableReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
DBKey¶ Property DBKey is of type str.
-
property
populateGUIDs¶ Property populateGUIDs is of type bool.
-
property
searchValue¶ Property searchValue is of type str.
-
property
recordFilter¶ Property recordFilter is of type
RecordFilter.
-
property
searchFilter¶ Property searchFilter is of type int. See
GRANTA_Constants.TablesFilterfor supported values.
-
property
searchMode¶ Property searchMode is of type int. See
GRANTA_Constants.SearchModefor supported values.
-
AddRestrictToTable(_partialTableReference)¶ Appends _partialTableReference to restrictToTables property on SimpleTextSearch C-object.
- Parameters
_partialTableReference – object of type PartialTableReference.
-
property
c_obj¶ Pointer to the underlying C-object
SimpleTextSearchResponse¶
-
class
SimpleTextSearchResponse(c_obj)¶ Bases:
objectSimpleTextSearchResponse. The output to the simple text search operation. Contains a list of records returned by the search and a
ServiceLayerResponseobject.- Parameters
c_obj – ctypes.POINTER to a SimpleTextSearchResponse object.
-
property
searchResults¶ Property searchResults is a list of
SearchResultobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
serviceLayerResponse¶ Property serviceLayerResponse is of type
ServiceLayerResponse.
-
AddSearchResult(_searchResult)¶ Appends _searchResult to searchResults property on SimpleTextSearchResponse C-object.
- Parameters
_searchResult – object of type SearchResult.
-
property
c_obj¶ Pointer to the underlying C-object
SourceRecord¶
-
class
SourceRecord(record=None, recordLinkGroups=None, _isOwner=True)¶ Bases:
objectSourceRecord. A type that contains a record reference and associated record link groups.
- Parameters
record – type
RecordReferencerecordLinkGroups – type
LinkedRecordsDataType
-
property
record¶ Property record is of type
RecordReference.
-
property
recordLinkGroups¶ Property recordLinkGroups is of type
LinkedRecordsDataType.
-
property
c_obj¶ Pointer to the underlying C-object
SourceUnitConversionSet¶
-
class
SourceUnitConversionSet(sourceSymbol=None, conversions=None, _isOwner=True)¶ Bases:
objectSourceUnitConversionSet. All the unit conversions available for a specified unit.
- Parameters
sourceSymbol – type str
conversions – type list of
UnitConversionTargetobjects
-
property
conversions¶ Property conversions is a
UnitConversionTargetobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
sourceSymbol¶ Property sourceSymbol is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
SpecificUnitConversionContext¶
-
class
SpecificUnitConversionContext(absoluteUnits=None, currency=None, unitSymbol=None, _isOwner=True)¶ Bases:
objectSpecificUnitConversionContext. Type defining how values with convertable units should be represented.
- Parameters
absoluteUnits – type bool
currency – type str
unitSymbol – type str
-
property
absoluteUnits¶ Property absoluteUnits is of type bool.
-
property
currency¶ Property currency is of type str.
-
property
unitSymbol¶ Property unitSymbol is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
StringUtils¶
-
class
Defs¶ Bases:
object-
unicode_type¶ alias of
str
-
bytes_type¶ alias of
bytes
-
string_types= (<class 'str'>, <class 'bytes'>)¶
-
-
EnsureEncoded(param)¶
SubsetDetail¶
-
class
SubsetDetail(subset=None, name=None, _isOwner=True)¶ Bases:
objectSubsetDetail. Detailed meta-information about a subset in a Granta MI database.
- Parameters
subset – type
SubsetReferencename – type str
-
property
name¶ Property name is of type str.
-
property
subset¶ Property subset is of type
SubsetReference.
-
property
c_obj¶ Pointer to the underlying C-object
SubsetReference¶
-
class
SubsetReference(subsetIdentity=None, name=None, DBKey=None, partialTableReference=None, _isOwner=True)¶ Bases:
objectSubsetReference. 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
subsetIdentity – type int
name – type str
DBKey – type str
partialTableReference – type
PartialTableReference
-
property
DBKey¶ Property DBKey is of type str.
-
property
name¶ Property name is of type str.
-
property
partialTableReference¶ Property partialTableReference is of type
PartialTableReference. When used for input, this only needs to be specified if you are specifying a name rather than an id.
-
property
subsetIdentity¶ Property subsetIdentity is of type int.
-
property
c_obj¶ Pointer to the underlying C-object
SubsetsDataType¶
-
class
SubsetsDataType(dataVersionNo=None, importNodeName=None, namedSubsets=None, nodeName=None, typeString=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueSubsetsDataType. Contains a list of subsets Contains a list of subsets (returned by DataExport for the pseudo attribute for Subsets)
- Parameters
dataVersionNo – type int
importNodeName – type str
namedSubsets – type list of
NamedSubsetobjectsnodeName – type str
typeString – type str
-
property
dataVersionNo¶ Property dataVersionNo is of type int.
-
property
importNodeName¶ Property importNodeName is of type str.
-
property
namedSubsets¶ Property namedSubsets is a
NamedSubsetobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
nodeName¶ Property nodeName is of type str.
-
property
typeString¶ Property typeString is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
TableDetail¶
-
class
TableDetail(tableFilters=None, standardAttributeReferences=None, tableReference=None, attributeReferences=None, defaultLayout=None, defaultSubset=None, _isOwner=True)¶ Bases:
objectTableDetail. Detailed meta-information about a table in a Granta MI database.
- Parameters
tableFilters – type list of int objects
standardAttributeReferences – type list of
AttributeReferenceobjectstableReference – type
TableReferenceattributeReferences – type list of
AttributeReferenceobjectsdefaultLayout – type
NamedLayoutdefaultSubset – type
SubsetDetail
-
property
attributeReferences¶ Property attributeReferences is a list of
AttributeReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
defaultLayout¶ Property defaultLayout is of type
NamedLayout.
-
property
defaultSubset¶ Property defaultSubset is of type
SubsetDetail.
-
property
standardAttributeReferences¶ Property standardAttributeReferences is a list of
AttributeReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
tableFilters¶ Property tableFilters is a list of int objects. See
GRANTA_Constants.TablesFilterfor supported values. Warning: Do not attempt to edit or append to the returned value.
-
property
tableReference¶ Property tableReference is of type
TableReference.
-
AddAttributeReferences(_attributeReference)¶ Appends _attributeReference to attributeReferences property on TableDetail C-object.
- Parameters
_attributeReference – object of type AttributeReference.
-
property
c_obj¶ Pointer to the underlying C-object
TableReference¶
-
class
TableReference(GUID=None, name=None, DBKey=None, ID=None, _isOwner=True)¶ Bases:
objectTableReference. 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.
- Parameters
GUID – type str
name – type str
DBKey – type str
ID – type int
-
property
DBKey¶ Property DBKey is of type str.
-
property
GUID¶ Property GUID is of type str.
-
property
ID¶ Property ID is of type int.
-
property
name¶ Property name is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
TabularColumn¶
-
class
TabularColumn(type=None, name=None, _isOwner=True)¶ Bases:
objectTabularColumn. Describes a column within a particular Tabular data instance.
- Parameters
type – type int
name – type str
-
class
ColType¶ Bases:
object-
Local= 0¶
-
TargetAttribute= 1¶
-
TargetRecord= 2¶
-
TargetTabularColumn= 3¶
-
-
property
name¶ Property name is of type str.
-
property
type¶ Property type is of type int. See
TabularColumn.ColTypefor supported values.
-
property
c_obj¶ Pointer to the underlying C-object
TabularColumnDetail¶
-
class
TabularColumnDetail(name=None, dataType=None, databaseUnit=None, revisionInfo=None, discreteValues=None, type=None, _isOwner=True)¶ Bases:
objectTabularColumnDetail. 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
name – type str
dataType – type str
databaseUnit – type str
revisionInfo – type
RevisionInfodiscreteValues – type list of str objects
type – type int
-
property
dataType¶ Property dataType is of type str.
-
property
databaseUnit¶ Property databaseUnit is of type str.
-
property
discreteValues¶ Property discreteValues is a str objects. Warning: Do not attempt to edit or append to the returned value.
-
property
name¶ Property name is of type str.
-
property
revisionInfo¶ Property revisionInfo is of type
RevisionInfo.
-
property
type¶ Property type is of type int. See
TabularColumn.ColTypefor supported values.
-
property
c_obj¶ Pointer to the underlying C-object
TabularDataCell¶
-
class
TabularDataCell(rangeDataValue=None, discreteDataValue=None, hyperlinkDataValue=None, listDataValue=None, fileDataValue=None, dataType=None, shortTextDataValue=None, integerDataValue=None, pointDataValue=None, logicalDataValue=None, longTextDataValue=None, dateDataValue=None, data=None, pictureDataValue=None, _isOwner=True)¶ Bases:
objectTabularDataCell. 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
rangeDataValue – type
RangeDataTypediscreteDataValue – type
DiscreteDataTypehyperlinkDataValue – type
HyperlinkDataTypelistDataValue – type
ListDataTypefileDataValue – type
FileDataTypedataType – type str
shortTextDataValue – type
ShortTextDataTypeintegerDataValue – type
IntegerDataTypepointDataValue – type
PointDataTypelogicalDataValue – type
LogicalDataTypelongTextDataValue – type
LongTextDataTypedateDataValue – type
DateDataTypedata – type
IDataValuepictureDataValue – type
PictureDataType
-
property
dataType¶ Property dataType is of type str.
-
property
dateDataValue¶ Property dateDataValue is of type
DateDataType.
-
property
discreteDataValue¶ Property discreteDataValue is of type
DiscreteDataType.
-
property
fileDataValue¶ Property fileDataValue is of type
FileDataType.
-
property
hyperlinkDataValue¶ Property hyperlinkDataValue is of type
HyperlinkDataType.
-
property
integerDataValue¶ Property integerDataValue is of type
IntegerDataType.
-
property
listDataValue¶ Property listDataValue is of type
ListDataType.
-
property
logicalDataValue¶ Property logicalDataValue is of type
LogicalDataType.
-
property
longTextDataValue¶ Property longTextDataValue is of type
LongTextDataType.
-
property
pictureDataValue¶ Property pictureDataValue is of type
PictureDataType.
-
property
pointDataValue¶ Property pointDataValue is of type
PointDataType.
-
property
rangeDataValue¶ Property rangeDataValue is of type
RangeDataType.
-
property
shortTextDataValue¶ Property shortTextDataValue is of type
ShortTextDataType.
-
property
data¶ Property data is of type
IDataValue.
-
property
c_obj¶ Pointer to the underlying C-object
TabularDataRow¶
-
class
TabularDataRow(cells=None, Id=None, linkedRecords=None, linkingValue=None, _isOwner=True)¶ Bases:
objectTabularDataRow. 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
cells – type list of
TabularDataCellobjectsId – type int
linkedRecords – type list of
RecordReferenceobjectslinkingValue – type str
-
property
cells¶ Property cells is a
TabularDataCellobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
Id¶ Property Id is of type int.
-
property
linkedRecords¶ Property linkedRecords is a
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
linkingValue¶ Property linkingValue is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
TabularDataType¶
-
class
TabularDataType(columns=None, tabularDataRows=None, isApplicable=None, _isOwner=True)¶ Bases:
GRANTA_MIScriptingToolkit.IDataValue.IDataValueTabularDataType. 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
TabularDataRowtype for more information.- Parameters
columns – type list of
TabularColumnobjectstabularDataRows – type list of
TabularDataRowobjectsisApplicable – type bool
-
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).
- Parameters
type - (*) –
identity - (*) –
-
property
columns¶ Property columns is a list of
TabularColumnobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
isApplicable¶ Property isApplicable is of type bool.
-
property
tabularDataRows¶ Property tabularDataRows is a list of
TabularDataRowobjects. Warning: Do not attempt to edit or append to the returned value.
-
AddColumn(value)¶ Appends value to columns property on TabularDataType C-object.
- Parameters
value – object of type Defs.string_types.
-
property
c_obj¶ Pointer to the underlying C-object
TabularDetail¶
-
class
TabularDetail(columns=None, linkedTable=None, linkingAttribute=None, _isOwner=True)¶ Bases:
objectTabularDetail. 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 – type list of
TabularColumnDetailobjectslinkedTable – type
PartialTableReferencelinkingAttribute – type
NamedAttribute
-
property
columns¶ Property columns is a
TabularColumnDetailobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
linkedTable¶ Property linkedTable is of type
PartialTableReference.
-
property
linkingAttribute¶ Property linkingAttribute is of type
NamedAttribute.
-
property
c_obj¶ Pointer to the underlying C-object
TargetedSourceRecord¶
-
class
TargetedSourceRecord(sourceRecord=None, targetRecords=None, _isOwner=True)¶ Bases:
objectTargetedSourceRecord. A type for unlinking records, contains a source
RecordReferenceand an array of targetRecordReferenceobjects.- Parameters
sourceRecord – type
RecordReferencetargetRecords – type list of
RecordReferenceobjects
-
property
targetRecords¶ Property targetRecords is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
sourceRecord¶ Property sourceRecord is of type
RecordReference.
-
AddTargetRecord(_recordReference)¶ Appends _recordReference to targetRecords property on TargetedSourceRecord C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
TreeRecord¶
-
class
TreeRecord(parentRecordHistoryIdentity=None, color=None, recordReference=None, longName=None, shortName=None, type=None, children=None, _isOwner=True)¶ Bases:
objectTreeRecord. Type representing a single record in a Granta MI database, along with information about its position in the node-tree.
- Parameters
parentRecordHistoryIdentity – type int
color – type str
recordReference – type
RecordReferencelongName – type str
shortName – type str
type – type str
children – type list of
TreeRecordobjects
-
property
children¶ Property children is a list of
TreeRecordobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
color¶ Property color is of type str.
-
property
longName¶ Property longName is of type str.
-
property
parentRecordHistoryIdentity¶ Property parentRecordHistoryIdentity is of type int.
-
property
recordReference¶ Property recordReference is of type
RecordReference.
-
property
shortName¶ Property shortName is of type str.
-
property
type¶ Property type is of type str.
-
AddChildren(_treeRecord)¶ Appends _treeRecord to children property on TreeRecord C-object.
- Parameters
_treeRecord – object of type TreeRecord.
-
property
c_obj¶ Pointer to the underlying C-object
UnitConversion¶
-
class
UnitConversion(factor=None, offset=None, sourceSymbol=None, targetSymbol=None, _isOwner=True)¶ Bases:
objectUnitConversion. Information about how to convert from a specified source unit to a target unit.
- Parameters
factor – type float
offset – type float
sourceSymbol – type str
targetSymbol – type str
-
property
factor¶ Property factor is of type float.
-
property
offset¶ Property offset is of type float.
-
property
sourceSymbol¶ Property sourceSymbol is of type str.
-
property
targetSymbol¶ Property targetSymbol is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
UnitConversionContext¶
-
class
UnitConversionContext(currency=None, absoluteUnits=None, unitSystem=None, _isOwner=True)¶ Bases:
objectUnitConversionContext. Type defining how values with units should be represented
- Parameters
currency – type str
absoluteUnits – type bool
unitSystem – type str
-
property
absoluteUnits¶ Property absoluteUnits is of type bool.
-
property
currency¶ Property currency is of type str.
-
property
unitSystem¶ Property unitSystem is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
UnitConversionContextConversionSet¶
-
class
UnitConversionContextConversionSet(unitConversionContext=None, unitConversions=None, _isOwner=True)¶ Bases:
objectUnitConversionContextConversionSet. All the unit conversions available with a specified unit conversion context
- Parameters
unitConversionContext – type
UnitConversionContextunitConversions – type list of
UnitConversionobjects
-
property
unitConversions¶ Property unitConversions is a list of
UnitConversionobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
unitConversionContext¶ Property unitConversionContext is of type
UnitConversionContext.
-
AddUnitConversion(_unitConversion)¶ Appends _unitConversion to unitConversions property on UnitConversionContextConversionSet C-object.
- Parameters
_unitConversion – object of type UnitConversion.
-
property
c_obj¶ Pointer to the underlying C-object
UnitConversionTarget¶
-
class
UnitConversionTarget(factor=None, offset=None, targetSymbol=None, _isOwner=True)¶ Bases:
objectUnitConversionTarget. 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.
- Parameters
factor – type float
offset – type float
targetSymbol – type str
-
property
factor¶ Property factor is of type float.
-
property
offset¶ Property offset is of type float.
-
property
targetSymbol¶ Property targetSymbol is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
UnitInformation¶
-
class
UnitInformation(unitSymbol=None, unitName=None, _isOwner=True)¶ Bases:
objectUnitInformation. A type used to give details of units for quantities. When this type is output by the Service Layer, both name and symbol will be populated. When passed as input to the Service Layer, only name or symbol need to be populated; if both are populated, only the symbol is used.
- Parameters
unitSymbol – type str
unitName – type str
-
property
unitName¶ Property unitName is of type str.
-
property
unitSymbol¶ Property unitSymbol is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
UnittedParameterValue¶
-
class
UnittedParameterValue(unitSymbol=None, parameterWithValues=None, _isOwner=True)¶ Bases:
objectUnittedParameterValue. A Parameter, along with a single value of that Parameter, optionally with units.
- Parameters
unitSymbol – type str
parameterWithValues – type
ParameterReferenceAndValue
-
property
parameterWithValues¶ Property parameterWithValues is of type
ParameterReferenceAndValue.
-
property
unitSymbol¶ Property unitSymbol is of type str.
-
property
c_obj¶ Pointer to the underlying C-object
UnlinkAllRecords¶
-
class
UnlinkAllRecords(sourceRecords=None, nodeName=None, _isOwner=True)¶ Bases:
objectUnlinkAllRecords. For each given source record, remove all links in the Record Link Group.
- Parameters
sourceRecords – type list of
RecordReferenceobjectsnodeName – type str
-
property
sourceRecords¶ Property sourceRecords is a list of
RecordReferenceobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
nodeName¶ Property nodeName is of type str.
-
AddSourceRecord(_recordReference)¶ Appends _recordReference to sourceRecords property on UnlinkAllRecords C-object.
- Parameters
_recordReference – object of type RecordReference.
-
property
c_obj¶ Pointer to the underlying C-object
UnlinkRecords¶
-
class
UnlinkRecords(sourceRecords=None, nodeName=None, _isOwner=True)¶ Bases:
objectUnlinkRecords. 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
sourceRecords – type list of
TargetedSourceRecordobjectsnodeName – type str
-
property
sourceRecords¶ Property sourceRecords is of type list of
TargetedSourceRecord.
-
property
nodeName¶ Property nodeName is of type str.
-
AddSourceRecord(_targetedSourceRecord)¶ Appends _targetedSourceRecord to sourceRecords property on UnlinkRecords C-object.
- Parameters
_targetedSourceRecord – object of type TargetedSourceRecord.
-
property
c_obj¶ Pointer to the underlying C-object
XYData¶
-
class
XYData(XYPoints=None, XYRanges=None, type=None, _isOwner=True)¶ Bases:
objectXYData. A collection of y-axis values for a graph where the y-axis values are either point or range values.
- Parameters
-
property
XYPoints¶ Property XYPoints is a list of
XYPointobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
XYRanges¶ Property XYRanges is a list of
XYRangeobjects. Warning: Do not attempt to edit or append to the returned value.
-
property
type¶ Property type is of type str.
-
AddXYPoint(_XYPoint)¶ Appends _XYPoint to XYPoints property on XYData C-object.
- Parameters
_XYPoint – object of type XYPoint.
-
AddXYRange(_XYRange)¶ Appends _XYRange to XYRanges property on XYData C-object.
- Parameters
_XYRange – object of type XYRange.
-
property
c_obj¶ Pointer to the underlying C-object
XYPoint¶
-
class
XYPoint(Y=None, isEstimated=None, parameterValue=None, _isOwner=True)¶ Bases:
objectXYPoint. An x-y datum where the y-axis value is a point.
- Parameters
Y – type float
isEstimated – type bool
parameterValue – type
ParameterValue
-
property
isEstimated¶ Property isEstimated is of type bool.
-
property
parameterValue¶ Property parameterValue is of type
ParameterValue.
-
property
Y¶ Property Y is of type float.
-
property
c_obj¶ Pointer to the underlying C-object
XYRange¶
-
class
XYRange(isEstimated=None, lowerY=None, upperY=None, parameterValue=None, _isOwner=True)¶ Bases:
objectXYRange. An x-y datum where the y-axis value is a range.
- Parameters
isEstimated – type bool
lowerY – type float
upperY – type float
parameterValue – type
ParameterValue
-
property
isEstimated¶ Property isEstimated is of type bool.
-
property
lowerY¶ Property lowerY is of type float.
-
property
parameterValue¶ Property parameterValue is of type
ParameterValue.
-
property
upperY¶ Property upperY is of type float.
-
property
c_obj¶ Pointer to the underlying C-object