一、客制化生命周期状态
- 在Windchill系统文件中新建如下目录,该目录与codebase目录同级
D:\ptc\Windchill_11.0\Windchill\wtCustom\wt\lifecycle - 在 lifecycle 文件夹中创建如下两个 .rbInfo 文件
(1)StateRB.rbInfo
ResourceInfo.class=wt.tools.resource.EnumResourceInfo
ResourceInfo.customizable=true
ResourceInfo.deprecated=false
CHECKING.value=Checking
CHECKING.shortDescription=Checking state
(2)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)系统的生命周期状态文件的路径为:
D:\ptc\Windchill_11.0\Windchill\src\wt\lifecycle
- 在 Windchill 系统命令行窗口执行如下两条命令
resourcebuild wt.lifecycle.StateRB true
ant -f codebase/MakeJar.xml
- 重启 Windchill 系统
二、客制化角色
- 在 D:\ptc\Windchill_11.0\Windchill\wtCustom\wt 目录下新建 project 文件夹
- 在 project 文件夹中创建如下两个 .rbInfo 文件
(1)RoleRB.rbInfo
ResourceInfo.class=wt.tools.resource.EnumResourceInfo
ResourceInfo.customizable=true
ResourceInfo.deprecated=false
R&D.value=R&D Representatives
R&D.shortDescription=R&D Representatives
R&D.order=2620
TEST.value=Test Representatives
TEST.shortDescription=Test Representatives
TEST.order=2630
PDTL.value=PDTL
PDTL.shortDescription=PDTL
PDTL.order=2640
注意:order 不能和之前定义的角色的 order 重复,可以查看 D:\ptc\Windchill_11.0\Windchill\src\wt\project 目录下的 RoleRB.rbInfo 文件,移到最下面看看最新添加的角色的 order 值
(2)RoleRB_zh_CN.rbInfo
ResourceInfo.class=wt.tools.resource.EnumResourceInfo
ResourceInfo.customizable=true
ResourceInfo.deprecated=false
R&D.value=研发代表
R&D.shortDescription=研发代表
R&D.order=2620
TEST.value=测试代表
TEST.shortDescription=测试代表
TEST.order=2630
PDTL.value=PDTL
PDTL.shortDescription=PDTL
PDTL.order=2640
同样的,如果新建的角色显示乱码,该中文国际化配置文件需要设置编码格式为 UTF-8-BOM
-
在 Windchill 系统命令行窗口执行如下两条命令
resourcebuild wt.project.RoleRB true
ant -f codebase/MakeJar.xml -
重启 Windchill 系统