Skip to main content
Solved

Close ToleranceDataViewer window pop out after tolerancing analysis finished

  • March 4, 2022
  • 2 replies
  • 164 views

I am running tolerancing analysis (TA) using Matlab. I noticed that one tolerance data viewer window will show up after the TA is finished. I would like to close the viewer window using Matlab script however I was not able to find the right way to do it in ZOS-API manual. Do you know how to close the viewer window using Matlab script? Thank you very much.

Best answer by David.Nguyen

Hi Yao,

 

This is an interesting question. I think the Tolerance Data Viewer is a Tool and the one that’s create by the Tolerance tool can’t be access easily through the ZOS-API (at least I did not manage). If it was an analysis you could have found it afterwards with the Get_AnalysisAtIndex().

However, if you don’t want it at all. There’s a property of the Tolerance tool that is called OpenDataViewer. If you set it to False, it shouldn’t open this window. This is the line I would use in Python:

TheTolerance.OpenDataViewer = False

I hope this helps. Take care,

 

David

2 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1159 replies
  • Answer
  • March 4, 2022

Hi Yao,

 

This is an interesting question. I think the Tolerance Data Viewer is a Tool and the one that’s create by the Tolerance tool can’t be access easily through the ZOS-API (at least I did not manage). If it was an analysis you could have found it afterwards with the Get_AnalysisAtIndex().

However, if you don’t want it at all. There’s a property of the Tolerance tool that is called OpenDataViewer. If you set it to False, it shouldn’t open this window. This is the line I would use in Python:

TheTolerance.OpenDataViewer = False

I hope this helps. Take care,

 

David


  • Author
  • Monochrome
  • 3 replies
  • March 6, 2022

Thank you very much, David. That is exactly the answer I am looking for.