Topic: Build an initial lens design from a provided spec sheet using the API
Live solution reveal and Q&A: June 22nd, 8am - 9am PDT (See the attachments for a calendar invite)
Ask an Engineer is LIVE again this month! Try out the challenge below to learn more about the API, then come back on June 22nd to discuss. Submit your solution or questions as a reply to this thread.
Challenge opens: June 9th
Submit your code as a reply by: June 21st, EOD
Challenge: Any new project for an optical designer comes with a set of required criteria. The job of the designer is to create a system which meets the requested specifications. To do this, the designer will begin with a generalized starting point, then optimize and tweak the system until it meets (or even exceeds) spec.
Often, specification data is provided in the form of a data sheet which must then be translated into the optical simulation software of choice. An example of a thorough specification sheet is provided by our very own
This month, we challenge you to use the provided data sheet (attached) to create a simple starting system in OpticStudio via the API. Use the API to pull data directly from the spec into the program, understanding that only some of the spec values are directly definable in the initial starting point.
- A calendar invite for June 22nd. This will connect you to the Teams meeting where
@Alliewill present her solution and answer questions.
- A simplified spec sheet, as provided by
- If you want a hint, a sample system is also provided .
- Before starting, try to identify where in OpticStudio each of the spec sheet’s components are found. Knowing how to create the spec will guide you in the process of actually building it in OpticStudio’s API.
- In order to use the ZOS-API in Python, you will need to set up the environment by following the guides here:
- New to the API? No problem. Check out this (free) learning path: Getting Started with ZOS-API
Questions? Comments? Ready to submit your code? Reply to this thread. Replies may be posted in any supported language (English, Chinese, Japanese). Once the event is concluded, the thread will be closed.
The Ask an Engineer live event will be limited to discussing this challenge and general API questions. For questions on troubleshooting personal API scripts or OpticStudio files, please submit a ticket with Zemax Support. In that case, your license support status will be considered.