Simscape Multi-Domain Custom Component Icon Colors

21 ビュー (過去 30 日間)
Chris
Chris 2016 年 8 月 5 日
回答済み: Sabin 2026 年 1 月 6 日 16:13
The Simscape foundation library now contains multi-domain components where different parts of the icon are displayed in different colors depending on the domain (e.g. the Rotational Electromechanical Converter shown in http://www.mathworks.com/help/physmod/simscape/ug/domain-specific-line-styles.html ).
How do I create icons for custom multi-domain components so that they are displayed like that?
  1 件のコメント
Jannik Jakobsen
Jannik Jakobsen 2022 年 12 月 13 日
I have a similar problem. I can't find the rules for how to draw the .svg so that different parts of the svg may be intrepretated with different colours.

サインインしてコメントする。

採用された回答

Sabin
Sabin 2026 年 1 月 6 日 16:13
Using svg format together with domain-specific line styles can lead to unexpected results, because domain line styles and colors can propagate to parts of the custom block icon. For more information on turning domain-specific line styles on and off, see Domain-Specific Line Styles. This restriction does not apply to block icons created using the Graphical Icon Editor, because these svg images correctly propagate domain colors. For more information, see Using the Graphical Icon Editor.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Events and Mode Charts についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by