其他 Windchill 功能 > 制造过程管理 > 常规 MPMLink 浏览器自定义
  
常规 MPMLink 浏览器自定义
以下自定义描述了可以应用于 Windchill MPMLink 浏览器的典型更改。
更改 Windchill MPMLink 浏览器的可用性
安装后,所有 Windchill MPMLink 用户均有权访问以下浏览器。
产品结构浏览器,
制造产品结构浏览器,
制造资源浏览器,
制造标准浏览器,
工艺计划浏览器,
制造甘特浏览器。
在某些配置中,您可能想要限制对某个浏览器的访问。例如,仅制造用户有权访问“制造产品结构浏览器”,所有其他用户均有权访问“产品结构浏览器”。
要在“站点”“组织”级别设置此配置:
使用“配置文件”选项卡为制造用户创建一个配置文件。
将您想要授予浏览器访问权限的各个用户添加到该配置文件。
更改默认测量单位
使用一组属性 (时间、成本和尺寸) 来定义 Windchill MPMLink 对象。
默认测量系统是公制。要更改此设置,例如更改为 US 系统,请使用“首选项管理”实用程序修改以下首选项:
Attribute Handling > Measurement System
要更改各个属性 (例如时间、成本或尺寸) 的默认单位,请使用“类型和属性管理”实用程序。
要更改给定系统的默认单位,例如将所有时间更改为分钟,请使用“管理测量系统”窗口。
要更改给定属性的基本测量单位,请使用“管理可重用属性”窗口。导航到想要更改的属性,然后在“覆盖”字段中输入新值。
将自定义属性添加到创建向导
使用以下步骤将附加属性添加到创建向导 (如“插入新操作”向导):
1. 导航至以下目录:
codebase\config\logicrepository\xml\explorer\customization
2. 编辑以下文件:
CustProcessPlanExplorerMain.xml
3. 添加以下 XML 片段:
* 
在此示例中,inspectionNeededInspectionInterval 是添加到“插入操作”向导中的属性。修改代码以适应您想要自定义的向导并添加您自己的自定义属性。
<ExplorerElementGroup>
<LogicContext application="ptc.cust.ProcessPlanExplorer"
dataType="com.ptc.windchill.mpml.processplan.operation.MPMOperation"/>
<AttributeGroup id="ptc.mpm.exp.CreateTab2" scrollable="true" displayMode="edit">
<CellDefinition id="inspectionNeeded">
<Label>
<Resource key="inspectionNeededLabel"/>
</Label>
<AttributeDefinition attributeId="inspectionNeeded"/>
</CellDefinition>
<CellDefinition id="inspectionInterval">
<Label>
<Resource key="inspectionIntervalLabel"/>
</Label>
<AttributeDefinition attributeId="inspectionInterval"/>
</CellDefinition>
</AttributeGroup>
</ExplorerElementGroup>
4. 清除 Java 缓存并重新启动“工艺计划浏览器”。
在此示例中,请注意:
用于此 XML 片段的应用程序 ID 是ptc.cust.ProcessPlanExplorer。这是一个推荐用于自定义“工艺计划浏览器”的应用程序 ID。
在以下位置定义 MPMOperation 对象 ptc.mpm.exp.CreateTab2 的默认第二个创建向导:
codebase\config\logicrepository\xml\explorer\mpmexplorer\MPMExplorerForTablesAndPanels.xml。
要将更多属性添加到同一个创建向导,必须使用同一个属性组 ID ptc.mpm.exp.CreateTab2。
仅在此 XML 段中添加新属性的单元格定义。
* 
默认情况下,需要将单元格定义添加到默认单元格定义的后面。要指定不同的位置,请使用“放置”标记。
<Placement insertKey="after|before" insertId="attributeName"replace="true|false"/>
For example:
<CellDefinition id="inspectionNeeded">
<Label>
<Resource key="inspectionNeededLabel"/>
</Label>
<AttributeDefinition attributeId="inspectionNeeded"/>
<Placement insertKey="after" insertId="folder"/>
</CellDefinition>
* 
文件夹是后面添加 inspectionNeeded 属性的属性 ID。