Consumer Update Instruction

The Update Instruction file (consumer.py) contains the Python code that provides update instructions for the consuming component to obtain the output data from the upstream producer.

#obtain input data
container=ExternalConnectionSystemContainer
upstreamData=container.GetInputDataByType(InputType="MyData")
fileRef=None
upstreamDataCount=upstreamData.Count
if upstreamDataCount>0:
    fileRef=upstreamData[0]
#if no new data...nothing to process from upstream sources. 

Release 18.2 - © ANSYS, Inc. All rights reserved.