Skip to main content

Single Ray Trace from Excel API


Csilla Timar-Fulep
Zemax Staff
Forum|alt.badge.img+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

 

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