Skip to main content
Solved

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

  • November 2, 2021
  • 1 reply
  • 213 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

 

 

Best answer by David.Nguyen

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

View original
Did this topic help you find an answer to your question?

1 reply

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1113 replies
  • Answer
  • November 3, 2021

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings