Running the Code V interface script

The mpi2codev.vbs script is located in the data\commands directory where Autodesk Moldflow Insight was installed.

  1. Click View tab > Windows panel > User Interface and then select Command Line.
  2. Type mpi2codev and press Go. The Enter filename dialog appears.
  3. Enter a prefix that will become the base name of the files that the script generates. If your prefix contains an absolute path, all of the generated files will be placed in that location.
  4. Enter the number of grid points in the X and Y directions. This controls the resolution of the generated files. Values between 10 and 50 are usually appropriate.
    Caution: A very coarse grid will reduce the accuracy of the Code V analysis. A very fine grid may result in too few mesh elements contributing to each grid point, magnifying rounding errors and affecting the accuracy. The script warns you if the mesh is too coarse with respect to the grid.
  5. Enter the minimum and maximum X and Y coordinates corresponding to the optical area of the lens. Coordinates are in the same units as the study (for example, millimeters or inches).
The script creates four files, each with the same base name as the prefix you chose.
Interface files created by mpi2codev.vbs
File name Description
prefix_Top_SUR.int Warpage of the top surface
prefix_Bottom_SUR.int Warpage of the bottom surface
prefix_BIR.int Average birefringence of the part
Note: This interface file corresponds to the Autodesk Moldflow InsightPhase shift result, but will look different when plotted in Code V because the result is displayed relative to the wavelength in Code V.
prefix_CAO.int Crystal axis data for the part