Class LoadResource

java.lang.Object
com.ptc.windchill.mpml.resource.LoadResource

public class LoadResource extends Object
Creates and persists MPMResource objects based on input from a XML file Method names and parameters are defined in csvmapfile.txt.

Supported API: true

Extendable: false
  • Method Details

    • beginPlant

      public static boolean beginPlant(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvBeginMPMPlant" directive in the XML load file. This format CAN add Soft Attributes(IBA). For more info on the csvformat and other information see createPlant.

      XML Format

      <csvBeginMPMPlant handler="com.ptc.windchill.mpml.resource.LoadResource.beginPlant" >
      </csvBeginMPMPlant >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndMPMPlant handler="com.ptc.windchill.mpml.resource.LoadResource.endPlant" >
       ...
      </csvEndMPMPlant >


      Supported API: true
    • endPlant

      public static boolean endPlant(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndMPMPlant" directive in the xml load file. Causes the cached MPMPlant to be checked-out, associates soft attribues from preceding IBAValue load file lines with the MPMPlant, applies the default attribute values associated with the specified type definition, persists the object, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvEndMPMPlant handler="com.ptc.windchill.mpml.resource.LoadResource.endPlant" >
      </csvEndMPMPlant >

      Tag Definitions



      Supported API: true

      See Also:
    • createPlant

      public static boolean createPlant(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvMPMPlant" directive in the XML load file. Creates a MPMPlant object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the MPMPlant, checks it back in, and caches it in the loader's memory.

      If a MPMPlant with this number already exists, the MPMPlant is looked up and a new iteration of the latest revision is created, unless the revision/iteration are specified using attributes in the the load file.

      This format cannot add Soft Attributes(IBA). For that see beginPlant.

      When using wt.load.LoadFromFile to load plants, use the following XML format:

      XML Format (only MPMPlant specific ones are described, rest are same as for part)

      <csvMPMPlant handler="com.ptc.windchill.mpml.resource.LoadResource.createPlant" >
       <csvuser> created by user </csvuser>
       <csvname> name of plant </csvname>
       <csvnumber> unique number </csvnumber>
       <csvsource> source </csvsource>
       <csvcategory> category </csvcategory>
       <csvfolder> folder </csvfolder>
       <csvlifecycle> lifecycle </csvlifecycle>
       <csvview> view </csvview>
       <csvteamTemplate> team template </csvteamTemplate>
       <csvlifecyclestate> lifecycle state </csvlifecyclestate>
       <csvtypedef> typedef </csvtypedef>
       <csvparentContainerPath>parent container path </csvparentContainerPath>
       <csvversion> revision </csvversion>
       <csviteration> iteration </csviteration>
       <csvorganizationName> organization name </csvorganizationName>
       <csvorganizationID> organization id </csvorganizationID>
       <csvcreateTimestamp> creation time stamp </csvcreateTimestamp>
       <csvmodifyTimestamp> modification time stamp </csvmodifyTimestamp>
       <csvexternal> external </csvexternal>
       <csvdescription> description </csvdescription>
       <csvaddress> address </csvaddress>
       <csvCity> city </csvCity>
       <csvState> state </csvState>
       <csvCountry> country </csvCountry>
       <csvZipCode> zip code </csvZipCode>
      </csvMPMPlant>

      Tag Definitions

      category The category value for the MPMPlant. Valid values is one of the below 'Production', 'Maintenance', 'Service'
      external Valid values are True (External), False(not External)

      Revisions and Iterations

      This method follows the standard used by LoadPart for the revisions and iterations

      Supported API: true

      Parameters:
      nv - Name/Value pairs of MPMPlant attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      truesuccess
      falsefailure
    • beginWorkCenter

      public static boolean beginWorkCenter(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvMPMWorkCenter" directive in the XML load file. This format CAN add Soft Attributes(IBA). For more info on the csvformat and other information see createWorkCenter.

      XML Format

      <csvBeginMPMWorkCenter handler="com.ptc.windchill.mpml.resource.LoadResource.beginWorkCenter" >
      </csvBeginMPMWorkCenter >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndMPMWorkCenter handler="com.ptc.windchill.mpml.resource.LoadResource.endWorkCenter" >
       ...
      </csvEndMPMWorkCenter >


      Supported API: true
    • endWorkCenter

      public static boolean endWorkCenter(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndMPMWorkCenter" directive in the xml load file. Causes the cached MPMWorkCenter to be checked-out, associates soft attribues from preceding IBAValue load file lines with the WorkCenter, applies the default attribute values associated with the specified type definition, persists the object, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvEndMPMWorkCenter handler="com.ptc.windchill.mpml.resource.LoadResource.endWorkCenter" >
      </csvEndMPMWorkCenter >

      Tag Definitions



      Supported API: true

      See Also:
    • createWorkCenter

      public static boolean createWorkCenter(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvMPMWorkCenter" directive in the XML load file. Creates a MPMWorkCenter object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the MPMWorkCenter, checks it back in, and caches it in the loader's memory.

      If a MPMWorkCenter with this number already exists, the MPMWorkCenter is looked up and a new iteration of the latest revision is created, unless the revision/iteration are specified using attributes in the the load file.

      This format cannot add Soft Attributes(IBA). For that see beginWorkCenter.

      When using wt.load.LoadFromFile to load workcenters, use the following XML format:

      XML Format (only MPMWorkcenter specific ones are described, rest are same as for part)

      <csvMPMWorkCenter handler="com.ptc.windchill.mpml.resource.LoadResource.createWorkCenter" >
       <csvuser> created by user </csvuser>
       <csvname> name of workcenter </csvname>
       <csvnumber> unique number </csvnumber>
       <csvsource> source </csvsource>
       <csvdefaultUnit> default Unit </csvdefaultUnit>
       <csvcategory> category </csvcategory>
       <csvusage> usage </csvusage>
       <csvfolder> folder </csvfolder>
       <csvlifecycle> lifecycle </csvlifecycle>
       <csvview> view </csvview>
       <csvteamTemplate> team template </csvteamTemplate>
       <csvlifecyclestate> lifecycle state </csvlifecyclestate>
       <csvtypedef> typedef </csvtypedef>
       <csvparentContainerPath>parent container path </csvparentContainerPath>
       <csvversion> revision </csvversion>
       <csviteration> iteration </csviteration>
       <csvorganizationName> organization name </csvorganizationName>
       <csvorganizationID> organization id </csvorganizationID>
       <csvcreateTimestamp> creation time stamp </csvcreateTimestamp>
       <csvmodifyTimestamp> modification time stamp </csvmodifyTimestamp>
       <csverpValidationCode> erp validation code </csverpValidationCode>
       <csvexternal> external </csvexternal>
       <csvdescription> description </csvdescription>
      </csvMPMWorkCenter>

      Tag Definitions

      category The category value for the MPMWorkCenter. Valid values is one of the below 'Line', 'ResourcePool', 'WorkCell', 'WorkUnit', 'WorkStation'
      default unit Valid values are 'ea', 'kg', 'm', 'l', 'sq_m', 'cu_m' and 'as_needed'.
      erp validation code Valid values 'K1', 'K2', 'K3', 'K4', 'K5', 'K6'.
      external Valid values are True (External), False(not External)

      Revisions and Iterations

      This method follows the standard used by LoadPart for the revisions and iterations

      Supported API: true

      Parameters:
      nv - Name/Value pairs of MPMWorkCenter attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      truesuccess
      falsefailure
    • beginResourceGroup

      public static boolean beginResourceGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvBeginMPMResourceGroup" directive in the XML load file. This format CAN add Soft Attributes(IBA). For more info on the csvformat and other information see createResourceGroup.

      XML Format

      <csvBeginMPMResourceGroup handler="com.ptc.windchill.mpml.resource.LoadResource.beginResourceGroup" >
      </csvBeginMPMResourceGroup >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndMPMResourceGroup handler="com.ptc.windchill.mpml.resource.LoadResource.endResourceGroup" >
       ...
      </csvEndMPMResourceGroup >


      Supported API: true
    • endResourceGroup

      public static boolean endResourceGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndMPMResourceGroup" directive in the xml load file. Causes the cached MPMResourceGroup to be checked-out, associates soft attribues from preceding IBAValue load file lines with the WorkCenter, applies the default attribute values associated with the specified type definition, persists the object, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvEndMPMResourceGroup handler="com.ptc.windchill.mpml.resource.LoadResource.endResourceGroup" >
      </csvEndMPMResourceGroup >

      Tag Definitions



      Supported API: true

      See Also:
    • createResourceGroup

      public static boolean createResourceGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvMPMResourceGroup" directive in the XML load file. Creates a MPMResourceGroup object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the MPMResourceGroup, checks it back in, and caches it in the loader's memory.

      If a MPMResourceGroup with this number already exists, the MPMResourceGroup is looked up and a new iteration of the latest revision is created, unless the revision/iteration are specified using attributes in the the load file.

      This format cannot add Soft Attributes(IBA). For that see beginResourceGroup.

      When using wt.load.LoadFromFile to load resourcegroups, use the following XML format:

      XML Format (only MPMResourceGroup specific ones are described, rest are same as for part)

      <csvMPMResourceGroup handler="com.ptc.windchill.mpml.resource.LoadResource.createResourceGroup" >
       <csvuser> created by user </csvuser>
       <csvname> name of resource group </csvname>
       <csvnumber> unique number </csvnumber>
       <csvdefaultUnit> default Unit </csvdefaultUnit>
       <csvcategory> category </csvcategory>
       <csvdepartment> department name </csvdepartment>
       <csvfolder> folder </csvfolder>
       <csvlifecycle> lifecycle </csvlifecycle>
       <csvview> view </csvview>
       <csvteamTemplate> team template </csvteamTemplate>
       <csvlifecyclestate> lifecycle state </csvlifecyclestate>
       <csvtypedef> typedef </csvtypedef>
       <csvparentContainerPath>parent container path </csvparentContainerPath>
       <csvversion> revision </csvversion>
       <csviteration> iteration </csviteration>
       <csvorganizationName> organization name </csvorganizationName>
       <csvorganizationID> organization id </csvorganizationID>
       <csvcreateTimestamp> creation time stamp </csvcreateTimestamp>
       <csvmodifyTimestamp> modification time stamp </csvmodifyTimestamp>
       <csvdescription> description </csvdescription>
      </csvMPMResourceGroup>

      Tag Definitions

      category The category value for the MPMResourceGroup. Valid values is one of the below 'WorkArea', 'Storage'.
      default unit Valid values are 'ea', 'kg', 'm', 'l', 'sq_m', 'cu_m' and 'as_needed'.

      Revisions and Iterations

      This method follows the standard used by LoadPart for the revisions and iterations

      Supported API: true

      Parameters:
      nv - Name/Value pairs of MPMResourceGroup attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      truesuccess
      falsefailure
    • beginTooling

      public static boolean beginTooling(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvBeginMPMTooling" directive in the XML load file. This format CAN add Soft Attributes(IBA). For more info on the csvformat and other information see createTooling.

      XML Format

      <csvBeginMPMTooling handler="com.ptc.windchill.mpml.resource.LoadResource.beginTooling" >
      </csvBeginMPMTooling >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndMPMTooling handler="com.ptc.windchill.mpml.resource.LoadResource.endTooling" >
       ...
      </csvEndMPMTooling >


      Supported API: true
    • endTooling

      public static boolean endTooling(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndMPMTooling" directive in the xml load file. Causes the cached MPMTooling to be checked-out, associates soft attribues from preceding IBAValue load file lines with the MPMTooling, applies the default attribute values associated with the specified type definition, persists the object, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvEndMPMTooling handler="com.ptc.windchill.mpml.resource.LoadResource.endTooling" >
      </csvEndMPMTooling >

      Tag Definitions



      Supported API: true

      See Also:
    • createTooling

      public static boolean createTooling(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvMPMTooling" directive in the XML load file. Creates a MPMTooling object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the MPMTooling, checks it back in, and caches it in the loader's memory.

      If a MPMTooling with this number already exists, the MPMTooling is looked up and a new iteration of the latest revision is created, unless the revision/iteration are specified using attributes in the the load file.

      This format cannot add Soft Attributes(IBA). For that see beginTooling.

      When using wt.load.LoadFromFile to load Toolings, use the following XML format:

      XML Format (only MPMTooling specific ones are described, rest are same as for part)

      <csvMPMTooling handler="com.ptc.windchill.mpml.resource.LoadResource.createTooling" >
       <csvuser> created by user </csvuser>
       <csvname> name of tooling </csvname>
       <csvnumber> unique number </csvnumber>
       <csvsource> source </csvsource>
       <csvdefaultUnit> default Unit </csvdefaultUnit>
       <csvcategory> category </csvcategory>
       <csvusage> usage </csvusage>
       <csvfolder> folder </csvfolder>
       <csvlifecycle> lifecycle </csvlifecycle>
       <csvview> view </csvview>
       <csvteamTemplate> team template </csvteamTemplate>
       <csvlifecyclestate> lifecycle state </csvlifecyclestate>
       <csvtypedef> typedef </csvtypedef>
       <csvparentContainerPath>parent container path </csvparentContainerPath>
       <csvversion> revision </csvversion>
       <csviteration> iteration </csviteration>
       <csvorganizationName> organization name </csvorganizationName>
       <csvorganizationID> organization id </csvorganizationID>
       <csvcreateTimestamp> creation time stamp </csvcreateTimestamp>
       <csvmodifyTimestamp> modification time stamp </csvmodifyTimestamp>
       <csvdescription> description </csvdescription>
      </csvMPMTooling>

      Tag Definitions

      category The category value for the MPMTooling. Valid values is one of the below 'Tool', 'Fixture'.
      default unit Valid values are 'ea', 'kg', 'm', 'l', 'sq_m', 'cu_m' and 'as_needed'.
      source Valid values are 'make', 'buy' and 'singlesource'.

      Revisions and Iterations

      This method follows the standard used by LoadPart for the revisions and iterations

      Supported API: true

      Parameters:
      nv - Name/Value pairs of MPMTooling attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      truesuccess
      falsefailure
    • beginSkill

      public static boolean beginSkill(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvBeginMPMSkill" directive in the XML load file. This format CAN add Soft Attributes(IBA). For more info on the csvformat and other information see createSkill.

      XML Format

      <csvBeginMPMSkill handler="com.ptc.windchill.mpml.resource.LoadResource.beginSkill" >
      </csvBeginMPMSkill >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndMPMSkill handler="com.ptc.windchill.mpml.resource.LoadResource.endSkill" >
       ...
      </csvEndMPMSkill >


      Supported API: true
    • endSkill

      public static boolean endSkill(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndMPMSkill" directive in the xml load file. Causes the cached MPMSkill to be checked-out, associates soft attribues from preceding IBAValue load file lines with the MPMSkill, applies the default attribute values associated with the specified type definition, persists the object, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvEndMPMSkill handler="com.ptc.windchill.mpml.resource.LoadResource.endSkill" >
      </csvEndMPMSkill >

      Tag Definitions



      Supported API: true

      See Also:
    • createSkill

      public static boolean createSkill(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvMPMSkill" directive in the XML load file. Creates a MPMSkill object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the MPMSkill, checks it back in, and caches it in the loader's memory.

      If a MPMSkill with this number already exists, the MPMSkill is looked up and a new iteration of the latest revision is created, unless the revision/iteration are specified using attributes in the the load file.

      This format cannot add Soft Attributes(IBA). For that see beginSkill.

      When using wt.load.LoadFromFile to load Skills, use the following XML format:

      XML Format (only MPMSkill specific ones are described, rest are same as for part)

      <csvMPMSkill handler="com.ptc.windchill.mpml.resource.LoadResource.createSkill" >
       <csvuser> created by user </csvuser>
       <csvname> name of skill </csvname>
       <csvnumber> unique number </csvnumber>
       <csvdefaultUnit> default Unit </csvdefaultUnit>
       <csvcategory> category </csvcategory>
       <csvusage> usage </csvusage>
       <csvfolder> folder </csvfolder>
       <csvlifecycle> lifecycle </csvlifecycle>
       <csvview> view </csvview>
       <csvteamTemplate> team template </csvteamTemplate>
       <csvlifecyclestate> lifecycle state </csvlifecyclestate>
       <csvtypedef> typedef </csvtypedef>
       <csvparentContainerPath>parent container path </csvparentContainerPath>
       <csvversion> revision </csvversion>
       <csviteration> iteration </csviteration>
       <csvorganizationName> organization name </csvorganizationName>
       <csvorganizationID> organization id </csvorganizationID>
       <csvcreateTimestamp> creation time stamp </csvcreateTimestamp>
       <csvmodifyTimestamp> modification time stamp </csvmodifyTimestamp>
       <csvdescription> description </csvdescription>
      </csvMPMSkill>

      Tag Definitions

      category The category value for the MPMSkill. Valid values is one of the below 'Assembler', 'Assistant', 'Electrician', 'Inspector', 'Machinist'.
      default unit Valid values are 'ea', 'kg', 'm', 'l', 'sq_m', 'cu_m' and 'as_needed'.
      usage Valid values are 'AllUsage', 'Maintenance', 'Production', 'Quality', 'Rework'.

      Revisions and Iterations

      This method follows the standard used by LoadPart for the revisions and iterations

      Supported API: true

      Parameters:
      nv - Name/Value pairs of MPMSkill attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      truesuccess
      falsefailure
    • beginProcessingMaterial

      public static boolean beginProcessingMaterial(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvBeginMPMProcessingMaterial" directive in the XML load file. This format CAN add Soft Attributes(IBA). For more info on the csvformat and other information see createProcessingMaterial.

      XML Format

      <csvBeginMPMProcessingMaterial handler="com.ptc.windchill.mpml.resource.LoadResource.beginProcessingMaterial" >
      </csvBeginMPMProcessingMaterial >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndMPMProcessingMaterial handler="com.ptc.windchill.mpml.resource.LoadResource.endProcessingMaterial" >
       ...
      </csvEndMPMProcessingMaterial >


      Supported API: true
    • endProcessingMaterial

      public static boolean endProcessingMaterial(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndMPMProcessingMaterial" directive in the xml load file. Causes the cached MPMProcessingMaterial to be checked-out, associates soft attribues from preceding IBAValue load file lines with the MPMProcessingMaterial, applies the default attribute values associated with the specified type definition, persists the object, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvEndMPMProcessingMaterial handler="com.ptc.windchill.mpml.resource.LoadResource.endProcessingMaterial" >
      </csvEndMPMProcessingMaterial >

      Tag Definitions



      Supported API: true

      See Also:
    • createProcessingMaterial

      public static boolean createProcessingMaterial(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvMPMProcessingMaterial" directive in the XML load file. Creates a MPMProcessingMaterial object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the MPMProcessingMaterial, checks it back in, and caches it in the loader's memory.

      If a MPMProcessingMaterial with this number already exists, the MPMProcessingMaterial is looked up and a new iteration of the latest revision is created, unless the revision/iteration are specified using attributes in the the load file.

      This format cannot add Soft Attributes(IBA). For that see beginProcessingMaterial.

      When using wt.load.LoadFromFile to load processingmaterials, use the following XML format:

      XML Format (only MPMProcessingMaterial specific ones are described, rest are same as for part)

      <csvMPMProcessingMaterial handler="com.ptc.windchill.mpml.resource.LoadResource.createProcessingMaterial" >
       <csvuser> created by user </csvuser>
       <csvname> name of processing material </csvname>
       <csvnumber> unique number </csvnumber>
       <csvsource> source </csvsource>
       <csvdefaultUnit> default Unit </csvdefaultUnit>
       <csvcategory> category </csvcategory>
       <csvusage> usage </csvusage>
       <csvfolder> folder </csvfolder>
       <csvlifecycle> lifecycle </csvlifecycle>
       <csvview> view </csvview>
       <csvteamTemplate> team template </csvteamTemplate>
       <csvlifecyclestate> lifecycle state </csvlifecyclestate>
       <csvtypedef> typedef </csvtypedef>
       <csvparentContainerPath>parent container path </csvparentContainerPath>
       <csvversion> revision </csvversion>
       <csviteration> iteration </csviteration>
       <csvorganizationName> organization name </csvorganizationName>
       <csvorganizationID> organization id </csvorganizationID>
       <csvcreateTimestamp> creation time stamp </csvcreateTimestamp>
       <csvmodifyTimestamp> modification time stamp </csvmodifyTimestamp>
       <csvdescription> description </csvdescription>
      </csvMPMProcessingMaterial>

      Tag Definitions

      category The category value for the MPMProcessingMaterial. Valid values is one of the below 'Coolant', 'Gas', 'Lubricant', 'ProcessingAid', 'Solvent'.
      default unit Valid values are 'ea', 'kg', 'm', 'l', 'sq_m', 'cu_m' and 'as_needed'.
      source Valid values are 'make', 'buy' and 'singlesource'.
      usage Valid values are 'AllUsage', 'Maintenance', 'Production', 'Quality', 'Rework'.

      Revisions and Iterations

      This method follows the standard used by LoadPart for the revisions and iterations

      Supported API: true

      Parameters:
      nv - Name/Value pairs of MPMProcessingMaterial attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      truesuccess
      falsefailure
    • beginAddResourceToResource

      public static boolean beginAddResourceToResource(Hashtable nv, Hashtable cmd_line, Vector return_objects) throws WTException
      Processes the "csvBeginResourceToResourceLink" directive in the XML load file. Creates a association, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the association, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvBeginResourceToResourceLink handler="com.ptc.windchill.mpml.resource.LoadResource.beginAddResourceToResource" >
       <csvtypedef> typedef </csvtypedef>
       <csvassemblyPartNumber> Parent Reource Number </csvassemblyPartNumber>
       <csvassemblyPartVersion> Parent Reource Version </csvassemblyPartVersion>
       <csvconstituentPartNumber> Child Reource Number </csvconstituentPartNumber>
       <csvconstituentPartQty> Child Reource Quantity </csvconstituentPartQty>
       <csvconstituentPartUnit> Child Reource Unit </csvconstituentPartUnit>
       <csvcomponentId> Not Required </csvcomponentId>
       <csvinclusionOption> Not Required </csvinclusionOption>
       <csvquantityOption> Not Required </csvquantityOption>
       <csvreference> Not Required </csvreference>
       <csvlineNumber> Not Required </csvlineNumber>
       <csvfindNumber> Not Required </csvfindNumber>
       <csvoccurrenceLocation> Not Required </csvoccurrenceLocation>
       <csvreferenceDesignator> Not Required </csvreferenceDesignator>
       <csvassemblyPartIteration> Parent Reource Iteration</csvassemblyPartIteration>
       <csvassemblyPartView> Parent Reource View </csvassemblyPartView>
       <csvassemblyPartVariation1>Not Required </csvassemblyPartVariation1>
       <csvassemblyPartVariation2>Not Required </csvassemblyPartVariation2>
       <csvorganizationName> Not Required </csvorganizationName>
       <csvorganizationID> Not Required </csvorganizationID>
      </csvBeginResourceToResourceLink>


      Supported API: true
      Parameters:
      nv - Name/Value pairs of attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      truesuccess
      falsefailure
      Throws:
      WTException
    • endAddResourceToResource

      public static boolean endAddResourceToResource(Hashtable nv, Hashtable cmd_line, Vector return_objects) throws WTException
      Processes the "csvEndResourceToResourceLink" directive in the xml load file. Causes the cached association to be checked-out, associates soft attribues from preceding IBAValue load file lines with the association, applies the default attribute values associated with the specified type definition, persists the part, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvEndResourceToResourceLink handler="com.ptc.windchill.mpml.resource.LoadResource.endAddResourceToResource" />


      Supported API: true
      Parameters:
      nv -
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Throws:
      WTException
    • addResourceToResource

      public static boolean addResourceToResource(Hashtable nv, Hashtable cmd_line, Vector return_objects) throws WTException
      Processes the "csvResourceToResourceLink" directive in the xml load file. Creates a association between a resource and constituent resource.

      Fails if both Reources are not in loader's cache.

      XML Format

      <csvResourceToResourceLink handler="com.ptc.windchill.mpml.resource.LoadResource.addResourceToResource" >
       <csvtypedef> typedef </csvtypedef>
       <csvassemblyPartNumber> Parent Reource Number </csvassemblyPartNumber>
       <csvconstituentPartNumber> Child Reource Number </csvconstituentPartNumber>
       <csvconstituentPartQty> Child Reource Quantity </csvconstituentPartQty>
       <csvconstituentPartUnit> Child Reource Unit </csvconstituentPartUnit>
       <csvcomponentId> Not Required </csvcomponentId>
       <csvinclusionOption> Not Required </csvinclusionOption>
       <csvquantityOption> Not Required </csvquantityOption>
       <csvreference> Not Required </csvreference>
       <csvassemblyPartVersion> Parent Reource Version </csvassemblyPartVersion>
       <csvassemblyPartIteration> Parent Reource Iteration</csvassemblyPartIteration>
       <csvassemblyPartView> Parent Reource View </csvassemblyPartView>
       <csvassemblyPartVariation1>Not Required </csvassemblyPartVariation1>
       <csvassemblyPartVariation2>Not Required </csvassemblyPartVariation2>
       <csvorganizationName> Not Required </csvorganizationName>
       <csvorganizationID> Not Required </csvorganizationID>
      </csvResourceToResourceLink>


      Supported API: true
      Parameters:
      nv - Name/Value pairs of arguments.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Throws:
      WTException
    • createWorkcenterToFormulasetLink

      public static boolean createWorkcenterToFormulasetLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvCreateWorkcenterToFormulasetLink" directive in the XML load file. Creates a FormulaSetSelectorLink( WorkcenterToFormulasetLink) object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the FormulaSetSelectorLink, checks it back in, and caches it in the loader's memory. When using wt.load.LoadFromFile to load FormulaSetSelectorLink( WorkcenterToFormulasetLink), use the following XML format:

      <csvCreateWorkcenterToFormulasetLink handler="com.ptc.windchill.mpml.resource.LoadResource.createWorkcenterToFormulasetLink" >
       <csvformulaSetSelectorNumber> workcenter number </csvformulaSetSelectorNumber>
       <csvformulaSetName> formulaset name </csvformulaSetName>
      </csvCreateWorkcenterToFormulasetLink>

      Tag Definitions

      workcenter number The number of the formulaset selector object (i.e) workcenter
      formulaset name The name of the formulaset object


      Supported API: true
      Parameters:
      nv - Name/Value pairs of FormulaSetSelectorLink( WorkcenterToFormulasetLink) attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      truesuccess
      falsefailure
    • createResourceRepresentation

      public static boolean createResourceRepresentation(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvCreateResourceRepresentation" directive in the xml load file. Imports the information to create a Representation, and associate it with resource
      Parameters:
      nv - Name/Value pairs of arguments. The arguments are as follows:
      • parentNumber : Number of the resource
      • parentVersion
      • parentIteration
      • parentView
      • repName : Name of the representation.
      • repDirectory: Directory of the representation. Its relative to WTHome
      • repDefault
      • repCreateThumbnail : Create thumbnail or not. Valid values 'true', 'false'
      • repStoreEdz


      Supported API: true
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method.