<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173476</link>
    <title>MATLAB Central Newsreader - Simulink: mass editing (background color) of block types?</title>
    <description>Feed for thread: Simulink: mass editing (background color) of block types?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 30 Jul 2008 09:37:21 -0400</pubDate>
      <title>Simulink: mass editing (background color) of block types?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173476#446238</link>
      <author>Clemens Winkler</author>
      <description>Hello group,&lt;br&gt;
&lt;br&gt;
because my simulink model is very big and with a lot of subsystems I&lt;br&gt;
want to use a &quot;color schema&quot;, giving a all output ports the same&lt;br&gt;
color, all input ports the same color and so on.&lt;br&gt;
&lt;br&gt;
The model browser lets me search for block types. But I can't change&lt;br&gt;
properties like colors. Isn't it possible to do that in the model&lt;br&gt;
browser? (I use Matlab 7.1).&lt;br&gt;
&lt;br&gt;
For any hints I would be appreciated.&lt;br&gt;
&lt;br&gt;
Thanks &amp; greetings,&lt;br&gt;
Clemens</description>
    </item>
    <item>
      <pubDate>Wed, 30 Jul 2008 12:01:41 -0400</pubDate>
      <title>Re: Simulink: mass editing (background color) of block types?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173476#446260</link>
      <author>Titus</author>
      <description>&lt;br&gt;
&quot;Clemens Winkler&quot; &amp;lt;ClemensWinkler@gmx.net&amp;gt; schrieb im Newsbeitrag &lt;br&gt;
news:a6d9438f-7e28-46dc-8576-ad75b06b56d8@m36g2000hse.googlegroups.com...&lt;br&gt;
&amp;gt; Hello group,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; because my simulink model is very big and with a lot of subsystems I&lt;br&gt;
&amp;gt; want to use a &quot;color schema&quot;, giving a all output ports the same&lt;br&gt;
&amp;gt; color, all input ports the same color and so on.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The model browser lets me search for block types. But I can't change&lt;br&gt;
&amp;gt; properties like colors. Isn't it possible to do that in the model&lt;br&gt;
&amp;gt; browser? (I use Matlab 7.1).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; For any hints I would be appreciated.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks &amp; greetings,&lt;br&gt;
&amp;gt; Clemens&lt;br&gt;
&lt;br&gt;
Hi Clemens,&lt;br&gt;
&lt;br&gt;
from commandline you could do this (e.g. for outports):&lt;br&gt;
&lt;br&gt;
outports = find_system(yourModelName, 'BlockType', 'Outport');&lt;br&gt;
for i=1:length(outports)&lt;br&gt;
&amp;nbsp;&amp;nbsp;set_param(outports{i},'BackgroundColor','yellow')&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
Titus </description>
    </item>
    <item>
      <pubDate>Wed, 30 Jul 2008 12:20:18 -0400</pubDate>
      <title>Re: Simulink: mass editing (background color) of block types?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173476#446265</link>
      <author>Fangjun Jiang</author>
      <description>FYI&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;If you add the 'FindAll','On' spec and return all block &lt;br&gt;
handles, the for loop is not necessary. It should speed up &lt;br&gt;
the process.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;The other things to consider is 'FollowLinks' &lt;br&gt;
and 'LookUnderMasks'. If your model contains library &lt;br&gt;
links, I suggest you doing this on library model file.&lt;br&gt;
&lt;br&gt;
&quot;Titus&quot; &amp;lt;titus.edelhofer@mathworks.de&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g6pl76$dnl$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Clemens Winkler&quot; &amp;lt;ClemensWinkler@gmx.net&amp;gt; schrieb im &lt;br&gt;
Newsbeitrag &lt;br&gt;
&amp;gt; news:a6d9438f-7e28-46dc-8576-&lt;br&gt;
ad75b06b56d8@m36g2000hse.googlegroups.com...&lt;br&gt;
&amp;gt; &amp;gt; Hello group,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; because my simulink model is very big and with a lot &lt;br&gt;
of subsystems I&lt;br&gt;
&amp;gt; &amp;gt; want to use a &quot;color schema&quot;, giving a all output &lt;br&gt;
ports the same&lt;br&gt;
&amp;gt; &amp;gt; color, all input ports the same color and so on.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The model browser lets me search for block types. But &lt;br&gt;
I can't change&lt;br&gt;
&amp;gt; &amp;gt; properties like colors. Isn't it possible to do that &lt;br&gt;
in the model&lt;br&gt;
&amp;gt; &amp;gt; browser? (I use Matlab 7.1).&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; For any hints I would be appreciated.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks &amp; greetings,&lt;br&gt;
&amp;gt; &amp;gt; Clemens&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi Clemens,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; from commandline you could do this (e.g. for outports):&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; outports = find_system&lt;br&gt;
(yourModelName, 'BlockType', 'Outport');&lt;br&gt;
&amp;gt; for i=1:length(outports)&lt;br&gt;
&amp;gt;   set_param(outports{i},'BackgroundColor','yellow')&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Titus &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Wed, 30 Jul 2008 16:35:05 -0400</pubDate>
      <title>Re: Simulink: mass editing (background color) of block types?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173476#446323</link>
      <author>Clemens Winkler</author>
      <description>Thank you guys. I will try your hints!&lt;br&gt;
&lt;br&gt;
Greets, Clemens</description>
    </item>
  </channel>
</rss>

