Allocating Parts Using Delegates
In larger assemblies it may be useful to bulk allocate parts to operations using mapping parts and sub-assemblies with specific delegates. Once the mapping has been established you can automatically allocate all parts that fit the appropriate designation to the selected operation.
* 
To automatically allocate parts the Auto Part Allocation preference must be set to Yes.
To automatically allocate parts using delegates use the following procedure:
1. Customize your operations and parts by creating attributes on the following links, using the Type and Attribute Management Utility:
WTPartUsageLink
MPMOperationUsageLink
2. Select the operation in the Process Plan Browser to which you want to bulk allocate parts.
3. From the context menu select Auto Part Allocation.
All parts in the related assembly that match the assigned delegate are automatically assigned to the operation.
Also, an administrator can write their own delegate by extending the following two delegates and specifying attribute and separator methods in their own class. The delegates are present in the mpmlink.service.properties.xconf file located at WT_HOME/codebase/com/ptc/windchill/mpml/xconfs.
Delegate to allocate parts in occurrence mode:
<Service context="default" name="com.ptc.windchill.mpml.processplan.operation.AutoPartAllocationOccurrenceModeDelegate">
<Option cardinality="singleton" requestor="null" selector="DEFAULT" serviceClass="com.ptc.windchill.mpml.processplan.operation.AutoPartAllocationOccurrenceModeDelegate"/>
</Service>
Delegate to allocate parts in usage mode:
<Service context="default" name="com.ptc.windchill.mpml.processplan.operation.AutoPartAllocationUsageModeDelegate">
<Option cardinality="singleton" requestor="null" selector="DEFAULT" serviceClass="com.ptc.windchill.mpml.proces splan.operation.AutoPartAllocationUsageModeDelegate"/>
</Service>
Restart Windchill server after adding the delegate for the changes to take effect.
Isto foi útil?