Main Content

layout

Arrange AUTOSAR composition or architecture model layout based on heuristics

Since R2020a

Description

example

layout(archCM) automatically arranges the modeling elements inside composition or architecture model archCM based on a set of heuristics. The archM argument is a composition or architecture model handle returned by a previous call to addComposition, autosar.arch.createModel, or autosar.arch.loadModel.

Examples

collapse all

In an AUTOSAR architecture model, add AUTOSAR components, and then update the arrangement of elements in the model layout.

% Create AUTOSAR architecture model
modelName = 'myArchModel';
archModel = autosar.arch.createModel(modelName);

% Add components and auto-arrange layout
addComponent(archModel,{'SWC1','SWC2','SWC3'});
layout(archModel);

Input Arguments

collapse all

AUTOSAR composition or architecture model in which to arrange modeling elements based on a set of heuristics. The argument is a composition or architecture model handle returned by a previous call to addComposition, autosar.arch.createModel, or autosar.arch.loadModel.

Example: archModel

Version History

Introduced in R2020a