Specifying a Teamcenter Revision Rule when exporting NX parts out of Teamcenter using a log file.
Solution
Since Teamcenter v10 it is now possible to set preferences in a command window. To allow preferences to be set they must have "Environment" set to "Enabled". This is done via "Edit --> Options" in Teamcenter, selecting the preference, selecting Edit and changing the Environment pull down and then save the change.
Therefore, to specify the Revision Rule to be defined when exporting the parts out of Teamcenter, enter something similar to the following in an NX Command Prompt:
set TC_config_rule_name=Any Status; Working
Note that it is not necessary to enter quotes around the value.
Once set, use ug_clone with the necessary switches to specify a log file and export the desired revisions of the parts. For example:
ug_clone -pim=yes -u=xxxxxx -p=yyyyyyy -o=export -l=export.clone
Notes