TeamcenterKnowledge

Manufacturing utilities

me_stamp_ids

Traverses a structure according to a closure rule and automatically assigns a value to a specific property based on a recipe determined by the value of the MEIdGenerationPropertySetting preference. For more information, see Manufacturing Process Planning ─ Deployment and Administration. Syntax me_stamp_ids -u=user-id -p={password | -pf=password-file} [-g=group ] {-itemid=item-id|-key=multi-field-key-of-structure-root| -scname=structure-context-name|-scuid=structure-context-internal-ID} -rev_rule=revision-rule [-dryrunfile=dry-run-file ] [-scopeid=scope-ID|-scopeidincontext=scope-in-context-ID] [-closurerule=closure-rule-name] [-forceupdate=force-update] [-preference=preference-name] [-allowduplicates=allow-duplicate-IDICs] [-h] Arguments -u Specifies the user ID. This is a user with Teamcenter administration privileges. Note If Security Services single sign-on (SSO) is enabled for your server, the -u and -p arguments are authenticated externally through SSO rather than being authenticated against the Teamcenter database. If you do not supply these arguments, the utility attempts to join an existing SSO session. If no session is found, you are prompted to enter a user ID and password. -p Specifies the password. This argument is mutually exclusive with the -pf argument. -pf Specifies the password file. For more information about managing password files, see Manage password files. This argument is mutually exclusive with the -p argument. -g Specifies the group associated with the user. If used without a value, the user's default group is assumed. -itemid Specifies the item ID of the structure root. You must specify this value if you do not specify a value for the -scname, -scuid, or -key arguments. If you use this argument, you must also specify a revision rule using the -revrule argument. -key Specifies the key of the top line when multiple attributes are used to form the unique item ID. Use the following format: Copy [keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN] To find the key of an object, use the get_key_string utility. For more information, see BMIDE for Data Model Design. If you use this argument, you must also specify a revision rule using the -revrule argument. -scname Specifies the name of the structure context representing the BOM structure within the collaboration context object. You must specify this value if you do not specify a value for the -itemid, -scuid, or -key arguments. -scuid Specifies the internal ID of the structure context representing the BOM structure within the collaboration context object. You must specify this value if you do not specify a value for the -itemid, -scname, or -key arguments. -revrule Specifies the revision rule. This argument is mandatory if you specify the -itemid or -key arguments. -dryrunfile Prints information to the specified file about the engineering BOM line and the absolute occurrence ID (IDIC) that will be stamped. -scopeid Specifies the item ID in the manufacturing BOM from which to begin the traversal. This argument cannot be used with -scopeidincontext. If you do not specify this value, Teamcenter begins the traversal at the top line in the manufacturing BOM. -scopeidincontext Specifies the IDIC of the line in the manufacturing BOM from which to begin the traversal. This argument cannot be used with -scopeid. If you do not specify this value, Teamcenter begins the traversal at the top line in the manufacturing BOM. -closurerule Specifies the closure rule that determines which lines in the structure Teamcenter stamps when it traverses the manufacturing BOM structure below the scope line. If you do not specify a closure rule, every line in the structure below the given scope line is stamped. -forceupdate Overrides any existing values when stamping the lines. -preference Specifies the preference name containing the rules for setting the BOM line property. The default preference is MEIdGenerationPropertySetting. -allowduplicates Specifies whether the utility checks for duplicate in-context IDs when assigning ID string to a BOM line. -h Displays help for this utility. Environment As specified in Setting up a Teamcenter command-line environment. Files As specified in Log files produced by Teamcenter. Restrictions None. Examples You can use this utility to create values for the Usage Address property based on the constituent properties of item ID and item type. Define the recipe for the property value by setting the MEIdGenerationPropertySetting preference to: Copy type:Item,key: bl_usage_address,prop:bl_item_item_id, prop:bl_item_object_type Do one of the following: Create the usage address property on each line under the top line: Copy me_stamp_ids -u=your-user-name -p=your-password -g=your-group -itemid=top-line-ID -revrule=revision-rule -dryrunfile=name-of-file-holding-dry-run-information -forceupdate Create the usage address on selected lines specified in a closure rule under a scope line determined by the specified IDIC (top level) value. In other words, the utility begins with a line that you specify by IDIC, traverses the structure from the IDIC line downward using the given closure rule, and stamps the resulting lines with the usage address string. Copy me_stamp_ids -u=your-user-name -p=your-password -g=your-group -itemid=top-line-ID -revrule=revision-rule -dryrunfile=name-of-file-holding-dry-run-information -scopeidincontext=in-context-ID-of-the-line-in-the-structure-to-use-as-starting-point-for-the-closure-rule-traversal -closurerule=valid-Teamcenter-closure-rule-that-filters-the-necessary-lines -forceupdate

Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/gvl1737253698140/xid732912.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)