Main Content

Organize and Share Architectures and Artifacts

Create large-scale architecture models in projects, interact with source control, and compare and merge differences

Use Simulink® projects in System Composer™ to organize large-scale architecture modeling projects. You can use projects to find required files, manage and share files and settings, and interact with source control. Store architecture models and their artifacts such as data dictionaries, requirements, allocations, profiles, behavior models, test files, and scripts in a project. Use the System Composer Comparison Tool and System Composer Three-Way Merge Tool to compare System Composer architecture models and review, merge, and save changes.

If you are new to projects, for an introduction, see Projects in the MATLAB® documentation. For guidance specific to Simulink, see What Are MATLAB Projects in Simulink? and Using MATLAB Projects in Simulink.

You can access remote repositories compliant with SysML® v2 in System Composer programmatically. You can also export MATLAB projects into SysML v2 textual files using systemcomposer.sysml.exportFromMLProject.

Classes

expand all

systemcomposer.arch.ArchitectureArchitecture in model
systemcomposer.arch.ModelSystem Composer model
systemcomposer.interface.DictionaryArchitectural data of data dictionary of architecture model
systemcomposer.sysml.RepositoryInterface to access projects in SysML v2 repository (Since R2026a)
systemcomposer.sysml.ProjectInterface to access contents of SysML v2 project (Since R2026a)
systemcomposer.sysml.WorkspaceCache for SysML v2 project snapshot when workspace is created (Since R2026a)
systemcomposer.sysml.ElementSingle SysML v2 project element or relationship (Since R2026a)

Functions

expand all

openProjectLoad an existing project
matlab.project.createProjectCreate blank project
matlab.project.deleteProjectStop folder management and delete project definition files
matlab.project.rootProjectGet root project
addFileAdd files or folders to project
connectConnect to repository server by URL (Since R2026a)
getProjectsGet all projects in SysML v2 repository (Since R2026a)
getProjectByIdGet project by ID in SysML v2 repository (Since R2026a)
createWorkspaceCreate SysML v2 workspace (Since R2026a)
getElementsGet all elements in SysML v2 workspace (Since R2026a)
getRootElementsGet root elements in SysML v2 workspace (Since R2026a)
getElementRelationshipsGet relationship elements (Since R2026a)
getElementGet element with provided ID (Since R2026a)
getElementsByTypeAndNameGet elements by type and name (Since R2026a)
executeQueryExecute query (Since R2026a)
getMembershipHierarchyGet elements in membership hierarchy of element (Since R2026a)
getOwnershipHierarchyGet elements in ownership hierarchy of element (Since R2026a)
getAncestorsGet SysML v2 ancestors (Since R2026a)
getDescendantsGet SysML v2 descendants (Since R2026a)
getUsagesGet SysML v2 usages (Since R2026a)
getGet element property (Since R2026a)
metaGet element metaclass (Since R2026a)
systemcomposer.sysml.exportFromMLProjectExport project to SysML v2 textual file (Since R2026a)
systemcomposer.createModelCreate System Composer model
systemcomposer.loadModelLoad System Composer model
systemcomposer.openModelOpen System Composer model
openOpen architecture model
saveSave architecture model or data dictionary
closeClose architecture model
createArchitectureModelCreate architecture model from component (Since R2021b)
createArchitectureSubsystemCreate architecture subsystem from component (Since R2023a)
linkToModelLink component to model
inlineComponentRemove reference architecture or behavior from component
systemcomposer.exportToVersionExport architecture model and dependencies to previous release of System Composer
systemcomposer.createDictionaryCreate data dictionary
systemcomposer.openDictionaryOpen data dictionary
saveToDictionarySave interfaces to dictionary
linkDictionaryLink data dictionary to architecture model
unlinkDictionaryRemove linked data dictionary from architecture model
moveInterfaceMove interface to another data dictionary (Since R2023b)
addReferenceAdd reference to dictionary
removeReferenceRemove reference to dictionary
makeOwnedInterfaceSharedConvert owned interface to shared interface (Since R2022a)

Tools

Architectural Data EditorManage architectural data (Since R2023b)
Interface EditorCreate and author interfaces in local and shared data dictionaries
Profile EditorCreate and manage profiles with stereotypes and properties
System Composer Comparison ToolDiff and merge changes between System Composer architecture models (Since R2022a)
System Composer Three-Way Merge ToolResolve conflicts in System Composer architecture models (Since R2023b)

Topics

Featured Examples