1、在Windchill系统文件中新建如下目录,该目录与codebase目录同级
D:\ptc\Windchill_11.0\Windchill\wtCustom\wt\lifecycle
2、在 lifecycle 文件夹中创建如下两个 .rbInfo 文件
StateRB.rbInfo
ResourceInfo.class=wt.tools.resource.EnumResourceInfo
ResourceInfo.customizable=true
ResourceInfo.deprecated=false
CHECKING.value=Checking
CHECKING.shortDescription=Checking state
StateRB_zh_CN.rbInfo
ResourceInfo.class=wt.tools.resource.EnumResourceInfo
ResourceInfo.customizable=true
ResourceInfo.deprecated=false
CHECKING.value=正在自检
CHECKING.shortDescription=正在自检状态
如果新建的生命周期状态显示乱码,该中文国际化配置文件需要设置编码格式为 UTF-8-BOM
可以使用 Notepad++ 打开 StateRB_zh_CN.rbInfo 文件,然后设置编码格式
3、在 Windchill 系统命令行窗口执行如下两条命令
resourcebuild wt.lifecycle.StateRB true
ant -f codebase/MakeJar.xml
4、重启windchill