Class AlternateItemGroupMgr

java.lang.Object
com.ptc.windchill.esi.bom.AlternateItemGroupMgr

public final class AlternateItemGroupMgr extends Object
Provides generally useful methods to create, delete, and.or access AlternateItemGroup objects.

Supported API: true

Extendable: false
  • Method Details

    • createAlternateItemGroup

      public AlternateItemGroup createAlternateItemGroup(WTPart assembly, PartUsageInfo 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
    • 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

      public static int getAIGNumber(AlternateItemGroup aig)
      Returns the number of the input AlternateItemGroup object.

      Supported API: true
      Parameters:
      aig - Input AlternateItemGroup object.
      Returns:
      Number of the input AIG object.