Exercise 11.10 - Using Teamcenter Model Transform with Mixed Artifact Types

Exercise 11.10 - Using Teamcenter Model Transform with Mixed Artifact Types

Objectives

The objectives of this exercise are as follows:

  • Add new Teamcenter artifact types (item types) that are used in a Teamcenter item BOM.

  • Add new SysML - Teamcenter mappings for each of Teamcenter artifact (item) types used in the BOM.

  • Set the parent SysML - Teamcenter mapping to use other mappings relevant for the Teamcenter BOM item types.

  • Perform SysML → Teamcenter, or vice versa, model transform using these mappings.

  • Compare and bi-directionally synchronize changes (using these mappings).

Preparation

This exercise assumes the user has:

The user can use any Teamcenter repository they have available. It is generally advisable to carry out these exercises in a non-production repository, (e.g. a sandbox) that is set up for training purposes before deploying this approach in your production environment. This will help you try out different mapping scenarios with test data before using the mappings for production.

Exercise

  1. Before starting with using Syndeia, please create a simple bill-of-material (BOM) structure for an item revision in Teamcenter that uses multiple item types a shown in Figure 1. We recommend using the example below.

    • Block A item is of item type Item. It uses other items (as below) of three different item types.

    • It uses Block B and Block C items of item type Item

    • It uses Part 1 and Part 2 items of item type Part

    • It uses Design 1 item of item type Design

Screenshot 2025-05-14 102417.jpg
Figure 1 - Sample Teamcenter structure with item/part/design artifact types
  1. Open the sample tutorial model in Cameo. If you do not have it, you can download it from this link: https://intercax.atlassian.net/wiki/spaces/SYN36/pages/3330096164.

  2. Right click the Teamcenter package in the Containment tree and select Syndeia → Dashboard to launch the Syndeia Dashboard shown below in Figure 2. Select a Syndeia Cloud project assuming that your Syndeia Cameo plugin is connected to Syndeia Cloud (highly recommended). Refer to details here: https://intercax.atlassian.net/wiki/spaces/SYN36/pages/3330093354.

image-20250730-132830.png
Figure 2 - Launch the Syndeia dashboard from the Cameo package
  1. Confirm from the Repository Manager tab that you have added a Teamcenter repository and are able to connect to it as mentioned above in the Preparation section.

  2. Go to the Mappings tab. Underneath model types, right-click Teamcenter model type and select Add Artifact Type, as shown in Figure 3 below.

image-20250515-141513.png
Figure 3 - Add new Teamcenter artifact type in the Mappings tab
  1. Before we can create a mapping between SysML element type and Teamcenter item type, we need to add the Teamcenter item type in Syndeia client and fetch its available properties. In Teamcenter, there is no generic way to fetch all the available properties of an item type, so if you can provide the item id of an item of the given type, then Syndeia can fetch those properties. In the Add Teamcenter Artifact Type window, select your repository in the first dropdown menu and then begin entering the ID of the Teamcenter Item type you would like to add. After entering the ID, select the ‘Get Teamcenter Item Type’ button and Syndeia will automatically populate the ID/Type/Name/Description below as shown in Figure 4. Next, click the ‘Retrieve Teamcenter Item Properties’ button to select and choose which attributes you want to use. Click 'Ok’ when you are finished.

Screenshot 2025-05-16 093402.jpg
Figure 4 - Retrieve properties of the artifact type and click ‘Ok’
  1. Repeat step 6 to add Design and Part Artifact types. The end result should look like Figure 5 below.

image-20250519-125803.png
Figure 5 - Confirm that the new Teamcenter artifact types shows in mapping tab
  1. We will now add the new SysML Block artifacts to use in our mapping so that we can sync attributes bi-directionally. Return to the mappings tab. Underneath model types, right-click SysML and select Add Artifact Type, as shown in Figure 6 below.

Screenshot 2025-07-30 160731.jpg
Figure 6 - Add a new SysML Artifact type
  1. In the Add Artifact Type window, fill the following fields for Type/Name/Description and click the ‘+' button to apply the matching stereotype for the block as shown in Figure 7. In this example the Type is ‘Block’, the Name is 'Block (Design)’. Click OK to finish.

Screenshot 2025-07-30 160813.jpg
Figure 7 - Add a new block artifact type with the stereotype applied
  1. Repeat steps 8 and 9 for the remaining artifact types. The end result should look similar to Figure 8 below.

image-20250731-121553.png
Figure 8 - The new block artifacts now appear underneath the SysML group
  1. Now that we have added the SysML and Teamcenter artifact types, we can create mappings between SysML element types and Teamcenter artifact (item) types. To create a mapping, we can start from scratch or we can clone an existing mapping and modify as needed. Underneath the SysML-Teamcenter mapping group, right click the ‘Block - Item (attributes)’ mapping and select Clone Mapping as shown in Figure 9.

Screenshot 2025-05-16 100041.jpg
Figure 9 - Clone mapping underneath SysML-Teamcenter mapping group
  1. In the new window below in Figure 7 below, we simply modify the existing ‘Block - Item’ mapping for each new Teamcenter artifact type shown in Figure 10.

  • Set the name to Block - Design

  • Set the description to Block - Teamcenter design with Attributes

  • Set the Source Artifact Type to the new SysML element (i.e. Block (Design)) you created and set the Target Artifact type to the Teamcenter artifact you created. (i.e. Part, Design)

  • Set the Structure level to CHILDREN_RECURSIVE and set Include Attributes to Include Attributes

  • Next, click the Retrieve Available Attribute Definitions button

  • Click the + button to the left and start mapping the attributes from the left column (SysML) to the attributes on the right column (Teamcenter)

  • Lastly, click the Save Mapping button when finished at the bottom.

image (177).png
Figure 10 - Create a mapping for each added artifact type
  1. Repeat step 12 above for the other additional mapping(s).

  2. Now that we have defined mappings for the 3 total Teamcenter object types to corresponding SysML element types, we need to specify in the mapping for the parent Teamcenter item type to use the specific mappings for the child item types. Return to the original ‘Block - Item (attributes)’ mapping. In the last field called ‘Related Mappings’, add the newly saved ‘Block - Design’ mapping and ‘Block - Part’ mapping a shown below in Figure 11. Click ‘Save Mapping’ when finished.

Screenshot 2025-05-15 093247.jpg
Figure 11 - Add new mappings to the Related Mappings section of ‘Block - Item (attributes)’
  1. In the settings tab of Syndeia, make sure to check the ‘Use mapping’ box as shown below in Figure 12. Then click Apply.

image-20250609-163411.png
Figure 12 - Make sure the Use Mapping box is checked
  1. In the Connection Manager tab, drag and drop the parent Teamcenter item on the right side to an empty SysML package on the left. Make sure ‘Model Transform’ connection type is set as shown below in Figure 13. When prompted, select the ‘Block - Item (attributes)’ mapping and click OK.

image-20250729-233005.png
Figure 13 -Drag and drop the Teamcenter item to a SysML package
  1. In Cameo/MagicDraw, you will now see the SysML Blocks generated by Syndeia underneath the package in the containment tree as shown in Figure 14.

Screenshot 2025-05-15 094645.jpg
Figure 14 - The generated blocks and child elements in SysML now appear
  1. Go to the Connection Browser Tab in Syndeia and find the parent block connection created as a result of the model transform, right click, and select Compare Source and Target as shown in Figure 15.

figure11.jpg
Figure 15 - Compare source and target on ‘Block A’ connection
  1. The Comparison Result screen should show a green result that indicates all values are synchronized as shown in Figure 16.

Screenshot 2025-05-15 095118.jpg
Figure 16 - Comparison Result initially shows green
  1. In your Teamcenter Environment, add a child artifact to the original BOM you created. In this example we added an artifact of type ‘Design’ as shown in Figure 17.

Screenshot 2025-05-15 095301.jpg
Figure 17 - Add a child artifact to the Teamcenter structure
  1. Compare the result on the connection again as in step 18 and you will see that Syndeia has recognized the change indicated in red as shown in Figure 18.

Screenshot 2025-05-15 095402.jpg
Figure 18 - The comparison result window now shows the change in Teamcenter structure
  1. Return to the ‘Connection Search' tab and on the Block A connection right click and select 'Sync Target to Source’ as shown in Figure 19.

Screenshot 2025-05-15 095421.jpg
Figure 19 - In the connection search tab, sync target to source
  1. Compare Source and Target again and the result window should show all green as shown below in Figure 20.

Screenshot 2025-05-15 095548.jpg
Figure 20 - Verify that the comparison result now shows all green
  1. In Cameo/Magicdraw, you will see the child ‘Design 2’ element has been added underneath ‘Block A’ as a result of the sync shown below in Figure 21.

Screenshot 2025-06-12 140056.jpg
Figure 21 - The new child element has been synced to the SysML model in Cameo
  1. Now click on 'Block A' and update its govClass tag value as shown below in Figure 22.

Screenshot 2025-06-12 140703.jpg
Figure 22 - Update the ‘govClass’ value of the parent block in SysML
  1. Compare the parent block connection once again in the Syndeia dashboard. You should see a red line in the result for the change in govClass as shown in Figure 23.

Screenshot 2025-05-15 095913.jpg
Figure 23 - Comparison result shows changed tag value in SysML version
  1. In the Connection Search tab right click on the same connection and select ‘Sync Source to Target’ to propagate the change from SysML to Teamcenter as shown in Figure 24.

Screenshot 2025-05-15 095932.jpg
Figure 24 - Sync Source to Target in the connection search tab
  1. Compare the parent block connection once again in the Syndeia dashboard. You should see all green indicating the successful synchronization as shown in Figure 25.

Screenshot 2025-05-15 100308.jpg
Figure 25 - Check that the comparison result tab shows all green
  1. Congrats, you have completed this exercise!