通信人家园

标题: FRED软件导入Zemax镜头文件输入格式出错问题的解决方法  [查看完整版帖子] [打印本页]

时间:  2021-7-22 10:20
作者: lanseyouyu1976     标题: FRED软件导入Zemax镜头文件输入格式出错问题的解决方法

根据2010年9月17日的发布信息,多语言支持的ZEMAX以Unicode为默认格式的*. zmx文件进行编码。FRED v9.110及其以下版本不能识别Unicode码,在导入镜头文件时会出现“Unknown file type” 现象。自FRED v9.111开始的高级版本将永久解决这一问题。为解决这一问题,可采取如下步骤:

1)备份*.zmx文件以保存源文件

2)用记事本打开*.zmx file

3)选择“另存为”和ANSI格式文件选项

4)用同样的文件名进行保存并退出

至此,通过把ZEMAX的*.zmx 文件设置为ANSI编码格式,将彻底避免导入镜头文件时出现“Unknown file type” 这种现象。

关于这一问题解决办法的详细文档,




“Unknown file type” error upon import of Zemax lens prescription:
As of the 17 September 2010 release, multi-language support in Zemax now encodes
*.zmx files in Unicode format by default. Versions of FRED up to and including 9.110
don't recognize Unicode. We've since addressed this issue in the development version
(9.111) and a permanent fix will be in the next major release. To address this issue:
1) Make a copy of the *.zmx file to preserve the original
2) Open the *.zmx file in Notepad
3) Choose "Save As" and use the ANSI format option
4) Save back out using the same exact file name
Setting the Zemax ZMX File Encoding preference to ANSI will avoid this issue entirely.
------------------
As of the 26 October 2010 release of Zemax, the WAVL command in *.zmx files is no
longer being written out. By adding the line
WAVL 4.86E-1 5.87E-1 6.56E-1
to your ANSI version of the ZMX file, it appears that FRED can correctly recognize the
file.






通信人家园 (https://www.txrjy.com/) Powered by C114