windchill

注意:windchill的启动要求其他服务已经启动(尤其是Oracle和Aphelion)
windchill的停止要关闭数据库服务之前进行,否则会导致连接异常断开,从而损坏Windchill系统
WT_HOME:可在环境变量中设置;



0、打开Windchill Homepage : start D:\ptc\Windchill_9.0\Windchill\bin\HomePage.html



1、查看Windchill版本:windchill version



2、Windchill的客制化pdf(参考文档)在这个目录下D:\ptc\Windchill_9.0\Windchill\codebase\wt\clients\library;其中IEUsersGuide.pdf中包含了一些常用操作,有关QueryTree的用法在WCAdapterGuide.pdf 中



3、Windchill中用到的类(Class文件)都在D:\ptc\Windchill_9.0\Windchill\codebase目录下;Class的使用方法和作用多在
D:\ptc\Windchill_9.0\Windchill\codebase\wt\clients\library\api目录下;例如:



4、直接查看tasks 目录下的xml文件执行结果,例如D:\ptc\Windchill_9.0\Windchill\tasks\com\business\test-efficientrate.xml;
在地址栏输入:http:\\<machine>/\Windchill\servlet\IE\tasks\com\business\test-efficientrate.xml



10、 CTRL + C(关闭Tomcat、method server)



20、 windchill stop && windchill start(重启Windchill)



30、 修改了action.properties文件后, 需重启Method Server 和 Tomcat 以重新加载



40、 ant -f %WT_HOME%/bin/tools.xml bundle_custom -Dbundle.input =registry (可用于编译3种 resource bundles 文件,当然对 于枚举类型文件,可以用执行enumCumstmoize来代替,例如:StateRB.rbInfo )

ant -f %WT_HOME%/codebase/MakeJar.xml(修改后重建Jar文件,例如为StateRB.rbInfo 增加了Finished属性,要先执行ant -f bin/tools.xml bundle -custom -Dbundle.input =registry ,再执行这条命令)



50、 infoReport [-x]<class-name>(前提条件:类文件同时有*.class 和 *.ClassInfo.ser根据类名{在WT_HOME\temp下}生成*.xml文件/*.out文件,以便查看类的内容;默认生成*.out、[-x]生成*.xml)class-name 是 将WT_HOME\codebase后面的目录改为 . 号连接;如 WT_HOME\codebase\wt\part(BOMUtil.class) -->wt.part.BOMUtil

例:要查看 WT_HOME\codebase\wt\part 目录下的 BOMUtil.class文件 ,执行 infoReport wt.part.BOMUtil(会报错*** d:\ptc\Windchill_9.0\Windchill\codebase\wt\part\ProductProductInstance does not meet criteria for having an info object),原因是这个类的类型不符;

如果使用 WT_HOME\codebase\wt\part 目录下的 ProductProductInstance.class文件 ,执行 infoReport wt.part.ProductProductInstance;成功了(在WT_HOME\temp下生成了*.out文件)



60、windchill com.ptc.netmarkets.util.misc.NmActionServiceHelper (用于重载 *_actionModel.xml;相当于重启Tomcat和method server)====java com.ptc.netmarkets.util.misc.NmActionServiceHelper



70、ResourceBuild *(*是*.rbInfo文件名;即取src后面的去掉后缀的文件名;例如 ext.business.client.*) <用于编译*.rbInfo文件>



80、xconfManager -i path/name -p (用于根据*.properties 文件 第一次生成*.properties.xconf)
xconfManager -p (用于更新对已有*.properties 文件所做的修改)

xconfManager -h 查看xconfManager 命令
windchill -h 查看Windchill帮助命令



90、查看action report:
http://<machine>/Windchill/netmarkets/jsp/carambola/tools/actionReport/action.jsp


查看property Report:
http://<machine>/Windchill/netmarkets/jsp/property/propertyReport.jsp

查看service Report:
http://<machine>/Windchill/netmarkets/jsp/carambola/svc/report.jsp



100、在action.properties、action_en_US.properties、action_en_GB.properties、action_zh_CN.properties、action_zh_TW.properties 更新属性后,必须在任意Internet页面的选项卡“工具-Internet选项-语言”中选择对应的语言,
改变结果才能正常显示出来,例如:当语言选中了,英语(美国)[en-us]时,只能显示action_en_US.properties中的属性


110、Jsp常用标签、导入:
<%@ include file="/netmarkets/jsp/util/begin.jspf"%>
<%@include file="/netmarkets/jsp/util/end.jspf"%>
<%@ taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
<%@ taglib uri ="http://www.ptc.com/windchill/taglib/components" prefix="wca"%>
<%@ taglib uri="http://www.ptc.com/windchill/taglib/carambola" prefix="cmb"%>



120、编译Class文件到指定目录;例如要将 D:\ptc\Windchill_9.0\Windchill\src\com\business\CustomWCAHelper.java
编译生成Class文件到 D:\ptc\Windchill_9.0\Windchill\codebase\com\business 目录下:(命令如下)
javac D:\ptc\Windchill_9.0\Windchill\src\com\business\CustomWCAHelper.java
-d D:\ptc\Windchill_9.0\Windchill\codebase

130、常用命令:
windchill (codebase)目录下类名
  • 1
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值