zospy.zpcore

Contents

zospy.zpcore#

Manage the connection with OpticStudio and interact with the optical system.

This module provides two classes:

  • ZOS is used to connect to OpticStudio and manage the connection.

  • OpticStudioSystem is used to interact with the optical system.

Examples#

Connect to OpticStudio and create a new optical system:

>>> import zospy as zp
>>> zos = zp.ZOS()
>>> oss = zos.connect()
>>> oss.make_sequential()
>>> oss.SystemName = "New System"
>>> oss.LDE.InsertNewSurfaceAt(1)

Classes

OpticStudioSystem

Wrapper for OpticStudio System instances.

ZOS

A Communication instance for Zemax OpticStudio.