其他 Windchill 功能 > 製造流程管理 > 一般 MPMLink 總管自訂
  
一般 MPMLink 總管自訂
下列自訂描述您可能想要套用至 Windchill MPMLink 總管的一般變更。
變更 Windchill MPMLink 總管的可用性
安裝後,所有 Windchill MPMLink 使用者都會具有下列總管的存取權。
產品結構總管、
製造產品結構總管、
製造資源總管、
製造標準總管、
製程計劃總管、
製造甘特總管。
在某些組態中,您可能想要限制對於總管的存取權。例如,使只有製造使用者可以存取「製造產品結構總管」,而其他所有使用者具有「產品結構總管」的存取權。
欲在「網站」「組織」層級設定此組態:
使用「設定檔」標籤為製造使用者建立設定檔。
將您想要授與總管存取權的個別使用者新增至該設定檔。
變更預設量測單位
Windchill MPMLink 物件會以例如時間、成本與尺寸之類的一組屬性定義。
預設量測系統為公制。欲對其進行變更,例如改為美制,請使用「偏好設定管理」公用程式修改下列偏好設定:
Attribute Handling > Measurement System
欲變更個別屬性的預設單位,例如時間、成本或尺寸,請使用「類型及屬性管理」公用程式。
欲變更特定系統的預設單位,例如欲將所有時間變更為分鐘,請使用「管理量測系統」視窗。
欲變更特定屬性的基礎量測單位,請使用「管理可重新使用屬性」視窗。導覽至您要變更的屬性,並在「重新定義」欄位中輸入新值。
將自訂屬性新增至建立精靈
遵循下列步驟,將其他屬性新增至建立精靈,例如「插入新作業」精靈:
1. 導覽至以下目錄:
codebase\config\logicrepository\xml\explorer\customization
2. 編輯下列檔案:
CustProcessPlanExplorerMain.xml
3. 新增下列 XML 片段:
* 
在此範例中,inspectionNeeded InspectionInterval 是要新增至「插入作業」精靈的屬性。修改程式碼以符合您要自訂的精靈,並新增您自己的自訂屬性。
<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。
欲將更多屬性新增至相同的建立精靈,必須使用相同的 AttributeGroup 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。