How can I save and load customized (background-)colors of blocks for later simulink sessions?
조회 수: 2 (최근 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!