Class LoadMfgStandardGroup
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbeginMfgStandardGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvBeginMPMMfgStandardGroup" directive in the XML load file.static booleanbeginMPMMfgStandardUsageLink(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvBeginMPMMfgStandardUsageLink" directive in the XML load file.static booleancreateMfgStandardGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvMfgStandardGroup" directive in the XML load file.static booleancreateStandardUsageLink(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvCreateStandardUsageLink" directive in the xml load file.static booleanendMfgStandardGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvEndMPMMfgStandardGroup" directive in the xml load file.static booleanendMPMMfgStandardUsageLink(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvEndMPMMfgStandardUsageLink" directive in the xml load file.
-
Method Details
-
createMfgStandardGroup
public static boolean createMfgStandardGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvMfgStandardGroup" directive in the XML load file. Creates a Manufacturing Standard Group object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the Manufacturing Standard Group, checks it back in, and caches it in the loader's memory.If a Manufacturing Standard Group with this number already exists, the Manufacturing Standard Group 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
beginMfgStandardGroup.When using
wt.load.LoadFromFileto load Manufacturing Standard Group, use the following XML format:XML Format (the tags are same as for part)
<csvMfgStandardGroup handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgStandardGroup.createMfgStandardGroup" > <csvuser> created by user </csvuser> <csvname> name of processplan </csvname> <csvnumber> unique number </csvnumber> <csvdescription> description </csvdescription> <csvview> view </csvview> <csvfolder> folder </csvfolder> <csvlifecycle> lifecycle </csvlifecycle> <csvlifecyclestate> lifecycle state </csvlifecyclestate> <csvteamTemplate> team template </csvteamTemplate> <csvtypedef> typedef </csvtypedef> <csvparentContainerPath> parent container path </csvparentContainerPath> <csvversion> revision </csvversion> <csviteration> iteration </csviteration> <csvcreateTimestamp> creation time stamp </csvcreateTimestamp> <csvmodifyTimestamp> modification time stamp </csvmodifyTimestamp> </csvMfgStandardGroup> 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 Manufacturing Standard Group attributes.cmd_line- command line argument that can contain supplemental load datareturn_objects-Vectorof the object(s) created by this method. Used bywt.load.StandardLoadServicefor accurate user feedback messages.- Returns:
true success false failure
-
beginMfgStandardGroup
public static boolean beginMfgStandardGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvBeginMPMMfgStandardGroup" directive in the XML load file. Creates a MPMMfgStandardGroup object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the Standard Group, checks it back in, and caches it in the loader's memory.XML Format
Same as createMfgStandardGroup<csvBeginMPMMfgStandardGroup handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgStandardGroup.beginMfgStandardGroup" >
Supported API: true- Parameters:
nv- Name/Value pairs of part attributes.cmd_line- command line argument that can contain supplemental load datareturn_objects- Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.- Returns:
- See Also:
-
endMfgStandardGroup
Processes the "csvEndMPMMfgStandardGroup" directive in the xml load file. Associates soft attribues from precedingIBAValueload file lines with the cached Standard Group, applies the default attribute values associated with the specified type definition, persists the object, and caches it in the loader's memory.XML Format
<csvEndMPMMfgStandardGroup handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgStandardGroup.endMfgStandardGroup" />
Supported API: true- Parameters:
nv-cmd_line-return_objects-- Returns:
-
createStandardUsageLink
public static boolean createStandardUsageLink(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvCreateStandardUsageLink" directive in the xml load file. Creates a MPMStandardUsageLink between a MPMStandardGroup object and MPMMfgStandardGroupedMaster object(MPMProcessPlan - Standard only, MPMMfgProcess and MPMMfgStandardGroup).XML Format
<csvCreateStandardUsageLink handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgStandardGroup.createStandardUsageLink" > <csvparentNumber> parent number </csvparentNumber> <csvparentVersion> parent version </csvparentVersion> <csvparentIteration> parent iteration </csvparentIteration> <csvparentView> parent view </csvparentView> <csvchildType> child type </csvchildType> <csvchildNumber> child number </csvchildNumber> <csvtypedef> typedef </csvtypedef> </csvCreateStandardUsageLink> Tag Definitions
parent number This tag specifies the Number of MPMStandardGroup object. This is a required field. parent version This tag specifies the Version of MPMStandardGroup object. If left blank, it is defaulted to the latest version/iteration. parent iteration This tag specifies the Iteration of MPMStandardGroup object. If left blank, it is defaulted to the latest version/iteration. parent view This tag specifies the View of MPMStandardGroup object. This is not a required field. child type This tag specifies the type of MPMMfgStandardGroupedMaster object. This values that can be provided are "processplan", "mfgstandardgroup" and "mfgprocess" child number This tag specifies the Number of WTDocument. This is a required field. typedef This contains the identifier string of a com.ptc.core.meta.common.TypeIdentifier.
i.e. com.ptc.windchill.mpml.MPMMfgStandardUsageLink|com.mycompany.SoftLink2
This would create a soft typed part. This currently supports the following modeled types:This currently does not handle custom modeled types. If there is a need for one of these, then a custom loader needs to be created.
This value is optional and defaults to
com.ptc.windchill.mpml.MPMMfgStandardUsageLink.
Supported API: true- Parameters:
nv-cmd_line-return_objects-- Returns:
-
beginMPMMfgStandardUsageLink
public static boolean beginMPMMfgStandardUsageLink(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvBeginMPMMfgStandardUsageLink" directive in the XML load file. Creates a MPMMfgStandardUsageLink object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the StandardUsageLink, checks it back in, and caches it in the loader's memory.XML Format
Same as createStandardUsageLink<csvBeginMPMMfgStandardUsageLink handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgStandardGroup.beginMPMMfgStandardUsageLink" >
Supported API: true- Parameters:
nv- Name/Value pairs of part attributes.cmd_line- command line argument that can contain supplemental load datareturn_objects- Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.- Returns:
- See Also:
-
endMPMMfgStandardUsageLink
public static boolean endMPMMfgStandardUsageLink(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvEndMPMMfgStandardUsageLink" directive in the xml load file. Associates soft attribues from precedingIBAValueload file lines with the cached StandardUsageLink, applies the default attribute values associated with the specified type definition, persists the links, and caches it in the loader's memory.XML Format
<csvEndMPMMfgStandardUsageLink handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgStandardGroup.endMPMMfgStandardUsageLink" />
Supported API: true- Parameters:
nv-cmd_line-return_objects-- Returns:
-