C:\Siemens\Teamcenter10\lang\textserver\zh_CN
在ue_errors.xml的副本中,添加一行以定义与自定义消息对应的错误字符串。在文件中的一对错误标记中键入文本。 如果要使用替换标记,请使用 %n$。 例如: <错误 ID = "10">无法连接 %1$</error> 要使用替换,您必须使用 EMH_store_initial_error_s1() 或 EMH_store_error_s1() 类型函数而不是 EMH_store_initial_error())在堆栈上推送错误。
User Defined Error Message Example
The following should be set up inside a local copy of ue_errors.xml:
<textsrv filename="ue_errors.xml">
<errors module="ue" error_base="919000">
<error id="1">USER_EXIT: User Exit %1$ failed</error>
<error id="2">%3$ can not be blank: %1$/%2$.</error>
<\errors>
<textsrv filename="ue_errors.xml">
The following should be set up in your program:
#include <tc/emh_const.h>
...
#define C9_boltrev_prop_fail (EMH_USER_error_base + 2)
语法:
<error id="001">同步数据库配置未设置,请联系管理员。</error>
<error id="002">程序执行存在错误:%1$</error>
红色 这种 后面可以拼接自定义错误信息输出,如:程序执行存在错误:参数错误。。。