Exercise 14.1 - Creo to SysML
Objectives
The new learning objective of this exercise is to generate a SysML model from a Creo CAD assembly structure.
Preparation
This exercise assumes the student has
Cameo System Modeler 18.0 - 19.0 (or MagicDraw with SysML plug-in) installed correctly on his or her machine with a valid license for use,
Syndeia 3.4 installed as a plugin for Cameo/MagicDraw with a valid license for use
Syndeia Creo interface, correctly installed with a valid license for use,
PTC Creo 4.0 or later, installed correctly on his or her machine with a valid license for use.
A local repository connection in the Syndeia Repository Manager (DZ Local in this example), giving access to a local or shared file system containing the Creo model (see Video 1.2 about setting up repository connections). The CAD model used in this example is the model 1_formula_sae_racecar.asm available from PTC with the Creo training, but you can use any standard Creo assembly model.
Exercise
Open the MagicDraw model Syndeia Tutorial Testbed.mdzip (get it here - SysML Models, Profiles and Mappings). Right-click on package Creo_Tutorial, launch the Syndeia dashboard, select a Syndeia Cloud project if required, and click on the Connection Manager tab. Click on Repository at the top of the left panel and select SysML Repository. Click on Repository at the top of the right panel and select the DZ Local repository. The dashboard should appear as in Figure 1. The left panel shows the SysML model element selected. The right panel has been expanded to show the 1_formula_sae_racecar.asm file.
Figure 1 Creo model loads when a Creo asm or prt file is expanded
Expand the asm file to view the Creo model structure. This will initialize a Creo session if this is the first time you are accessing Creo models after creating/opening your SysML project. Once the Creo session is initialized, you will see an assembly icon (for Creo assemblies) or a part icon (for a Creo piece part as a prt file), as shown for the 1_FORMULA_SAE_RACECAR assembly model in Figure 1 below.
Figure 2 Expand the Creo model to view the assembly structure
Expand the Creo model to view the assembly structure, as shown in Figure 2. You can see all the components of the race car assembly in the Syndeia Dashboard, similar to the Creo model tree.
Â
Right-click the asm file of the Creo CAD model in the RHS pane and select Open. This will open the CAD model in Creo, as shown in Figure 3 below.
Figure 3 Syndeia opens the Creo CAD model from the Syndeia dashboard
Select Model Transform connection type in the middle panel of the Connection Manager (Figure 1) and drag and drop the Creo model from the RHS pane to a SysML Racecar package on the LHS pane. Select Yes to confirm at the prompt.
This generates a SysML block structure from the Creo assembly structure, as shown in Figure 4. Notice the generation of part properties corresponding to assembly components in the CAD model.
Figure 4 SysML block structure generated (LHS) from the Creomodel structure (RHS)
Create a SysML block diagram in the SysML tool and drag and drop the 1_FORMULA_SAE_RACECAR block generated in the previous step to the diagram. Expand and expose all the part properties and value properties of the 1_FORMULA_SAE_RACECAR block, as shown in Figure 5 below.
Figure 5 SysML BDD showing the block structure generated from Creo assembly structure
Now, you can see the details of the block structure generated from Creo assembly structure by Syndeia. The 1_FORMULA_SAE_RACECAR block has 17 part properties—16 shown in the parts compartment and 1 shown in an expanded form (CHASSIS). The semantic mapping from Creo CAD assembly structure to SysML block structure is as follows:Creo part or assembly -> SysML block
Creo part or assembly mass properties -> SysML block value properties
Creo assembly component -> SysML block part property with an association block
Creo parameter -> SysML value property (optional)
Syndeia generates a SysML block corresponding to every Creo CAD part or sub-assembly in the root assembly structure. It applies the Creo_Assembly stereotype to identify Creo assemblies (.asm files) and Creo_Part stereotype to identify piece parts (.prt files). The mass properties of the part or assembly are generated as value properties. This includes mass, volume, density, surface area, center of gravity, and the coordinates of the lower left corner and upper right corner of the geometric bounding box of that part/assembly. The units for mass properties are assigned to the unit tag of the Creo_Mass_Property stereotype applied to the value property, e.g. unit for volume is in^3.
Figure 6 SysML blocks are generated for every Creo part/assembly in the assembly structure
A CAD assembly is made of up of components, each of which are usages of a part (or sub-assembly) in the context of that assembly. Syndeia generates two important elements for assembly components. First, it creates a part property relationship (CHASSIS) from the parent assembly block (1_FORMULA_SAE_RACECAR) to the child part or sub-assembly block (toycar_axle_assy). Second, it creates an association block for the composition (part property) relationship which is intended to store information regarding the placement of the component in the assembly, specifically the transformation from the child part (or sub-assembly) co-ordinate system to the parent assembly (or global) co-ordinate system. Syndeia applies the Creo_Component stereotype to association blocks.
In the drag-and-drop operations, Syndeia generates connections between SysML blocks and the Creo CAD parts/assemblies. You can view the connections organized by the SysML model in the Connection Browser tab or as a flat list in the Connection Summary tab. Users can invoke compare and sync operations by right-clicking on one or more connections.
Compare compares the mass properties between the SysML blocks and Creo parts/assemblies.
Sync from Target > SysML updates the mass properties in the SysML block from the Creo part/assembly
Sync SysML > Target is not supported. This use case is not a high priority for system engineers since they usually do not modify existing CAD models directly. Mass properties in a CAD model are computed from the geometry and hence they are read-only properties.Â
Syndeia provides the option to bring geometric parameters from Creo models (parts/assemblies) to the SysML model. Select the Get parameters of Creo models setting in the Settings tab and select Apply, as shown, as shown in Figure 7.
Figure 7 Syndeia provides the option to bring parameters from Creo