Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Simulink: mass editing (background color) of block types?
Date: Wed, 30 Jul 2008 12:20:18 +0000 (UTC)
Organization: Ford Motor Co
Lines: 50
Message-ID: <g6pma2$omg$1@fred.mathworks.com>
References: <a6d9438f-7e28-46dc-8576-ad75b06b56d8@m36g2000hse.googlegroups.com> <g6pl76$dnl$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1217420418 25296 172.30.248.35 (30 Jul 2008 12:20:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 30 Jul 2008 12:20:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 35831
Xref: news.mathworks.com comp.soft-sys.matlab:482619



FYI

  If you add the 'FindAll','On' spec and return all block 
handles, the for loop is not necessary. It should speed up 
the process.

  The other things to consider is 'FollowLinks' 
and 'LookUnderMasks'. If your model contains library 
links, I suggest you doing this on library model file.

"Titus" <titus.edelhofer@mathworks.de> wrote in message 
<g6pl76$dnl$1@fred.mathworks.com>...
> 
> "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 
> 
>