所有文章全部原创,如有不对,欢迎留言指正。
请按照如下步骤进行:
第一步,新建任一后缀为.xconf的文件,存放于codebase目录下。我在codebase的ext文件夹里新建一个test.properties.xconf文件,路径为codebase/ext/test.properties.xconf。
第二步,向test.properties.xconf里添加基本的配置信息,内容如下:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Configuration SYSTEM "xconf.dtd">
<!--配置自动生成的properties文件的位置 -->
<Configuration targetFile="codebase/ext/test.properties">
<!--
配置该文件内添加的客制化信息的默认存储位置,一般和生成的properties文件位置相同
-->
<Property default="ext/test.properties" name="wt.services.applicationcontext.WTServiceProviderFromProperties.customPropertyFiles" />
</Configuration>
第三步,打开windchill shell 执行如下命令:
xconfmanager -i codebase/ext/test.properties.xconf -p
成功执行完上述步骤后,进行如下验证:
1,观察codebase/ext目录,多了两个文件:test.properties和test.properties.annotated,这两个文件都是不可以手动修改的,只能使用命令将.xconf文件的内容添加进去。
2,打开<wt_home>/declarations.xconf,可以看到在文件的末尾添加了如下信息:
<ConfigurationRef xlink:href="codebase/ext/test.properties.xconf"/>
如果上述文件和内容都能正确创建添加,说明我们自定义的test.properties.xconf生效,同时可以向该文件添加需要的内容。
例如:
可修改test.properties.xconf文件,添加一条验证action的信息到<Configuration></Configuration>节点里,内容如下:
<Service context="default" name="com.ptc.core.ui.validation.UIComponentValidator">
<Option requestor="null" serviceClass="ext.portal.validation.MainTabValidator" selector="product" />
<Option requestor="null" serviceClass="extportal.validation.MainTabValidator" selector="project" />
</Service>
在这里我增加了客制化验证product(产品库菜单)和project(项目库菜单)显示或隐藏的内容。
当然,添加完毕,还需要执行命令
xconfmanager -i codebase/ext/test.properties.xconf -p
以便将test.properties.xconf里的内容写入test.properties和test.properties.annotated文件。
最后,重启windchill服务,添加的内容即可生效。
第一篇windchill相关的文章发布,以后会陆续发布经过准确测试的代码。
分享到:
相关推荐
NULL 博文链接:https://windchill9.iteye.com/blog/670301
NULL 博文链接:https://windchill9.iteye.com/blog/1604732
1.在windchill shell中输入windchill -version,用来查看windchill的版本 2. xconfmanager -s name=value -t 目标文件 -p 用来在xconf和properties文件中增加条目,例如xconfmanager -s wt.servlet.ajp.minPort=...
windchill-软属性相关数据库表整理.docx
1.load data 命令 把单个xml文件导入: windchill wt.load.LoadFromFile -d testType.xml -u hongdu -p hongdu 把csv文件转化为xml文件: windchill wt.load.util.CSV2XML –input test001AttrDefinizer.csv 把多...
windchill guide standard SOP for Mechanical Part X1.pptm
Windchill系统管理员培训PPT学习教案.pptx
Windchill SpringMVC 配置 1、修改E:\ptc\Windchill10\Apache\conf\extra\app-Windchill-AJP.conf文件增加如下内容: JkMount /Windchill/tdms/* ajpWorker
部件操作:WTPartHelper.service.方法 文档操作:WTDocumentHelper.service.方法 EC操作:ChangeHelper2.service....文件夹的操作:FolderHelper.service....生命周期的操作:LifeCycleHelper.manager....
Windchill91安装配置指南,包含数据库及其支持系统运行的软件安装说明。
导出命令需要在windchill shell中执行: windchill wt.load.LoadFromFile -d loadFiles/ext2/ExportType.xml -u wcadmin -p wcadmin
JAVAECLIPSE下配置WINDCHILL远程调试WINDCHILL学习笔记.pdf
windchill JCA介绍
Windchill学习笔记 1.Windchill安装与部署 2.Windchill开发环境配置 3.Windchill配置 4.Windchill开发部署 5.Windchill常用命令 6.Windchill升级 7.Linux安装Oracle
windchill 11.0 m30 产品配置部分逻辑 以及ER图。适合于需要了解windchill 11产品配置部分的原理或需要做此部分的客制化的人员。
详细了解PTC Windchill数据加载的过程和参考,最佳实践指南
overridable="true" targetFile="codebase/wt.properties" value="7"/> <Property name="wt.fv.purgeUnreferencedFvItemsInterval" overridable="true" targetFile="codebase/wt.properties" value="1"/> <!...
windchill12.1.0.0 安装
windchill8.0 BOM差异表自动导出功能实现
Windchill多值 _模糊查询Part.