How can I save and load customized (background-)colors of blocks for later simulink sessions?
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Muthu Annamalai
2013-6-26
>> clr = get_param(gcb,'BackgroundColor','Orange')
'white'
>> set_param(gcb,'BackgroundColor','Orange')
Whole list of colors should be at http://www.mathworks.com/help/simulink/ug/specifying-block-diagram-colors.html#f4-93649
更多回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!