主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

使用“管理配置文件”工具更改构造型顺序

自 R2023a 起

此示例展示了如何在导入 RGBColors 配置文件后更改应用于组件的构造型的构造型顺序。

打开模型。

model = systemcomposer.openModel("OrderingStereotypes");

Architecture model ordering stereotypes with Door component with a green component header.

Door 组件应用了 GreenRedBlue 构造型。由于 Green 构造型优先级最高,因此组件的颜色为绿色。

要打开 管理配置文件 工具,请依次导航至建模 > 配置文件编辑器 > 管理

Manage Profiles tool with RGBColors profile shown linked to the OrderingStereotypes model and the Manage Stereotype Order button visible on the bottom right.

选择 OrderingStereotypes.slx 模型,然后点击管理构造型顺序以重新排列导入配置文件中的构造型的优先级。

Manage Stereotype Order dialog box with stereotypes ordered from top to bottom as Green, Red, and then Blue, with Blue highlighted.

选择 RBGColors.Blue,然后点击向上箭头,直到 RBGColors.Blue 成为最高优先级。点击确定接受更改。

Manage Stereotype Order dialog box with stereotypes ordered from top to bottom as Blue, Green, and then Red, with Blue highlighted.

返回模型画布。Door 组件现在为蓝色。

Architecture model ordering stereotypes with Door component with a blue component header.

另请参阅

工具

模块

对象

函数

主题