IOpticalSystem ThePrimarySystem

'ThePrimarySystem' gives you access to the currently loaded .ZMX file and provides several operations and data access.

IOpticalSystem ThePrimarySystem = TheApplication.PrimarySystem;

Next: