How to export a lens to CAD in OpticsViewer

In the creation of an optomechanical system, the optical engineer needs to be able to share their finalized optical design with the mechanical engineer so that the mechanical geometry around the assembly can be built and a virtual prototype of the full optomechanical design can be created.

In this article, we will show how the Export CAD File tool can be used for this purpose in the case of a singlet lens and explain some of the export settings and tool limitations.

Authored By Alastair Humphrey, Alessandra Croce

Downloads

Article Attachments

Introduction

The Export CAD Files tool may be used to export sequential or non-sequential components to common CAD file formats such as IGES, STEP, and SAT. This is particularly convenient to migrate the optical design from OpticsViewer to mechanical design software, such as SOLIDWORKS or CREO, which can be used to model the necessary mechanical components and create a virtual prototype of the full optomechanical design. The Export CAD File tool may also be used to export the ray path across the system, providing mechanical engineers with a useful guideline that can be exploited to avoid beam clipping.

Exporting a singlet lens

The file attached to this article contains a simple singlet that has been constructed in Sequential mode. Once you open it, you can navigate to File...CAD Files to open the Export CAD Files tool. This opens a separate window with a number of different settings controlling the export options. The most commonly used settings are briefly described below. More details can be found in the OpticsViewer Help Files at "The File Tab...Export Group...CAD Files."

Let’s assume you only want to export the two surfaces making up the singlet, i.e. the front and rear surfaces. This can be quickly achieved by selecting:

  1. The range of surfaces to export via First Surface and Last Surface
  2. The format to which the surfaces should be exported via File Type (OpticsViewer supports export to STEP, IGES, SAT and STL formats)
  3. OK

Export CAD File

Clicking OK opens a standard file explorer window. In this window:

  1. Enter a File name;
  2. Select a file location;
  3. Select Save to run the tool and export the desired surfaces.

Export Path

How to export rays

The Export CAD File tool can also be used to export ray information into IGES, STEP and SAT formats. Note that STL format does not support a line entity, so when exporting to STL format, no rays are exported.

Let’s now assume you wish to export the full system, with similar settings as the example above, but this time including rays at both Field points as shown in OpticsViewer Layout plot.

Layout

To do so, open File...CAD Files and specify:

  1. The full range of surfaces by selecting First Surface: 1 Stop is free to move and Last Surface: 4
  2. The ray pattern and density to export by selecing Ray Pattern: XY Fan and Number Of Rays: 7
  3. Wavelength: All and Field: All to export all rays. 

Finally, just proceed to run the tool as described above.

Export

The STEP file created may be opened in CAD software, for example, SolidWorks to yield the same distribution of rays that were displayed in OpticsViewer.

SolidWorks

Note that CAD software does not read and show ray information by default.

Limitations of exported data

OpticsViewer supports many types of complex surface and object shapes. Within OpticsViewer, these shapes are modeled exactly, yielding the very high numerical precision required for optical ray trace analysis. However, most of the complex optical shapes OpticsViewer supports have no analog in commonly used CAD programs and no exact representation in common CAD file formats such as IGES, STEP, and SAT.

For this reason, OpticsViewer must approximate the exact surface shape with the closest available analog within the CAD format. This approximation is usually very good, but for some extremely precise aspheric surface shapes, the approximation is not sufficiently accurate for ray tracing. This is not a limitation of OpticsViewer. This is a limitation of the CAD data exchange format and the CAD programs OpticsViewer is being asked to export data to. In these rare cases, it may be necessary to recreate the complex geometry within the CAD program directly rather than use the OpticsViewer export capability. 

KA-01854

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.