ai-zemax-optical-design

Automate optical design with Ansys Zemax OpticStudio via ZOS-API for zoom lenses and staged optimization.

46|9|Updated Jun 3, 2026
One-click install
npx skills add https://github.com/Jerry-del975/ai-zemax-optical-design --skill ai-zemax-optical-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-zemax-optical-design
Source: https://github.com/Jerry-del975/ai-zemax-optical-design/tree/main
Command: npx skills add https://github.com/Jerry-del975/ai-zemax-optical-design --skill ai-zemax-optical-design

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires zospy, pythonnet, and includes scripts (resource) and references (resource) and examples (resource) and tests (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the optical design process using Ansys Zemax OpticStudio, saving time and reducing errors in complex design scenarios.

Core Features & Use Cases

  • Automated Design Loop: Automates the entire optical design process, from requirement parsing to final design generation.
  • Multi-Configuration Zoom Lenses: Supports multi-configuration zoom lens design with automatic MCE setup and optimization.
  • Custom Profiles: Allows the use of custom profiles for different lens types and design requirements.
  • Use Case: Design a 18-55mm F/1.4 zoom lens with this Skill, leveraging custom profiles and automatic optimization.

Quick Start

Run the zoom_lens_design_agent.py script with the requirements file 'apsc_18-55_f1.4_zoom_requirements.json' and output directory 'output/aps-c-zoom'.

Frequently Asked Questions about ai-zemax-optical-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate optical design for multi-configuration zoom lenses in Ansys Zemax OpticStudio?

You can automate optical design for multi-configuration zoom lenses by running the zoom_lens_design_agent.py script with ZOS-API. It handles automatic multi-configuration editor (MCE) setup and staged optimization to generate final designs.

Do I need Python packages like zospy to automate Zemax OpticStudio?

Yes, automating Zemax OpticStudio requires the zospy package for ZOS-API access, with pythonnet as a fallback dependency. These libraries allow Python scripts to communicate directly with the optical design software.

Can I design a specific zoom lens profile like an 18-55mm F/1.4 automatically?

Yes, you can design an 18-55mm F/1.4 zoom lens automatically by providing a JSON requirements file. The script applies custom profiles and automatic optimization to generate the optical system.

What is the best way to set up staged optimization for custom lens profiles?

The best way to set up staged optimization for custom lens profiles is using the automated design loop provided by the Zemax ZOS-API script. It parses requirements, applies custom profiles, and executes staged optimization sequentially.

Does this automation approach work for manufacturing validation and optical system analysis?

Yes, this Zemax ZOS-API automation applies to optical system analysis and manufacturing validation. It manages the entire design loop from initial requirement parsing to final design generation for these use cases.

Why use pythonnet as a fallback when automating Zemax optical design?

Pythonnet serves as a fallback to enable Python interactions with the .NET based Zemax ZOS-API when primary connectivity methods are unavailable. It ensures the automation scripts maintain access to core OpticStudio functions.