Single Ray Trace from Excel API

  • 2 August 2022
  • 0 replies
  • 154 views

Userlevel 5
Badge +2

 

Hello,

This sample code demonstrates how to change the settings and then run an analysis from Excel API.
The example below uses the Single Ray Trace:

Dim SRT As IA_
Dim SRT_settings As IAS_RayTrace
Set SRT = TheSystem.Analyses.New_RayTrace()
Set SRT_settings = SRT.GetSettings
SRT_settings.Px = 0.5
SRT_settings.Py = 0.5
SRT_settings.Wavelength.SetWavelengthNumber (2)
SRT_settings.Field.SetFieldNumber (2)
SRT.ApplyAndWaitForCompletion

 


0 replies

Be the first to reply!

Reply