Package com.ptc.windchill.esi.bom
Class AlternateItemGroupMgr
java.lang.Object
com.ptc.windchill.esi.bom.AlternateItemGroupMgr
Provides generally useful methods to create, delete, and.or access AlternateItemGroup objects.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptioncreateAlternateItemGroup(WTPart assembly, PartUsageInfo partUsageInfo) Create an AlternateItemGroup object in database based upon the given part usage info.createAlternateItemGroup(WTPart assembly, WTPart part, WTPartUsageLink partUsageInfo) Create an AlternateItemGroup object in database based upon the given part usage info.static intReturns the number of the inputAlternateItemGroupobject.static AlternateItemGroupgetAlternateItemGroup(WTPart assembly, PartUsageInfo partUsageInfo) Returns an alternate item group, if one exists in the database.static AlternateItemGroupgetAlternateItemGroup(WTPart assembly, WTPartMaster component, LineNumber lineNumber) Returns an alternate item group for the input parameters.
-
Method Details
-
createAlternateItemGroup
Create an AlternateItemGroup object in database based upon the given part usage info.
Supported API: true- Parameters:
assembly- The assembly part which defines the product structure (BOM) to which the AIG is to be associated.partUsageInfo- The PartUsageInfo object that contains the part usage link information necessary to create an AIG.- Returns:
- AlternateItemGroup
-
createAlternateItemGroup
public AlternateItemGroup createAlternateItemGroup(WTPart assembly, WTPart part, WTPartUsageLink partUsageInfo) Create an AlternateItemGroup object in database based upon the given part usage info.
Supported API: true- Parameters:
assembly- The assembly part which defines the product structure (BOM) to which the AIG is to be associated.partUsageInfo- The PartUsageInfo object that contains the part usage link information necessary to create an AIG.- Returns:
- AlternateItemGroup
-
getAlternateItemGroup
public static AlternateItemGroup getAlternateItemGroup(WTPart assembly, PartUsageInfo partUsageInfo) Returns an alternate item group, if one exists in the database. Uses a WTPart to identify the assembly, and a PartUsageInfo to identify the line number and component on the assembly.
Supported API: true- Parameters:
assembly- The assembly part.partUsageInfo- The PartUsageInfo object that contains the part usage link information necessary to identify an existing AIG.- Returns:
- AlternateItemGroup
-
getAlternateItemGroup
public static AlternateItemGroup getAlternateItemGroup(WTPart assembly, WTPartMaster component, LineNumber lineNumber) Returns an alternate item group for the input parameters. Makes use of the the input line number in the query if one was passed in; otherwise, attempts to fetch the AIG solely from the assembly and component information.
Supported API: true- Parameters:
assembly- Input assembly part.component- Part master representing the input component.lineNumber- Input line number.- Returns:
- AlternateItemGroup
-
getAIGNumber
Returns the number of the inputAlternateItemGroupobject.
Supported API: true- Parameters:
aig- Input AlternateItemGroup object.- Returns:
- Number of the input AIG object.
-