Path: news.mathworks.com!not-for-mail
From: "Titus" <titus.edelhofer@mathworks.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Simulink: mass editing (background color) of block types?
Date: Wed, 30 Jul 2008 14:01:41 +0200
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <g6pl76$dnl$1@fred.mathworks.com>
References: <a6d9438f-7e28-46dc-8576-ad75b06b56d8@m36g2000hse.googlegroups.com>
NNTP-Posting-Host: de-edelhoft-x.ac.mathworks.de
X-Trace: fred.mathworks.com 1217419302 14069 172.16.75.150 (30 Jul 2008 12:01:42 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 30 Jul 2008 12:01:42 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:482614




"Clemens Winkler" <ClemensWinkler@gmx.net> schrieb im Newsbeitrag 
news:a6d9438f-7e28-46dc-8576-ad75b06b56d8@m36g2000hse.googlegroups.com...
> Hello group,
>
> because my simulink model is very big and with a lot of subsystems I
> want to use a "color schema", giving a all output ports the same
> color, all input ports the same color and so on.
>
> The model browser lets me search for block types. But I can't change
> properties like colors. Isn't it possible to do that in the model
> browser? (I use Matlab 7.1).
>
> For any hints I would be appreciated.
>
> Thanks & greetings,
> Clemens

Hi Clemens,

from commandline you could do this (e.g. for outports):

outports = find_system(yourModelName, 'BlockType', 'Outport');
for i=1:length(outports)
  set_param(outports{i},'BackgroundColor','yellow')
end

Titus