Accessing the product filter in a Process Statement using pythonAPI

Hello,

I am trying to access the product filter property in a TransportIn process Statement and add a product type filter using the python API but I am unable to do so.Can anyone help me with this.

image

hi

something like that:

executor = comp.findBehaviour(‘ProcessExecutor’)
routine = executor.Processes[0]
filter = routine.Statements[0].setFilter(VC_FILTER_CONFIGURABLEPRODUCTTYPE)
filter.IsEnabled = True
filter.AcceptedProductTypes = [my_productType]

3 Likes

Thankyou very much.It worked

1 Like