Skip to end of metadata
Go to start of metadata
Description

Returns a new instance of a MESObjectFilter object that properties can be set on. This is typically used when a script function requires a MESObjectFilter object as a parameter.

Syntax

system.mes.object.filter.createFilter()

  • Parameters

None

  • Returns

MESObjectFilter - A new instance of a MESObjectFilter object.

  • Scope

All

Code Examples
Code Snippet
#Create a filter.
filter = system.mes.object.filter.createFilter()
 
filter.setEnableStateName('ENABLED')
filter.setMESObjectTypeName('EquipmentClass')
filter.setMESObjectNamePattern('Unload *')
results = system.mes.searchMESObjects(filter)
for link in results:
    print link.getName()
Output
Unload Station 1
Unload Station 2
  • No labels