When running the part_utility.exe command with the -managed_mode=yes to perform actions on NX parts in Teamcenter the .prt file is not being updated and saved in Teamcenter?
Solution
There are two types of options within the part_utility.exe command. Some are non-part-modifying and some which are part-modifying. If both types are using in same command line the NX .prt file will not be saved back to Teamcenter.
This is intentional to avoid possible data corruption when using the various combinations and permutations of the part utility options.
Examples of non-part-modifying options are:
-record_part_data
-generate_trueshape
-record_altrep_notes
Examples of part-modifying options are:
-regen_lw
-convert_units_to_xxx
-convert_line_widths
For example if the following command line was used the .prt file in the named references would be updated (only using part-modifying options):
part_utility.exe -managed_mode=yes -u=xxx -p=xxx -i=C:\temp\list_of_parts.txt -regen_lw -yIf the additional option -record_part_data=yes (non-part-modifying option) is added to the same command the .prt file will no longer be updated. Only the record_part_data action will complete and the .prt file in Teamcenter will not be updated.
part_utility.exe -managed_mode=yes -u=xxx -p=xxx -i=C:\temp\list_of_parts.txt -regen_lw -y
-record_part_data=yes The recommendation is to not mix part-modifying and non-part-modifying options within the same part_utility.exe command line.
Notes and References
Full list of options available for the part_utility.exe command can be found in the NX help documentation:
https://docs.plm.automation.siemens.com/tdoc/nx/1847/nx_help#uid:index_tcint:id1299838:xid1484425:xid1483666Hardware/Software Configuration
Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: NXMANAGER
Version: V12.0.2
Function: UTILITIES
Ref: 002-8008435