Skip to main content

system.mes.location.getAllLocationProperties

Description

Retrieves a list of all Location Properties records in the system.

Syntax

system.mes.location.getAllLocationProperties()

Parameters

This method does not take any parameters.

Returns

Returns a list of JSON objects representing all location properties in the system.

Each object in the list has the following properties:

NameTypeDescription
nameStringThe name of the location property.
descriptionStringA detailed description of the location property.
dataTypeStringThe data type of the property (e.g., String, Int8, Float8, Boolean).
lowLimitDoubleThe minimum value for the property (for numeric types).
highLimitDoubleThe maximum value for the property (for numeric types).
formatStringFormat string for the property value display.
unitOfMeasureIdString (ULID)The ULID of the unit of measure associated with the property.
unitOfMeasureNameStringThe name of the unit of measure associated with the property.
unitOfMeasureSymbolStringThe symbol of the unit of measure associated with the property.
optionsStringComma-separated list of options for the property.
nullableBooleanIndicates if the property can be null.
defaultValueObjectDefault value for the property.
idString (ULID)The ULID of the location property.
enabledBooleanIndicates if the property is active and enabled.
notesStringNotes related to the property.
spare1StringAdditional field for user-defined context.
spare2StringAdditional field for user-defined context.
spare3StringAdditional field for user-defined context.

Code Examples

# Retrieve all location properties
allProperties = system.mes.location.getAllLocationProperties()

# Output the number of properties
print("Found {0} location properties".format(len(allProperties)))

# Loop through each property and print its name and data type
for prop in allProperties:
print("Name: {0}, Data Type: {1}".format(prop['name'], prop['dataType']))