NX Utility to batch edit the NX_Environment being defined in UGMaster due to TC_NX_Environments

2021-10-06T23:28:06Z
NX for Design

Summary


Details

When multiple environments are defined and used for creating NX data in Teamcenter Integration NX (TC_NX_Environments), this sets a marker in the UGMaster that determines which environment was used. If this UGMaster is loaded in a different NX environment, it shows as Read Only, and when modifying the data it fails due to warning:
Part is from XXXX environment which does not match with current environment.


Is there a batch utility to edit the Environment value stored in these UGMaster's Named References UGPART-ATTRIBUTES form?

Solution

In a release of NX (NX 1872+), there is a command line utility "tc_publishing_utility" that provides a way for the administrator to override the environment value.


Example of this workflow :
The site had previously set up the NX Environment to a value of NX1847, and created many data from it. Now the site has updated the NX Environment to new value of NX1926, and these existing data now fail to save in the NX1926 environment due to mismatch with current environment. 


Running the following command line utility will batch edit the Environment value being stored in UGMaster's Named References UGPART-ATTRIBUTES form to match the current environment.


All the data needing edit are gathered in a folder named NX1847, and the following switches are used:
   -f = Folder name storing all the data needing to be edited
   -environment = Publishes the name of the environment associated with the parts
   -environment_override = Replace existing NX environment


tc_publishing_utility -u=infodba -p=infodba -f=NX1847 -environment=NX1926 -environment_override=yes


Notes and References

KB Article ID# PL8013795

Hardware/Software Configuration

Platform: INTL64
OS: windows
OS Version: 1064
Product: NX
Application: NXMANAGER
Version: V1926
Function: LOCKING

Ref: 002-8567614

KB Article ID# PL8567614

Contents

SummaryDetails

Associated Components

Teamcenter Integration for NX