October 2008

Calendar

LEDs 2008
Sept. 29-Oct. 1, 2008
Booth 56
San Diego, California
Visit Web site

OSA Frontiers in Optics
Oct. 19-23, 2008
Booth 514
Rochester, New York
Visit Web site

Introduction to CODE V
Nov. 3-4, 2008
Salzburg, Austria
Click here for more details

Selected Advanced Topics in CODE V
Nov. 5-7, 2008
Salzburg, Austria
Click here for more details

SPIE Photonics West 2009
Jan. 24-29, 2009
Booth 615
San Jose, California
Visit SPIE Web site

Introduction to CODE V
April 20-24, 2009
Pasadena, California
See details or enroll

Advanced Topics in CODE V
April 27-May 1, 2009
Pasadena, California
See details or enroll


For a complete list of CODE V events worldwide, visit our Web site:

Quick Tips for CODE V Macro Writers

CODE V's Graphical User Interface provides easy access to CODE V's analysis, optimization, tolerancing, and other fabrication support features.  However, CODE V's command language and Macro-PLUS programming language allow users to further extend the power of CODE V, as well as increase the efficiency of its use.   Included with CODE V are over 300 sample macros that can be used as is, or as starting points for users to develop their own customized macros.  This newsletter provides some quick tips for both using existing macros, as well as writing your own.

Adding Macros to the Tool Bar or Menus
The CODE V Macro Manager (Tools > Macro Manager…) provides access to the CODE V sample macro library, as well as user-written macros.  It also provides a way to add toolbar or menu shortcuts to frequently accessed macros.  To add a macro button to your toolbar, open the Macro Manager, select or browse to the macro of interest, and click the “Assign to Toolbar” button:

In the dialog that opens, select one of the available Macro toolbar buttons and click the "Prompt for Input" check box.  To help identify which macro is associates with this toolbar button, enter some identifying text in the Macro Tooltip field.  When you hover over the toolbar button this text will be displayed.

Once defined, simply drag the macro button to the toolbar to add it.  You can also go directly to the Customize dialog shown above via Tools > Customize, and clicking the Macros tab.  You can then browse to the macro of interest in the Macro File field.

The process for adding a macro to a menu is similar.  After selecting the desired macro in the Macro Manager, click the "Assign to Menu" button.  You can then choose to add the macro to the Lens, Display, Review, Analysis, or Optimization Menu.  The Menu Name field allows you to provide the text for the menu pick you will use to run the macro.  In the example below, "Reference Ray Check" is added to the Analysis menu for running the refcheck.seq macro.

The Customize dialog shown above can also be accessed directly via Tools > Customize

Please refer to the CODE V Reference Manual for more details on adding macros to the toolbar and menu, as well as other customization features.

Enhanced Macro Editor
Built in to CODE V is a simple text editor, CVEDIT.exe, that is invoked from the command line via the EDI command, or when you open a CODE V .seq file in the Windows Explorer.  While CVEDIT is simple and efficient to use, it lacks some of the "bells and whistles" of more advanced text editors.  Another option that some customers (as well as some members of the CODE V Tech Support staff) have found useful is a freeware editor called PSPad (www.pspad.com).  PSPad supports feature like automatic syntax coloring, a built-in file browser and navigation tabs, automatic indenting, and more:

For details on replacing CVEDIT with PSPad, please refer to the 2008 CODE V User Group Presentation, CODE V Tips and Tricks, which can be downloaded from ORA's Customer Service Web site, www.oraservice.com, under CODE V Support > User Group Presentations.

Updates to the Customer Area of the Web

  • An updated copy of the macro newglassprv.seq has been added under CODE V Support > Macro and User-defined Feature Downloads > Macros from ORA Tech Support.  This macro can be used to define glasses that are not yet included in CODE V's glass catalog, or have been updated since the release of CODE V 9.82.  The updated macro includes new or updated data since 9.82 for Hoya E-FL6; Schott CaF2, SiO2, N-KZFS5, N-SF2, & P-SF8; Hikari E-PSKH1 & E-LASFH17; Sumita K-BPG2 & K-BaFn3; Ohara LAH86.

  • An updated copy of the zemaxtocv.seq macro is available under CODE V Support > Macro and User-defined Feature Downloads > Update CODE V Sample Macros.  This update includes additional support of variable grating order and spacing, improved lens notes, and support of NSG glass.