Skip to main content

F# solve from Excel API

  • August 2, 2022
  • 1 reply
  • 140 views

Csilla Timar-Fulep
Zemax Staff
Forum|alt.badge.img+2

Hello,

This sample code demonstrates how to set solves from Excel API.
The example below applies an F# solve:

Dim Surface_Last As ILDERow
Set Surface_Last = TheLDE.GetSurfaceAt(TheLDE.NumberOfSurfaces - 2)


Dim Solver As ISolveData
Dim SolveFNumber As ISolveFNumber
Set Solver = Surface_Last.RadiusCell.CreateSolveType(SolveType_FNumber)
Set SolveFNumber = Solver.[_S_FNumber]
SolveFNumber.FNumber = 3.1
Surface_Last.RadiusCell.SetSolveData Solver

For further examples about how to use the Excel API, please take a look at these sample files:
ZOS-API and Excel | Zemax Community

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

1 reply

yuan.chen
Zemax Staff
Forum|alt.badge.img+3
  • Zemax Staff
  • 275 replies
  • August 3, 2022

Csilla, this post is great! I made a summary of materials that we have about ZOSAPI Excel. ZOSAPI Excel资料合集 | Zemax Community


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