Exercise 4.3 - SysML to Windchill Model Transform with Mappings
Objectives
The new learning objective of this exercise is to:
generate parts from SysML to Windchill using a custom mapping created in Exercise 4.2 - Creating SysML - Windchill Mappings
sync changes to attributes from SysML to Windchill
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.2 - Creating SysML - Windchill Mappings with Syndeia launched from the Windchill_Mapping package.
This tutorial will use an existing SysML block structure. Return to Cameo and expand the To_Windchill package. You will see the ‘Autonomous vehicle’ block structure as shown below in Figure 1. Notice each block has the ‘Intercax_Artifact’ stereotype applied.
Return to Syndeia and go to the Connection Manager tab. With Model Transform Connection Type selected, drag the block structure from SysML to Windchill on the RHS as shown below in Figure 2. Then, select the new mapping spec 'Block - Part Usage' in the dropdown and click OK.
In the Syndeia dashboard, you will now see the Windchill parts generated from the Model Transform (SysML → Windchill) on the RHS as shown in Figure 3.
Return to the Syndeia dashboard and go to the Connection Browser tab. Expand the ‘Autonomous vehicle’ part and you will see a relation appears shown in Figure 4. Right click and Compare Source and Target.
In the Comparison Result screen, the version and attributes of the Autonomous vehicle show green in Figure 5 as expected. Notice the part property - Usagelink relations are also synchronized.
Return to Cameo and select the ‘Autonomous vehicle’ block. Modify the source from ‘make’ to 'buy' as shown in Figure 6.
Return to Syndeia and Compare Source and Target on the same relation. The changes made in SysML will be displayed in red as shown in Figure 7.
In the Connection Browser, right click the Autonomous vehicle relation once more and select Sync Source to Target. Trigger another Compare Source and Target. The source field should have been successfully updated to ‘buy’ in Windchill and the Comparison result window will now show entirely green as shown in Figure 8.
Return to Cameo and add an additional part property/block underneath ‘Autonomous vehicle’ called ‘safe’ and ‘Safety monitor’ shown in Figure 9. Make sure to apply the ‘Intercax Artifact’ stereotype.
In the Syndeia dashboard, Compare Source and Target on the Autonomous vehicle part property - usage relation and the result shows that the additional part property has been updated in SysML.
Sync Source to Target once again on the relation and the comparison result will now show the complete synced part structure as shown in Figure 11.
Open the Windchill target and you will now see the updated Windchill part structure for the Autonomous vehicle as shown in Figure 12 with the added Safety monitor part.
Complete the next Windchill tutorial here: Exercise 4.4 - Windchill to SysML Model Transform with Mappings