Manufacturing utilities
mrm_export_resources
Exports resources from Teamcenter classification. This is useful if you manage your resource and classification data in Teamcenter but run NX in its native mode. In this situation, you can use this utility to export tooling classification and data from Resource Manager so it can be used by NX CAM in native mode. Syntax mrm_export_resources [-u=user-id {-p=password | -pf=password-file} -g=group] -class=root-class-ID [-locale=locale] -def_file=definition-file [-class_graphics_dir=directory [-class_graphics_option=all|changed]] -dat_file=database-file [-dat_graphics_dir=directory [-dat_graphics_option=all|changed]] [-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. -class Exports the classification hierarchy and/or instance data from the specified root class ID. Use the -def_file and -dat_file arguments to specify whether classification hierarchy, and/or instance data, is exported, respectively. -def_file Exports the specified definition file. The file is based on the class hierarchy structure. Note The definition file includes the list of required attributes and key-LOV definitions. It also includes the hierarchical structure of the nested classes. For each class, the list of available attributes for the Search dialog box and the resulting table must be defined. If a definition for the RSET attribute set is defined, the attributes specified for the Search dialog box is used for the RSET attribute set. For an example of the definition file, see the Examples section. -class_graphics_dir Exports classification graphics used for the Search and the RSET dialog boxes to the specified directory. -class_graphics_option Specifies whether to export all classification graphics or only those graphics that are modified. Valid values are all, which exports all graphics, and changed, which exports only graphics that are modified. -dat_file Exports the specified ASCII database file. The file includes parameter values for all instances. Each data line also specifies the tool classification. -dat_graphics_dir Exports resource graphics to the local file system. -dat_graphics_option Specifies whether to export all resource graphics or only those graphics that are modified. Valid values are all, which exports all graphics, and changed, which exports only graphics that are modified. -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 export the definition file for the Manufacturing Tooling Library: Copy mrm_export_resources -u=Tc-admin-user -p=password -g=group -class=TLCUA -def_file=dbc_mfg_toollib_customer_tlas.def To export the ASCII tool database file for all tool assemblies, including all updated graphic files: Copy mrm_export_resources -u=Tc-admin-user -p=password -g=group -class=TOOL02 -dat_file=tool\metric\tool_database.dat -dat_graphics_dir= tool\ metric\graphics\ -dat_graphics_option=changed A sample definition file: Copy DB_ALIAS DCII { DB_ID -500118 DB_ID_TYPE s DIALOG_NAME "Cutting diameter Dc" RSET_NAME "Cutting diameter Dc" } DB_ALIAS PartType { DB_ID -3651 DB_ID_TYPE s OPTIONS "Right" "Left" OPTIONS_IDS "R" "L" DIALOG_NAME "Type" RSET_NAME "Type" } CLASS TOOL { TYPE QRY QUERY "[DB(Type)] == [TOOL01] && [DB(Type)] == [TLCUA]" DIALOG libref RSET libref UI_NAME "Tool" CLASS TOOL_MRM { TYPE QRY QUERY "[DB(Type)] == [TOOL01]" DIALOG libref Holder RSET libref Descr MaterialDes Holder UI_NAME "MRM Tooling" CLASS MILLS { TYPE QRY QUERY "[DB(Type)] == [TAM02]" DIALOG libref Diameter Holder RSET libref Descr Diameter MaterialDes Holder UI_NAME "Milling" Related Topics Setting up the NX search dialogs to include new classification classes and attributes
Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/gvl1737253698140/id755227.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)