- Point and range attributes
- Date, integer, and logical attributes
- Functional attributes
- Tabular attributes
- File, picture, and hyperlink attributes
- Pseudo-attributes
Connect to MI
Get a database and table.Create a new record and path
Create a path in the table from a starting folder, in this case, the top level folder, usingpath_from().
Create a new Record object at the end of the path.
Edit the record’s attributes
Access some empty discrete and text attributes associated with the record.Set the record’s release status
If the record is being created in a version-controlled table, decide whether the record should be released after creation. The record is created in the unreleased state to allow more data to be added later without creating a new version.Write your changes to MI
First, specify the attributes on the record which you want to update on the server.‘Not Applicable’ flag
Further edits can be made to the same Record object. In this case, the Condition attribute is not relevant, so theis_applicable property is set to False. This sets the attribute to ‘Not Applicable’ in Granta MI.
Record.all_versions property for a dictionary of all versions of the record. The dictionary
contains a single version, confirming that only a single version was created in Granta MI.
Meta-attributes
Meta-attributes are edited similarly to attributes, except that meta-attributes are a property of the parent attribute, as opposed to the table. It is strongly recommended to ensure the parent attribute has a value if the meta-attribute is being set; the behavior of a populated meta-attribute with an empty parent attribute is undefined. If the parent attribute doesn’t already have a value, set the parent attribute value.Record.all_versions property again. The dictionary contains two versions, confirming that updating the
Mooney-Rivlin attribute has created and released a second version of the record.