Skip to main content

ZOS-API- How to set operands and save .tol file in Tolerance Data Editor?

  • September 30, 2019
  • 0 replies
  • 159 views

Julia
Zemax Staff
Forum|alt.badge.img+2
  • Zemax Staff
  • 53 replies
Toperand1= TheSystem.TDE.GetOperandAt(1);
Toperand1.ChangeType(ZOSAPI.Editors.TDE.ToleranceOperandType.TTHI);
Toperand1.GetCellAt(2).IntegerValue=3;
Toperand1.GetCellAt(3).IntegerValue=4;
Toperand1.Min=-0.5;
Toperand1.Max=0.5;
Toperand1.Comment= ' 'Thickness of surf3'' ;
 

The above code set tolerance operand#1 as TTHI.


tolFileName= ‘C:\MYDIR\MYLENS.TOL’;
TheSystem.TDE.SaveToleranceFile (tolFileName);
TheSystem.TDE.SaveToleranceFile('file in default folder.tol');
TheSystem.TDE.LoadToleranceFile ('file in default folder.tol');
  • Save tolerance file to user defined path
  • Save  tolerance file to default folder
  • Leave tolerance file
Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

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