通信人家园

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索

军衔等级:

  三级通信军士

注册:2021-6-11
跳转到指定楼层
1#
发表于 2021-7-22 10:20:39 |只看该作者 |倒序浏览

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

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系我们 |网站地图  

GMT+8, 2024-11-22 12:59 , Processed in 0.105255 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部