Siemens Teamcenter#
The Teamcenter backend supports loading data over multiple addressing schemes. Items can be addressed by:
Their Item ID and Revision.
Their DataSet ID.
Their Item UID.
Furthermore, it is possible to load assemblies either as a PLMXML export or directly via their native NX representation. Using the native representation is usually more performant as Teamcenter does not need to generate a PLMXML export on the fly. Revision rules apply only to PLMXML exports. See Choosing an integration path.
Note
The Teamcenter integration currently only supports occurrence-based PLMXML assemblies.
Choosing an integration path#
An assembly has one of two forms:
Structure file: one file holds the assembly structure and links to the part files.
Nested: the top-level file links to sub-assemblies, and these link down to the parts.
There are four ways to load Teamcenter data into instant3Dhub. They differ in the assembly form and in whether Teamcenter revision rules apply.
Path |
Assembly form |
Revision rules |
Performance |
|---|---|---|---|
PLMXML + JT (recommended) |
Structure file: a PLMXML export that references the JT files |
Applied |
PLMXML export is generated on request |
PLMXML + NX |
Structure file: a PLMXML export that references the NX files |
Applied |
PLMXML export is generated on request |
JT only |
Structure file or nested |
Not applied |
Faster, no PLMXML export needed |
NX only |
Usually nested |
Not applied |
Faster, no PLMXML export needed |
- PLMXML + JT (recommended)
Teamcenter builds the assembly as a PLMXML export and applies the configured revision rule, so each part loads in the intended version. JT is the recommended geometry format for instant3Dhub, so this is the default path. Set the revision rule with
plmxmlExport.revisionRuleUidin the configuration below.
Backend configuration#
To configure the backend, several options must be set:
teamcenter:
# Whether the Teamcenter backend is enabled.
enabled: false
# The HTTP Teamcenter server URL under which HTTP endpoints are available.
# Example: http://teamcenter.company.com:7001
baseUrl:
# The HTTP Teamcenter FMS URL under which file resources are available.
# Example: http://teamcenter.company.com:4455
fmsBaseUrl:
# Options for the PLMXML export path. Both UIDs are required whenever the
# Teamcenter backend is enabled, even if only the native NX path is used.
plmxmlExport:
# The internal Teamcenter UID of the revision rule to use.
# See the /tc/api/revisionrules endpoint to list available UIDs.
revisionRuleUid:
# The internal Teamcenter UID of the transfer mode to use.
# See the /tc/api/transfermodes endpoint to list available UIDs.
transferModeUid:
# Whether to use a technical user for accessing Teamcenter. If false,
# a valid session token must be provided with each client request.
useTechnicalUser: true
# Optional list of item types to accept when resolving an Item ID. If
# empty, all item types are accepted. If no item matches, the request
# fails.
validItemTypes: []
# Optional list of additional revision properties to request from Teamcenter.
customRevisionProperties: []
# User credentials when using a technical user.
user:
name:
# Password of the technical user. Must be given as a full environment
# variable value source, i.e. either `value: "..."` or a `valueFrom:`
# block such as:
password:
valueFrom:
secretKeyRef:
name: teamcenter-secrets
key: password
group:
role:
# Session locale used at login, e.g. en_US or de_DE. Controls the
# language of localized values returned by Teamcenter.
locale:
Note
The options above only configure the Teamcenter backend itself. How the
resulting PLMXML exports are processed is controlled by the relevant PLMXML
values in the instant3Dhub values.yaml (the experimental section),
such as plmxmlUseTeamcenterAppRefAsExtRef,
plmxmlUseAssociatedDataSetRole, plmxmlKeepExternalFileFormats and
plmxmlKeepDataSetTypes. Make sure these are configured to match your
Teamcenter setup when using the PLMXML export path.
After configuration the following endpoints will be available to configure as URNs for data pool rules:
/tc/namedref/{id}: Returns the file behind the given Teamcenter UID. This UID is usually found in PLMXML files as part of anApplicationRef./tc/itemrevision/{id}: Loads the geometry file (the master dataset) of the given Item ID using the latest revision./tc/itemrevision/{id}/{revision}: Loads the geometry file (the master dataset) of the given Item ID and Revision./tc/itemrevision/{id}/plmxml: Returns a PLMXML export for the given Item ID using the latest revision. The configured revision rule and transfer mode are used./tc/itemrevision/{id}/{revision}/plmxml: Returns a PLMXML export for the given Item ID and Revision. The configured revision rule and transfer mode are used./tc/dataset/{id}/{type}: Loads the file of the given dataset type behind the given DataSet UID. Supported types areDirectModel,UGMASTER,CATPartandCATProduct.
In addition, the following helper API endpoints are available. These return JSON metadata and are not intended to be configured as data pool URNs:
/tc/api/{id}/revisions: Lists the available revisions of the given Item ID./tc/api/{uid}/relation/{relation_name}: Returns the secondary object of the given relation for the given UID./tc/api/{tc_type}/describe: Describes the given Teamcenter type./tc/api/revisionrules: Lists the available revision rules. Use this to find the UID to configure underplmxmlExport.revisionRuleUid./tc/api/transfermodes: Lists the available transfer modes. Use this to find the UID to configure underplmxmlExport.transferModeUid.