windchill9.0 添加菜单

本文详细介绍如何在Windchill中定制导航栏,包括编辑custom-actionModels.xml与custom-actions.xml文件,创建资源文件fruSubTabRB.rbInfo,并通过ResourceBuild命令完成构建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在 /Windchill/codebase/config/actions目录中有两个文件:custom-actionModels.xml和custom-actions.xml
第一步:
   custom-actionModels.xml中添加如下代码:

   <?xml version="1.0" encoding="UTF-8"?>

   <!DOCTYPE actionmodels SYSTEM "actionmodels.dtd">

   <actionmodels>

     <model name="main navigation">
     <description>Main navigation (tabs)</description>
       <action name="home"      type="navigation"/>

       <action name="program"   type="navigation"/>

       <action name="product"   type="navigation"/>

       <action name="project"   type="navigation"/>

       <action name="change"    type="navigation"/>

       <action name="library"   type="navigation"/>

       <action name="org"       type="navigation"/>

       <action name="site"      type="navigation"/>

       <action name="supplier"  type="navigation"/>

       <action name="customization"   type="navigation"/>

       <action name="FRURelationship"  type="navigation"/>
   
    </model>
</actionmodels>

第二步:
  custom-actions.xml中添加如下代码:

  <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE listofactions SYSTEM "actions.dtd">
<listofactions>
<objecttype name="navigation" class="" resourceBundle="com.lenovo.fru.fruSubTabRB">	
<action name="FRURelationship" enabledwhensuspended="true" renderType="GENERAL"> <command class="netmarkets" method="netmarkets/jsp/com/lenovo/fru/testTree11.jsp" windowType="page"/>
</action>
</objecttype>
</objecttype>
 </listofactions>
 
第三步:
 
在Windchill/src/com/lenovo/fru中创建文件fruSubTabRB.rbInfo
内容如下:

ResourceInfo.class=wt.tools.resource.StringResourceInfo ResourceInfo.customizable=true ResourceInfo.deprecated=false navigation.reports.description.value=Reports navigation.reports.description.comment=Used for the text on the creports subtab under the home main tab. navigation.reports.tooltip.value=Minor Tab: Reports navigation.reports.tooltip.comment=Used for the text on the tooltip for the reports sub tab under the home main tab. navigation.reports.moreurlinfo.value=lmt=25 navigation.reports.moreurlinfo.COMMENT= DO NOT TRANSLATE navigation.reports.moreurlinfo.pseudo=false navigation.reports.activetooltip.value=Active Minor Tab: Reports navigation.FRURelationship.description.value=FRURelationship navigation.FRURelationship.tooltip.value=FRURelationship

最后一步:

在windchillshell中运行如下代码:
ResourceBuild %wt_home%/src/com/lenovo/fru true

至此成功!
 
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值