Skip to main content
Work with point and range data, including multi-valued points and open-ended ranges.

Connect to MI

Get a database and table.

Create a new record and path

Define a path in the table from a starting folder (in this case the top level folder) using path_from(). If the path does not exist, the required folders will be created. Create a new Record object at the end of the path.
Previous cell output:

Edit the record’s attributes

Access some empty point and range attributes.

Point attributes

Schema Administrators can set whether point attributes accept multiple values or a single value. In Scripting Toolkit, these attribute values are represented via AttributePointMulti or AttributePointSingle. Single-valued attributes must be set to a single float or integer value.
To define a value with parameters, set the .value property to a tuple of ParameterizedPointValue.

Range attributes

Access the value property directly and assign a Range instance. Omitting either the ‘low’ or ‘high’ value creates an open-ended range.
The high and low values can separately be flagged as either inclusive (≤ and ≥) or exclusive (< and >). Ranges default to inclusive.
Previous cell output:

Write your changes to MI

First, specify the attributes on the record which you want to update on the server. Then write the changes to MI. The list of updated Record objects is returned.

Output the record’s attributes

Access the attribute values via the same properties you used to assign them.
Previous cell output:
Define a function to format ranges as strings with the appropriate inclusive or exclusive inequality symbols.
Previous cell output: