Aerospace and Defense utilities
update_locationcode_from_owningorg
Updates the Original Location Code of items and Current Location Code of item revisions based on the Organization ID of the organization associated with the item or item revision. This utility also creates a relation between groups and company locations based on the defined organization structure. Syntax update_locationcode_from_owningorg [-u=user-id {-p=password | -pf=password-file} -g=group] [-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. -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 To update the Original Location Code of all items and Current Location Code of all item revisions based on the Organization ID attribute, and create relations between groups and company locations: Copy update_locationcode_from_owningorg -u=Tc-admin-user -p=password -g=group Related Topics Aerospace and Defense on Rich Client ─ Usage
Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/mfk1737253715900/xid453503.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)