Programming C# Modules

The customization potential of the optical modeling and design software VirtualLab Fusion is nowhere more evident than in the modules. While most other programmable items in the software present the logical constraint of pre-defined inputs and outputs, the modules (be they coded in C# or Visual Basic) offer the user total freedom of implementation. Below, we present an in-depth tutorial describing the basic workflow for how to program and use your own modules, with a simple example given in detail as illustration. We include a second, more advanced example in a more condensed format.

How to Work with the C# Module and Example

LightTrans

Learn how to program and work with your own custom C# modules in VirtualLab Fusion with this detailed tutorial.

Programming a Module that Smooths the Edges of a Structure

LightTrans

This C# module has the very specific purpose of being used for a tolerance analysis of fabrication errors: taking as input the designed profile of a diffractive element, it rounds off the ideally sharp edges to attain a more realistic configuration.

Download free trial version

Download free trial version