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