You don't need a macro to do it. Under the criteria selection list you have the option of Merit Function. So you could predefine the merit function using the built PTV Wavefront Error and then select this option under Tolerancing.
lq931105:一楼的RMS Spot Radius指的是分析时按像点半径的平均值做为判定依据分析误差; lv04g} W 楼主说的PV和RMS是指面型误差极值间距和面型平均误差,Ctrl+T-蒙特卡洛-勾选上最好和最坏情况(如下图1),[图片]图1接着自己设置好Tolerancing参数,Lens Data所以数据都改成定值,运行 .. (2015-12-04 16:23)
P
Y