Exercise 4.4 - Windchill to SysML Model Transform with Mappings

Exercise 4.4 - Windchill to SysML Model Transform with Mappings

Objectives

The new learning objective of this exercise is to:

Preparation

This exercise assumes the student has:

  • Cameo System Modeler 2022x (or MagicDraw with SysML plug-in) or later installed correctly on his or her machine with a valid license for use,

  • Syndeia 3.7.1 or later installed as a plugin for Cameo/MagicDraw with a valid license for use

  • Windchill interface, correctly configured with a valid license for use,

  • A Windchill repository network connection in the Syndeia Repository Manager.

Exercise

  1. Keep the same SysML project open from the previous part, Exercise 4.3 - SysML to Windchill Model Transform with Mappings with Syndeia launched from the Windchill_Mapping package.

  2. This tutorial will use the Winddchill part structure that was just generated, but with a different mapping. Right-click the relation under Autonomous vehicle and select Open Target as shown in Figure 1.

image-20260501-215355.png
Figure 1 - Open Target for Autonomous vehicle relation to open the connected part in Windchill
  1. The Autonomous vehicle top-level part should be opened in Windchill. In the Structure tab > Uses tab, populate the Reference Designator fields as shown in Figure 2.

    NOTE: Populating Reference Designator fields will create Occurrences that can be mapped with the ‘Block - Part Occurrence’ mapping (instead of mapping Uses with the ‘Block - Part Usage’ mapping that was used in the previous exercise).

image-20260511-235213.png
Figure 2 - Setting Reference Designators for Autonomous vehicle part Uses in Windchill
  1. Check in the part after these changes and then switch to view Occurrences and see that all are shown as in Figure 3.

image-20260501-221704.png
Figure 3 - Autonomous vehicle part Occurrences in Windchill
  1. Repeat steps 3 and 4 for the Vehicle platform with result as shown in Figure 4.

image-20260512-001504.png
Figure 4 - Vehicle platform part Occurrences in Windchill after adding reference designators under Uses
  1. Return to Syndeia Right-click the To_Windchill package and select Delete connections as shown in Figure 5 so that we can create new connections in the following steps. Alternately if you do not wish to delete these connections, close your SysML model, reopen it, and use a different Syndeia Digital Thread Project when you relaunch Syndeia. If deleting, proceed to click ‘Yes' to delete them.

image-20260501-231129.png
Figure 5 - Deleting relations so that new ones can be created from Windchill
  1. Return to the Connection Manager tab. As in previous tutorial, SysML Repository should be selected on the LHS and Windchill on the RHS, with Model Transform Connection Type selected in the middle. Right-click the parent folder and Refresh as shown in Figure 6 to show the latest versions of the contents.

image-20260501-222927.png
Figure 6 - Connection Manager tab with SysML Repository and Windchill Repository, refreshing to show latest contents
  1. Expand Autonomous vehicle again to view the latest version of the contents, which now includes Occurrences as shown in Figure 7. Drag the Autonomous vehicle part from Windchill on the RHS to the From_Windchill package on the LHS as shown. Then, select the mapping spec 'Block - Occurrence Usage' in the dropdown and click OK.

image-20260512-001658.png
Figure 7 - Connection Manager tab with SysML Repository and Windchill Repository, refreshing to show latest contents
  1. In the Syndeia dashboard, you should now see the SysML blocks generated from the Model Transform (Windchill → SysML) on the LHS as shown in Figure 8.

image-20260501-231817.png
Figure 8 - Blocks generated in SysML Repository from Windchill
  1. Return to the Syndeia dashboard and go to the Connection Browser tab. Expand From_Windchill and the Autonomous vehicle block and you should see a relation as in Figure 9. Right click and Compare Source and Target then click Yes.

image-20260501-232016.png
Figure 9 - Compare Source and Target on SysML parent block relation
  1. In the Comparison Result screen, the version and attributes of the Autonomous vehicle should show green as in Figure 10.

image-20260501-232153.png
Figure 10 - Initial Comparison Result Window
  1. In Cameo, create a new Block Definition Diagram under From_Windchill package and drag and drop the blocks to the diagram. You should see the structure as well as the four tag values (gathering_part, assembly_mode, source, and name) populated for the blocks as shown in Figure 11.

image-20260501-232508.png
Figure 11 - Block definition diagram and Tags for new block structure as generated from Windchill
  1. Return to Windchill interface for the Autonomous vehicle part. Select Actions > Edit Part and modify the source from ‘Buy’ to 'Make' as shown in Figure 12 and click Save.

image-20260501-232947.png
Figure 12 - Update Attribute for Windchill part
  1. Under Structure, remove the Safety monitor occurrence and then Check In the Autonomous vehicle part. If the Uses relationship is kept, Safety monitor will still show in the LHS structure tree, but not under Occurrences on the RHS as shown in Figure 13.

image-20260505-124136.png
Figure 13 - Remove Safety monitor Occurrence for Autonomous vehicle Windchill part
  1. Return to Syndeia and Compare Source and Target on the same relation. The changes made in Windchill will be displayed in red as shown in Figure 14.

image-20260501-233505.png
Figure 14 - The comparison result shows the Windchill changes in red
  1. In the Connection Browser, right click the Autonomous vehicle relation once more and select Sync Target to Source then compare again. The source field should have been successfully updated to ‘make’ in SysML, the Safety monitor part property removed, and the Comparison result window should now show entirely green as shown in Figure 15.

image-20260501-233857.png
Figure 15 - The changes made in Windchill have successfully synced to SysML
  1. Return to Cameo and notice that the part property for Safety monitor has been removed, and the source tag has been updated to 'make' as shown in Figure 16.

image-20260512-002331.png
Figure 16 - Part property removed and tag value updated in SysML