How are you going to "编辑一个评价函数"? Using ZEMAX Macro? If so, make use of numeric funcitons such as RAGX/RAGY or RAYX/RAYY with RAYTRACE.
六月的天空
2011-04-19 20:04
RAYTRACE hx, hy, px, py FpE83}@".w aperture=RAYV() ]DdD
FLM PRINT "The x coordinate for surface ", surf, " is ", RAYX(surf) 3O<<XXar PRINT "The y coordinate for surface ", surf, " is ", RAYY(surf)