- Home
- Programming ZEMAX
- Extensions
How to Talk to ZEMAX from Visual Basic for Applications
- By Henning Rehn
- Published 30 July 2007
- User Articles , Extensions
-
Rating:




This article describes how to allow programs that support Visual Basic for Applications to communicate with ZEMAX.
How To Compile An Extension Using Microsoft Visual Studio 2005
- By Mark Nicholson
- Published 15 March 2007
- Extensions
-
Rating:




This article describes how to compile an Extension using the Microsoft Visual Studio C++ compiler.
How Do I Write an Extension in C?
- By Mark Nicholson
- Published 4 April 2006
- Extensions
-
Rating:




ZEMAX has a very powerful feature which allows another Windows program to establish a communication link with ZEMAX, and for this other program to get data from ZEMAX on the lens. This is called an Extension. A program can therefore use ZEMAX to trace rays through an optical system, and then receive data back from ZEMAX.
This article shows how to write a simple "hello world" program to link a user-written C-program to ZEMAX.
This article is also available in Japanese.
This article shows how to write a simple "hello world" program to link a user-written C-program to ZEMAX.
This article is also available in Japanese.
How to Talk to ZEMAX from MatLab
- By Derek Griffith
- Published 3 January 2006
- User Articles , Extensions
-
Rating:




This article describes:
- How to set up a communication link between ZEMAX and MatLab®
- How to use the ZEMAX DDE Toolbox for MatLab
- Common problems and how to solve them
How to Write User-Defined Sources and Scatter Functions in Fortran
- By Jeff Casey
- Published 10 December 2007
- User Articles , Extensions , Sources, Splitting and Scattering
-
Rating:




User-defined objects, scatter functions, sources etc are dll programs that communicate with ZEMAX. In this article I show how to write such programs in Fortran. Sample code is provided.
How To Write ZEMAX Extensions in FORTRAN
- By Anthony Richards
- Published 22 June 2006
- User Articles , Extensions
-
Rating:




This article describes how one user took advantage of the published C-language code for ZCLIENT.C, the program that provides Dynamic Data Exchange (DDE) functionality with ZEMAX, to modify it so that the main utility functions provided in that code could be called from a user-provided FORTRAN function instead of having to use the C- or C++ language.
Extensions