systemcomposer.profile.Profile
配置文件
说明
Profile
对象表示 System Composer™ 模型的配置文件。
创建对象
使用 systemcomposer.profile.Profile.createProfile
函数创建配置文件。
profile = systemcomposer.profile.Profile.createProfile("profileName");
注意
在将配置文件移动、复制或重命名到不同目录之前,必须先在配置文件编辑器中或使用 close
函数关闭该配置文件。如果要重命名配置文件,请参照 renameProfile
函数的示例。
属性
对象函数
createProfile | 创建配置文件 |
addStereotype | 在配置文件中添加构造型 |
removeStereotype | 从配置文件中删除构造型 |
getStereotype | 按名称查找配置文件中的构造型 |
getDefaultStereotype | 获取配置文件的默认构造型 |
setDefaultStereotype | 为配置文件设置默认构造型 |
find | 按名称查找配置文件 |
open | 打开配置文件 |
load | 从文件加载配置文件 |
save | 将配置文件保存为文件 |
close | 关闭配置文件 |
closeAll | 关闭所有打开的配置文件 |
destroy | 移除模型元素 |
示例
详细信息
版本历史记录
在 R2019a 中推出
另请参阅
工具
模块
对象
函数
systemcomposer.profile.Profile.createProfile
|systemcomposer.loadProfile
|applyProfile
|removeProfile
|renameProfile
|systemcomposer.profile.editor
|systemcomposer.profile.Profile.find
|systemcomposer.profile.Profile.load
|save
|open
|close
|systemcomposer.profile.Profile.closeAll
|systemcomposer.profile.Stereotype.find
|getDefaultStereotype
|setDefaultStereotype
|getDefaultElementStereotype
|setDefaultElementStereotype
|addStereotype
|removeStereotype
|getStereotype
|applyStereotype
|batchApplyStereotype
|getStereotypes
|changeStereotype
|removeStereotype
|hasStereotype
|addProperty
|removeProperty
|hasProperty
|setProperty
|getProperty
|getPropertyValue
|getEvaluatedPropertyValue
|getStereotypeProperties
|applyStereotypeOrder
|getStereotypeNamesByOrder
|increaseStereotypeOrder
|decreaseStereotypeOrder