ZOS-API Application#

This is the boilerplate application class of Zemax. If future updates give a different version, one can update skZemax by updating this code first.

class skZemax.skZemax_subfunctions._app.PythonStandaloneApplication(path=None)[source]#

Bases: object

This class is the boilerplate code provided by Zemax to create a standalone Zemax application in python.

This boilerplate requires the ‘pythonnet’ module. The following instructions are for installing the ‘pythonnet’ module via pip: 1. Ensure you are running a Python version compatible with PythonNET. Check the article “ZOS-API using Python.NET” or “Getting started with Python” in our knowledge base for more details. 2. Install ‘pythonnet’ from pip via a command prompt (type ‘cmd’ from the start menu or press Windows + R and type ‘cmd’ then enter)

python -m pip install pythonnet

exception ConnectionException[source]#

Bases: Exception

exception InitializationException[source]#

Bases: Exception

exception LicenseException[source]#

Bases: Exception

exception SystemNotPresentException[source]#

Bases: Exception