Windchill常用命令

1.在windchill shell中輸入windchill -version,用來查看windchill的版本

2.   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

3.修改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,查看是否客製化成功!


4.windchill stop、windchill start、windchill stop&windchill start用來關閉和啓動windchill

5.如果要修改OOTB的xml、jsp、js文件,將文件分別複製到WT_HOME\wtSafeArea\siteMod、WT_HOME\wtSafeArea\ptcCurrent、WT_HOME\wtSafeArea\ptcOrig下,其中ptcCurrent文件夾下存放當前版本的文件,ptcOrig文件夾存放系統最原始的文件,siteMod文件夾存放修改後的文件,編輯保存後,執行ant -f bin/swmaint.xml installSiteChanges命令將文件部署codebase對應的目錄下

6.如果要添加客製化的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文件。

7.ant –f bin\swmaint.xml createSafeArea 

在WT_HOME下生成wtSafeArea文件夾,並且包括ptcCurrent、ptcOrig、siteMod三個子文件夾


8. inforeport wt.epm.EPMDocumen

查看windchill表字段含義,執行命令後在% WCHOME%/temp目錄文件夾下會生成 epm.EPMDocument.out 文件



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章