Migrate SysML 1.1 Model to SysML 1.2

Enterprise Architect enables you to migrate a SysML 1.1 model (or part of a model) to SysML 1.2, using the Automation Interface function Migrate(). This function updates the Tagged Values and, if required, stereotypes to SysML1.2 for all elements, attributes, connectors and diagrams under the selected package or element.


The following VB script calls the Migrate() function to migrate the package or element to SysML 1.2:

Sub MigrateElement (sGUID, lngPackageID)

 Dim proj as EA.Project

 set proj = Repository.GetProjectInterface

 proj.Migrate sGUID, "SysML1.1", "SysML1.2"


 'refresh the model

 If lngPackageID<>0 Then

         Repository.RefreshModelView (lngPackageID)

 End If

End Sub


Sub MigrateSelectedItem

 Dim selType

 Dim selElement as EA.Element

 Dim selPackage as EA.Package

 selType = GetTreeSelectedItemType

 If selType = 4 Then 'means Element

               set selElement = GetTreeSelectedObject

         MigrateElement selElement.ElementGUID, selElement.PackageID

         MsgBox "Element Migration Completed",0,"SysML Migration"

 ElseIf selType = 5 Then 'means Package

         set selPackage = GetTreeSelectedObject

         MigrateElement selPackage.PackageGUID, selPackage.PackageID

         MsgBox "Package Migration Completed",0,"SysML Migration"


         MsgBox "Select a Package or Element in the Project Browser to initiate migration",0,"SysML Migration"

 End If

End Sub


Sub Main


End Sub





  • The stereotype dimension is changed to quantitykind when migrating from SysML1.1 to SysML1.2
  • The stereotype dataType is removed from SysML1.2
  • The Tagged Value dimension is migrated to quantitykind; this applies to stereotypes unit and valueType
  • The Tagged Value isConjugated of stereotype flowport is migrated to custom properties

Learn More: