Solved

How to get COMP Value in Tolerance Data Viewer Sensitivity through Python-API

  • 2 November 2021
  • 1 reply
  • 164 views

Hello,

I would like to get Tolerance Sensitivity Data in Tolerance Data Viewer through Python-API.I know how to get Criterion Value in Python-API, but I don’t know how to get COMP Value in each row. ZOSAPI.Tools.Tolerancing.ISensitivityData.GetCompensator(index) treate just statistics value, not each comp value in Tolerance Operand.

Do you know how to get comp column data in Python-API?

Thank you

 

Hideki Nishioka

 

 

icon

Best answer by David.Nguyen 3 November 2021, 12:06

View original

1 reply

Userlevel 7
Badge +2

Hi Hideki,

 

If you don’t find it in the API, you can always save your tolerance data to a text-file from the API and read the compensator value from there. I haven’t tried this myself, but you could use the OutputFile property of the tolerancing tool, and then simply read the text file for the compensator value (as shown in my screenshot below using the user interface).

 

 

Let me know if you need help with the coding part, but you already seem at ease with the ZOS-API.

Take care,

 

David

Reply