Error Occurred When the Script of Step “Cal Results by Python” Returned Nested Lists

Symptom:

When the script run by Step Cal Results by Python included a RETURN statement of nested lists, the following error message appeared when the Step was executed: Exception caught when running the script: Unable to cast Python instance to C++ type ....

Affected Software Versions:

Mech-Vision 1.6.0 and later

Possible Cause:

Currently, Python script does not support returning nested lists.

Solution:

Avoid including a RETURN statement that returns nested lists into the Python script called by Step Cal Results by Python.