FRED软件导入Zemax镜头文件输入格式出错问题的解决方法 点击:353 | 回复:0



lynnli

    
  • 精华:0帖
  • 求助:0帖
  • 帖子:240帖 | 0回
  • 年度积分:0
  • 历史总积分:725
  • 注册:2021年6月02日
发表于:2021-07-22 10:18:53
楼主

根据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.




楼主最近还看过


热门招聘
相关主题

官方公众号

智造工程师