Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Integration Guide
For NX11 and higher
Version 7
7 December 2018
NX CMM Teamcenter Integration Configuration Guide
TABLE OF CONTENTS
1. Proprietary Rights Notice .................................................................................................................................................................. 3
2. Revision History................................................................................................................................................................................ 4
3. Document Purpose ............................................................................................................................................................................ 5
4. Configuration Steps ........................................................................................................................................................................... 6
5. MFK (Multi Field Key) Information ............................................................................................................................................... 21
6. CloneCmmItemToCmmMeop.exe utility........................................................................................................................................ 23
7. Support Information (GTAC) .......................................................................................................................................................... 25
Page 2 of 25
NX CMM Teamcenter Integration Configuration Guide
Page 3 of 25
NX CMM Teamcenter Integration Configuration Guide
2. Revision History
Page 4 of 25
NX CMM Teamcenter Integration Configuration Guide
3. Document Purpose
The purpose of this document is to outline the steps necessary to setup an existing Teamcenter 10.1.1+
installation for use with the NX CMM Inspection application in NX11+. It is expected that the user have a
basic knowledge of Teamcenter Application Administration, and that the procedures will be performed with
administrator or DBA permissions for Teamcenter and the host operating system.
Page 5 of 25
NX CMM Teamcenter Integration Configuration Guide
4. Configuration Steps
This document is to be used when integrating NX 11 or later with Teamcenter 10.1 or later.
If you are integrating using NX prior to NX11 then please refer to the document
NX_CMM_Inspection_Teamcenter_Integration-Configuration_Guide_for NX10_and_TC10_v2.pdf.
If you are integrating a combination of versions where either NX is a version prior to NX 10 or Teamcenter is a
version prior to Teamcenter 10.1 then please refer to the document
NX_CMM_Inspection_Teamcenter_Integration-Configuration_Guide_v5.4.pdf.
Step Action
1 Create the Classification Tree Structure.
The TC database must have a classification tree structure that has storage classes for at least these three
items: Coordinate Measuring Machines, Head Devices, and Probe Tools.
You may use the classification structure from the MRL (Manufacturing Resource Library) without the
need for a Resource Management license. This will not require using any part of the MRL other than
the installation executable in the TC advanced_installations folder. This classification tree structure is
complete and thorough. It is also the easiest tree to use since the cmm_inspection kit files are set up to
use this structure by default. But if you would prefer to use your own custom classification tree
structure that is also possible.
Page 6 of 25
NX CMM Teamcenter Integration Configuration Guide
Page 7 of 25
NX CMM Teamcenter Integration Configuration Guide
A. Using the Classification Admin application in Teamcenter, create a tree structure, consisting of
Groups, Classes, and Storage Classes, that has Storage Classes for these three types of items:
a. Coordinate Measuring Machines
b. Head Devices
c. Probe Tools.
B. You are free to use any Name and ID etc. when creating the Storage Classes.
C. See Teamcenter documentation for instructions on how to create the Classification Tree
structure and its Groups, Classes, and Storage Classes.
D. Modify the file cmm_inspection\resource\library\machine\inclass\dbc_inclass_mach_insp.def to
define the custom classification structure for Coordinate Measuring Machines. Use the existing
file as an example.
E. Modify the file cmm_inspection\resource\library\machine\inclass\dbc_inclass_mach_insp.tcl to
match.
F. Modify the file cmm_inspection\resource\library\device\inclass\dbc_inclass_device.def to define
the custom classification structure for head devices. Use the existing file as an example.
G. Modify the file cmm_inspection\resource\library\device\inclass\dbc_inclass_device.tcl to match.
H. Modify the file cmm_inspection\resource\library\tool\inclass\dbc_inclass_tlas.def to define the
custom classification structure for probe tools. Use the existing file and
dbc_mrl_tooling_library_tlas_en.def as examples.
I. Modify the file cmm_inspection\resource\library\tool\inclass\dbc_inclass_tlas.tcl to match.
Page 8 of 25
NX CMM Teamcenter Integration Configuration Guide
Most Teamcenter installations will not be using MFK (Multi Feature Key). This means that when
running import scripts described in the following steps the –m and -i parameters do not need to be added
to the command line.
If you believe that your Teamcenter installation may be using MFK, which can be confirmed by your
Teamcenter administrator, then you will need to follow the directions described later in this document
In section 5. MFK (Multi Field Key) Information. This section will help you determine what text to use
for the –m and -i parameters when running import scripts described in steps 5, 6, 7, & 8.
4 Prepare to Import resources and templates.
When templates are imported, a new nxdm_ugs_inspection_template.pax file and a new
inspection_teamcenter_general.opt file may be created. This is done when either of the types is in
an MFK domain. The .pax and .opt files are created using the MFK ID’s of the files that are used
when importing them into Teamcenter. So that these files can be copied to the correct location the
‘Read Only’ attribute of the directories they are in must be de-selected.
A. Uncheck the ‘Read Only’ attribute for the following directories and their contents. This step is
not required to import Machines, Devices, and Tools, but is required to import Templates:
Note: If you don’t have permissions to do this, the scripts will still run. You may have to run
one of them from a different working directory and you may be prompted to copy any spinoff
pax and opt files to their appropriate directory afterwards.
a. \UGII_BASE_DIR\cmm_inspection\templates
b. \UGII_BASE_DIR\cmm_inspection\resource\template_set
c. \UGII_BASE_DIR\ugii\templates\sample
B. Check to see if you have the Teamcenter Preference ‘TC_part_types_display_filter’ in the list of
TC preferences. Certain settings for this preference can cause problems importing files. Check
and change this preference as follows:
a. In Teamcenter select the Menu item ‘Edit->Options’.
b. In the Options dialog select ‘Search’ from the bottom left of the dialog.
c. In the ‘Search On Keywords’ field, enter ‘TC_part’.
d. If ‘TC_part_types_display_filter’ does not appear in the list of preferences, then that is
good. You can exit the dialog and proceed to step C.
e. If ‘TC_part_types_dialog_filter’ appears in the list select it.
f. If the ‘Value’ field is empty then that is good. You can exit the dialog and proceed to
step C.
g. If the ‘Value’ field is not empty then it should contain both ‘Item and either
‘Mfg0CMMInspect’ (If using Tc11.3 or earlier) or ‘Mfg0CMMInspMEOP’ (If using
Tc11.4 or newer).
h. To change the value of the preference:
i. you will need to be logged in as an admin such as infodba.
ii. Click ‘Edit’
iii. Add ‘Item’ and either ‘Mfg0CMMInspect’ (If using Tc11.3 or earlier) or
‘Mfg0CMMInspMEOP’ (If using Tc11.4 or newer) to the list of values.
iv. Click ‘Save’.
Page 9 of 25
NX CMM Teamcenter Integration Configuration Guide
F. If no devices were imported then check to see if you have the Teamcenter preference
‘TC_part_types_display_filter’ in the list of TC preferences. See step 4B for instructions on
how to do this.
Page 12 of 25
NX CMM Teamcenter Integration Configuration Guide
8-1 Import New CMM Inspection Templates for use with the New Business Object Type.
F. If it did succeed, verify that the Templates were imported. In the Teamcenter Rich Client select
home, select RMB->Refresh and verify that the ‘CMM Inspection Setup Templates’ container
exists. Expand it and verify that it contains the Templates and the Target parts. If not then
attempt to determine why not using any available logs. Fix any issues found and re-try to import
the Templates.
G. If no templates were imported then check to see if you have the Teamcenter preference
‘TC_part_types_display_filter’ in the list of TC preferences. See step 4B for instructions on
how to do this.
H. If the script told you that pax or opt files need to be copied to their proper directories, you should
do so now. If this happened then the user that ran the script may not have write permissions in
the required directories. A user with proper permissions will need to copy the pax and/or opt
files as specified by the script message.
I. If you have a custom pax file with entries that aren’t in native NX then you should edit it now so
that it will work with the new templates.
a. Copy all of the custom pallet entries
b. Paste them back into the pax file below the existing entries.
c. For each of the copies of the pallet entries modify the following
i. Change the PalleteEntry ID so that the new items use new ID’s and no ID’s are
reused within the file. ( For example: “d2” becomes “d102”, “d10” becomes
“d110”, etc.)
ii. Change the <ItemType> from Mfg0CMMInspect to Mfg0CMMInspMEOP
d. Save the file.
J. Test that the pax file is correct and that the templates imported properly.
a. Launch NX in managed mode.
b. Open a part.
c. Click File->New
d. Verify that you see an Inspection tab
e. Click on the Inspection tab
f. Verify that a complete list of the CMM Templates is shown.
K. Proceed to step 9.
iv. Then, when done, change back to the original directory using the ‘cd’ command:
cd /d %UGII_BASE_DIR%\ugii\templates\sample
b. In NX12.0.2-MP5 and newer, by default the command will use the action ‘overwrite’. If
for some reason you want to keep old template versions and import the templates as a
new revision you should specify “–a=new_revision”
c. For NX versions prior to NX12.0.2-MP5 add “-a=overwrite” to the command.
d. This command will import all CMM template files from
%UGII_CMM_DIR%\cmm_inspection\resource\template_part\english and metric
directories.
e. If you want to create new paxfiles add –n=autogen or –n=spinoff to the command. You
will need to do this if you are importing any custom templates.
f. Verify that the template part names in the nxdm pax file match the names of the imported
templates. Note that the _metric will be appended to the file names from the metric
directory and _inch will be appended to the file names from the english directory.
g. Note that there are some expected warning messages that will occur when importing
templates that contain resources such as Machines, Devices, and Tools. The expected
warnings are: “Component not found” showing the part names of machines, devices, or
tools. These warnings can be safely ignored. This is due to the way ug_clone works and
cannot be avoided. Step 15 to ‘Refresh Teamcenter information for Templates’ will
resolve any issues caused by these errors.
C. After the command has completed, verify that it completed successfully. It will say so. If it did
not, then attempt to determine why not using any available logs. Fix any issues found and re-try
to import the Templates.
D. If it did succeed, verify that the Templates were imported. In the Teamcenter Rich Client select
home, select RMB->Refresh and verify that the ‘CMM Inspection Setup Templates’ container
exists. Expand it and verify that it contains the Templates and the Target parts. If not then
attempt to determine why not using any available logs. Fix any issues found and re-try to import
the Templates.
E. If no templates were imported then check to see if you have the Teamcenter preference
‘TC_part_types_display_filter’ in the list of TC preferences. See step 4B for instructions on
how to do this.
F. If the script told you that pax or opt files need to be copied to their proper directories, you should
do so now. If this happened then the user that ran the script may not have write permissions in
the required directories. A user with proper permissions will need to copy the pax and/or opt
files as specified by the script message.
G. If you have a custom pax file with entries that aren’t in native NX then you should edit it now so
that it will work with the new templates.
a. Copy all of the custom pallet entries
b. Paste them back into the pax file below the existing entries.
c. For each of the copies of the pallet entries modify the following
i. Change the PalleteEntry ID so that the new items use new ID’s and no ID’s are
reused within the file. ( For example: “d2” becomes “d102”, “d10” becomes
“d110”, etc.)
ii. Change the <ItemType> from Mfg0CMMInspect to Mfg0CMMInspMEOP
d. Save the file.
Page 15 of 25
NX CMM Teamcenter Integration Configuration Guide
H. Test that the pax file is correct and that the templates imported properly.
a. Launch NX in managed mode.
b. Open a part.
c. Click File->New
d. Verify that you see an Inspection tab
e. Click on the Inspection tab
f. Verify that a complete list of the CMM Templates is shown.
Page 16 of 25
NX CMM Teamcenter Integration Configuration Guide
Page 17 of 25
NX CMM Teamcenter Integration Configuration Guide
This step will not normally be required. This is only required if you have a custom classification
setup.
If the standard classification structure was setup using step 1 of this guide then skip this step and go to
step 14.
If a non-standard classification structure, other than the one populated by step 1, is used, then override
the probe class structure as follows:
A. Open the batch file that will be run when starting NX in managed mode, for editing.
B. Add the line ‘set UGII_INSPECTION_MANAGED_PROBE_CLASS_OVERRIDE=’<The
custom probe structure>’.
a. The custom probe structure string is created from the storage classes of the structure
elements separated by ‘;’ The default probe structure string is
‘TOOL;TAG600_PROBE;TA_PROBE_10_10’.
If it is desired that the tool class selection dialog is displayed so that any tool type can be selected from
the structure then the environment variable should be set as follows:
A. Open the batch file that will be run when starting NX in managed mode, for editing.
B. Add the line ‘set
UGII_INSPECTION_MANAGED_PROBE_CLASS_OVERRIDE=SHOW_CLASS_SELECTI
ON_DIALOG.
Page 18 of 25
NX CMM Teamcenter Integration Configuration Guide
Page 19 of 25
NX CMM Teamcenter Integration Configuration Guide
If, at any time when an inspection setup file is being loaded, a message is shown stating that one of the
resources in the setup file is a read only file that has been modified and will not be able to be saved, then
that resource file should have its Teamcenter information refreshed. Refreshing its Teamcenter
information will stop that message from being output for that resource when a setup containing it is
loaded.
A. Note the name of the resource specified in the message.
B. Log in as a user that can see the resources (infodba for example)
C. Open the specified file
D. Select the top level part in the assembly navigator
E. RMB->Refresh Teamcenter Information
F. Save the template file.
Note 1: The resource files are not really read only when loaded directly, rather than as part of a setup,
and you will be able to save them after refreshing the Teamcenter information.
17 Convert Old ‘Coordinate Measuring Machine Inspection’ items to new MEOP based items
In this case use the CloneCmmItemToCmmMeop utility to convert the existing ‘Coordinate Measuring
Machine Inspection’ items to the new MEOP based items.
The advantages of doing this are that the MEOP based items can be used in Part Planner and the DMIS
files for the new type are stored under activities. In addition all new ‘Coordinate Measuring Machine
Inspection’ items created in Teamcenter will be the new MEOP based items so the old items must be
converted to be consistent with the new items.
Page 20 of 25
NX CMM Teamcenter Integration Configuration Guide
Performing these steps will not usually be necessary. You can check with your Teamcenter administrator
to determine if you have Multi Field Keys enabled. You will only need to perform the steps in this section
if your Teamcenter installation has Multi Field Keys enabled.
When importing files you must specify whether the ‘Coordinate Measuring Machine Inspection’ or ‘Item’ types
are in an MFK domain, whether or not they have additional keys, and if so what those keys are and what their
values should be for the imported files. If you know this information you may proceed to step 4. If not you will
have to determine what it is as follows.
A. In the Teamcenter Rich Client select Home.
B. In the tree, Select an object of type Item.
C. If none exists create one using the File->New->Item dialog and then select the item you have created.
D. In the Summary tab of the item, select ‘More Properties’.
E. In the properties window select ‘All’.
F. Scroll to the ‘Part Identifier’ field.
G. If the ‘Part Identifier’ is a simple number or name that does NOT include the text %#MFK#% at the
front then the Item type is in the default domain. Note that. Go to step 3M.
H. If the ‘Part Identifier’ starts with %#MFK#% then the Item type is in an MFK domain. Note that.
I. Look closely at the ‘Part Identifier’. It will have at least three parts. It will start with %#MFK#%,=
Then it will have item_id=xxxxxx,. At the end it will have object_type=Item.
J. If this is all it has, then it does not have any extra keys. Note that. Go to step M.
K. If there is more text in the form label=value, between the item_id key and the object_type key then it
has additional keys. It may have more than one additional keys separated by commas.
L. Note what additional keys are present for the Item type, what their label is, what their initial value is,
and their order if there are multiple keys.
M. Now do the same check for the type ‘Coordinate Measuring Machine Inspection’ which is also known
internally as ‘Mfg0CMMInspect’ or ‘Mfg0CMMInspMEOP’. There may not be an object of this type
created yet, so you will have to create one using File->New->Item. Select the object type ‘Coordinate
Measuring Machine Inspection’. Assign or enter a name and all other required information.
N. Select the new ‘Coordinate Measuring Machine Inspection’ item that you created and use steps D
through L to determine if this type is in the MFK domain and what extra keys it has if any. Note that
information.
When you are done, delete the ‘Coordinate Measuring Machine Inspection’ item that you created. If you
created an object of ‘Item’ type you may delete that as well.
When running the import scripts described in steps 5, 6, & 7 in Section 4 of this document add the –m
parameter to the end of the command line as follows:
A. If ‘Item’ is in the default domain (not MFK) then you may leave off the –m parameter OR you may
specify –m=NONE.
B. If ‘Item’ is in an MFK domain without any extra keys you will specify –m=NOKEY.
C. If ‘Item’ is in an MFK domain with one extra key you will specify –m=key1_label=key1_value.
Page 21 of 25
NX CMM Teamcenter Integration Configuration Guide
D. If ‘Item’ is in an MFK domain with multiple extra keys then specify all the keys in the same order they
appeared in the Teamcenter properties with commas between them. You will specify –
m=key1_label=key1_value,key2_label=key2_value[,keyN_label=keyN_value].
Note: If the MFK keys are entered such that they do not produce a valid MFK ID for the current configuration
then nothing will be imported.
When running the import script in step 8 in Section 4 of this document add the –m and –i parameters to the end
of the command line as follows:
A. If ‘Coordinate Measuring Machine Inspection’ is in the default domain (not MFK) then you may leave
off the –m parameter OR you may specify –m=NONE.
B. If ‘Coordinate Measuring Machine Inspection’ is in an MFK domain without any extra keys you will
specify –m=NOKEY.
C. If ‘Coordinate Measuring Machine Inspection’ is in an MFK domain with one extra key you will specify
–m=key1_label=key1_value.
D. If ‘Coordinate Measuring Machine Inspection’ is an MFK domain with multiple extra keys then specify
all the keys in the same order that they appear in the Teamcenter properties with commas between them.
You will specify –m=key1_label=key1_value,key2_label=key2_value[,keyN_label=keyN_value].
E. If ‘Item’ is in the default domain (not MFK) then you may leave off the –i parameter. OR you may
specify –i=NONE.
F. If ‘Item’ is in an MFK domain without any extra keys you will specify –i=NOKEY.
G. If ‘Item’ is in an MFK domain with one extra key you will specify –i=key1_label=key1_value.
H. If ‘Item’ is an MFK domain with multiple extra keys then specify all the keys in order with commas
between them. You will specify –
i=key1_label=key1_value,key2_label=key2_value[,keyN_label=keyN_value].
I. If either ‘Coordinate Measuring Machine Inspection’ or ‘Item’ is in an MFK domain then you should
also add the parameter -n=autogen to the end of the command line.
After running the import script:
J. In an explorer window find the
\UGII_BASE_DIR\cmm_inspection\templates\nxdm_ugs_inspection_templates.pax file. Check the
modified date to verify that it was modified. Open it for editing to verify that the ID’s match the
expected format as determined for the “Coordinate Measuring Machine Inspection” type.
K. In an explorer window find the
\UGII_BASE_DIR\cmm_inspection\resource\template_set\inspection_teamcenter_general.opt file.
Check the modified date to verify that it was modified. Open it for editing to verify that the ID’s match
the expected format as determined for the “Coordinate Measuring Machine Inspection” type.
Note: If you do not include the –n=autogen parameter, new .pax and .opt files will not be created. If either of
the types ‘Item’ or ‘Coordinate Measuring Machine Inspection’ is in an MFK domain you must generate new
.pax and .opt files. The only time you would not specify –n=autogen is either if MFK is not being used or if
you wish to create the new .pax and .opt files by hand.
Note: If the MFK keys are entered such that they do not produce a valid MFK ID for the current configuration
then nothing will be imported.
Page 22 of 25
NX CMM Teamcenter Integration Configuration Guide
6. CloneCmmItemToCmmMeop.exe utility
The utility CloneCmmItemToCmmMeop.exe in directory %UGII_INSPECTION_BASE_DIR%\auxiliary
clones CMM Item Business Objects (Mfg0CMMInspect) to CMM MEOP Business Objects
(Mfg0CMMInspMEOP).
Location:
%UGII_INSPECTION_BASE_DIR%\auxiliary
This is the same as:
%UGII_BASE_DIR%\cmm_inspection\auxiliary
Utility Specifics:
All CMM Item objects except item ID containing “inch” or “metric” will be cloned.
The objects without “READ” permission will be ignored.
If there are more than one revision of a CMM Item, the latest revision will be cloned.
All new CMM MEOP Business Objects will be saved in the default folder (stated below) and the default
folder needs to exist in database before executing this utility.
Example:
CloneCmmItemToCmmMeop –pim=yes -u=infodba –p=<infodba password> -defaultFolder
=infodba:NewCMMFolder
This utility should be run from an NX command window with Teamcenter environment variables set:
1. Open an NX command window.
2. Set the following Teamcenter environment variables.
a. TC_ROOT
Page 23 of 25
NX CMM Teamcenter Integration Configuration Guide
b. TC_DATA
c. FMS_HOME
3. Run the CloneCmmItemToCmmMeop utility as shown in the example above.
Page 24 of 25
NX CMM Teamcenter Integration Configuration Guide
Website:
http://support.ugs.com/
Phone:
United States and Canada: 800-955-0000 or 714-952-5444
Outside the United States and Canada: Contact your local support office
Page 25 of 25