Windchill系统常用命令

1.Windchill服务的启动

        HTTPServer的停止/启动:

        通过shell进入HTTPServer\bin目录,执行命令:./apachectl  stop/start

        WindchillDS的停止与启动:.\stop-ds/start-ds

2.查看windchill版本:

        windchill -version

3.properties文件新增条目:

        xconfmanager -s name=value -t 目标文件 -p

用来在xconf和properties文件中增加条目,例如xconfmanager -s wt.servlet.ajp.minPort=8010 codebase/wt.properties 。

其中-s表示根据name找到value,-t表示目标文件,-p表示执行,-u表示用户名,-p表示密码。

如果要验证文件是否修改成功,可以执行命令:xconfmanager -d name,例如:xconfmanager -d wt.servlet.ajp.minPort

4.修改rbinfo文件的两种方式,这里以修改生命周期状态举例说明:
   规范操作:
       a   编辑WT_HOME\wtCustom\wt\lifecycle目录下的StateRB.rbInfo和StateRB_zh_CN.rbInfo文件然后保存
       b   在windchill shell执行ant -f bin/tools.xmlbundle_custom -Dbundle.input=registry 或 toolsbundle_custom批量编译
       c   在windchill shell执行ant -fcodebase\MakeJar.xml 
       d   在windchill shell 执行enumCustomize,查看是否客制化成功!
  不规范操作:
       a   编辑WT_HOME\src\wt\lifecycle目录下的StateRB.rbInfo和StateRB_zh_CN.rbInfo文件然后保存
       b   在windchill shell执行resourcebuild wt.lifecycle.StateRB
       c   在windchill shell执行ant -fcodebase\MakeJar.xml (文件是枚举类型的时候必须执行此命令,文件是不是枚举类型,可以看文件中是否存在此行:ResourceInfo.class=wt.tools.resource.EnumResourceInfo)
       d   在windchill shell 执行enumCustomize,查看是否客制化成功!

5.添加客制化的xconf文件

        在windchill shell中执行命令xconfmanager - i <ConfigurationRef xlink:href="codebase/config/xconf/custom.xconf" /> -p,命令执行成功后会在site.xconf和WT_HOME\declarations.xconf中增加相应条目,同时会在codebase/config/xconf目录下生成custom.properties文件。

6.Filter注册

指定文件注册:xconfmanager -i codebase/config/xconf/customize_additions.xconf -p
全局注册:xconfmanager -p

7.字段扩展

在wtCustom\wt\part\partModel.properties文件中 添加:WTPartMaster.name.UpperLimit=120 WTPartMaster.number.UpperLimit=120
windchill shell 中执行命令:ant -f bin\tools.xml custom_column -Dgen.input=wt.part.*

8.开启临时日志

windchill wt.util.jmx.SetLogLevel -ms 类名/包名 日志级别(INFO/ALL/DEBUG...)

9.开启SQL日志

windchill wt.util.jmx.SetLogLevel -ms wt.pom.sql DEBUG

  • 21
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值