Manufacturing utilities
import_step_part21_files
Imports vendor product data (tool components) from a vendor catalog to the Vendor Catalogs branch of the classification hierarchy. A user can then map these components with data to a customer branch of the hierarchy and use them to create tool assemblies in Resource Manager for use in NX CAM. For more information about importing vendor catalogs, see Resource Manager on Rich Client. Syntax import_step_part21_files [-u=user-id {-p=password | -pf=password-file} -g=group] {-import_dir=tool-catalog-import-directory-name|-file=p21-file-with-directory-name} -map_file=mapping-file-name -assortment_file=assortment-file-name [-All] [-classID] [-dryrun] [-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. -import_dir Specifies the directory containing the p21 files. -file Specifies the full path and file name for the p21 files used to import the vendor catalog. Teamcenter ignores this parameter if -import_dir is set. -map_file Specifies the name of a text file that contains the mapping definitions from the p21 vendor class attributes to the Teamcenter attributes found in the classes in the Vendor Catalogs hierarchy in the classification hierarchy. This file is delivered with the vendor catalog. -assortment_file Specifies the path and name of a text file that contains a list of tool component data. This file is delivered with the vendor catalog. -All Imports all components listed in the assortment file. -classID Specifies the class in the hierarchy that acts as a starting point for the import. Teamcenter imports product data (tool component data) from this class downward in the classification hierarchy. -dryrun Tests the import by verifying the existence of tool classes and attributes. -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 import one p21 file: Copy import_step_part21_files -u=Tc-admin-user -p=password -g=group -file=D:\toolItems\5726990_20120829d.p21 -map_file=D:\toolItems\STEP_p21_Mapping_SA__V09.txt -assortment_file=D:\toolItems\GTC_P21_Assortment_Example_V9_work.txt To import all p21 files under one directory: Copy import_step_part21_files -u=Tc-admin-user -p=password -g=group -import_dir=D:\toolItems -map_file= D:\toolItems\STEP_p21_Mapping_SA__V09.txt -assortment_file= D:\toolItems\GTC_P21_Assortment_Example_V9_work.txt To perform a dry run on one p21 file: Copy import_step_part21_files -u=Tc-admin-user -p=password -g=group -file=D:\workdir\p21_files\5726990_20120829d.p21 -map_file= D:\toolItems\STEP_p21_Mapping_SA__V09.txt -assortment_file= D:\toolItems\GTC_P21_Assortment_Example_V9_work.txt -dryrun To import all files listed in the assortment file: Copy import_step_part21_files -u=Tc-admin-user -p=password -g=group -import_dir=D:\toolItems -map_file= D:\toolItems\STEP_p21_Mapping_SA__V09.txt -assortment_file= D:\toolItems\GTC_P21_Assortment_Example_V9_work.txt -All To import all files within one class ID in the assortment file: Copy import_step_part21_files -u=Tc-admin-user -p=password -g=group -import_dir=D:\toolItems -map_file= D:\toolItems\STEP_p21_Mapping_SA__V09.txt -assortment_file= D:\toolItems\GTC_P21_Assortment_Example_V9_work.txt -classID=ADPRS_MSKG51
Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/gvl1737253698140/xid710013.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)