Exercise 4.4 - Windchill to SysML Model Transform with Mappings
Objectives
The new learning objective of this exercise is to:
generate parts from Windchill to SysML using a custom mapping created in Exercise 4.2 - Creating SysML - Windchill Mappings
sync changes to attributes from Windchill to SysML
sync changes to block structure from SysML to Windchill.
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
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.
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.
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).
Check in the part after these changes and then switch to view Occurrences and see that all are shown as in Figure 3.
Repeat steps 3 and 4 for the Vehicle platform with result as shown in Figure 4.
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.
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.
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.
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.
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.
In the Comparison Result screen, the version and attributes of the Autonomous vehicle should show green as in Figure 10.
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.
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.
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.
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.
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.
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.