How can I save and load customized (background-)colors of blocks for later simulink sessions?

When a simulink session is closed, all user-defined colors for blocks are erased from palette. Is there a possibility to copy these colors from blocks or save/load these palettes?

 採用された回答

>> clr = get_param(gcb,'BackgroundColor','Orange')
'white'
>> set_param(gcb,'BackgroundColor','Orange')

1 件のコメント

Ralph
Ralph 2013 年 6 月 27 日
This answer is a good solution to get/set the parameters of former defined costumer colors. The main problem of loosing self-defined costumer colors (sometimes mumerous)in the simulink-palette seems to be solved in latest simulink versions. So it may be recommended to upgrade our 2009b-Matlab or finding out the global option in 2009b to set for saving this data for next start. Thank you very much, Muthu

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

その他の回答 (1 件)

Kristian
Kristian 2017 年 8 月 21 日
> ... seems to be solved in latest simulink versions.
So if it was solved it obviously became broken again. I have used 2012a and 2014b (both 32-bit), and there the custom colors were stored and always available. Now I have changed to 2015b 64-bit, and the palette is lost after restarting. Can this be fixed somehow? It´s very much annoying.

カテゴリ

ヘルプ センター および File ExchangeSimulink Environment Customization についてさらに検索

製品

質問済み:

2013 年 6 月 26 日

回答済み:

2017 年 8 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by