Skip to main content
Version: V3 (Ignition 8.3)

system.mes.operation.getAllLocationPathsWithOperations

Description​

Retrieves all Location paths for locations that have associated Operations. Optionally filters by a path prefix.

Syntax​

system.mes.operation.getAllLocationPathsWithOperations()
system.mes.operation.getAllLocationPathsWithOperations(pathPrefix)

Parameters​

Method 1: No Parameters​

ParameterTypeNullableDescription
None--This method does not take any parameters.

Method 2: With Path Prefix​

ParameterTypeNullableDescription
pathPrefixStringTrueThe path prefix to filter locations by.

Returns​

Returns a list of strings representing location paths that have associated operations.

Code Examples​

# Retrieve all location paths with operations
opPaths = system.mes.operation.getAllLocationPathsWithOperations()
print(opPaths)

# Retrieve only operation location paths under a specific branch
filteredPaths = system.mes.operation.getAllLocationPathsWithOperations('DairyCo/Plant1/')
print(filteredPaths)