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
Wrapper for OpticStudio System instances. |
|
A Communication instance for Zemax OpticStudio. |