<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Modifying the Zone Stamp in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Modifying-the-Zone-Stamp/m-p/180384#M19720</link>
    <description>Kevin:&lt;BR /&gt;
&lt;BR /&gt;
This is I bit of a hack. At line 226 of the 2D Script of the Zone Identifier 2 14, there is some code that starts:
&lt;PRE&gt;	max_len = max (	w_roona 			* name,
	…
				w_roovol 			* volume)&lt;/PRE&gt;

That determines the width of the text box rectangle, using the longest of 10 options (for the various information that could be displayed in the text boxes). The one you are interested in is:
	&lt;PRE&gt;w_roonu&lt;/PRE&gt;
at line 228, which gives the length of the zone number text (with a bit extra for the width of the rectangle).&lt;BR /&gt;
&lt;BR /&gt;
Then down at line 375 is the code for drawing the text box rectangle:
	&lt;PRE&gt;if numRow &amp;gt; 1 then rect2 0,-tBlockHeight[1],widthStamp,-vlen&lt;/PRE&gt;
You can modify this code to change the &lt;FONT color="blue"&gt;widthStamp&lt;/FONT&gt; (which is the maximum of all text options) to &lt;FONT color="blue"&gt;w_roonu&lt;/FONT&gt; which is the &amp;lt;zone number&amp;gt; text length (I think you are using the Zone Number for the Room Number in your illustration, the Room Number is another option in this zone object). So this code:
&lt;PRE&gt;if numRow &amp;gt; 1 then rect2 widthStamp/2-w_roonu/2,-tBlockHeight[1],widthStamp/2+w_roonu/2,-vlen&lt;/PRE&gt;
should draw the rectangle to fit the Zone Number. (It is a bit convoluted since the rectangle is normally drawn starting at the left edge of the Zone Stamp, but the zone number is shorter than the Zone Name, so I have used 1/2 of &lt;FONT color="blue"&gt;widthStamp&lt;/FONT&gt; to get to the center, then added and subtracted 1/2 of &lt;FONT color="blue"&gt;w_roonu&lt;/FONT&gt; to draw the rectangle.)&lt;BR /&gt;
&lt;BR /&gt;
There is an option for Lines Between Details that I have turned off, it is using the same parameters as the rectangle to draw these lines, so it is not needed if the rectangle contains only one listing.&lt;BR /&gt;
&lt;BR /&gt;
Now this all gets more complicated if you want to use more text display options,  as the rectangle width is determined by the Zone Number, so other text could be longer than this. Also, a similar fix would be needed to show the Lines Between Details.&lt;BR /&gt;
&lt;BR /&gt;
This should get you started, but as I said is a hack so would need more work depending on the various options you want to enable.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
    <pubDate>Thu, 29 Jul 2010 20:34:32 GMT</pubDate>
    <dc:creator>David Maudlin</dc:creator>
    <dc:date>2010-07-29T20:34:32Z</dc:date>
    <item>
      <title>Modifying the Zone Stamp</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modifying-the-Zone-Stamp/m-p/180382#M19718</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I would like to modify the Zone Identifier 2 stamp. We have been using an old, stamp we purchased which allowed two lines of text but you had to put a special character in the name to do a hard return, but with the word wrap feature it is no longer necessary, however I'd like to make a seemingly minor modification and I know just enough GDL (very little) to make myself dangerous. &lt;BR /&gt;
 &lt;BR /&gt;
I would like to have the ability to use the word wrap feature for the zone name and resize as needed for the plan, however, I'd like to fix the size of the frame around the zone (room) number, or actually so that the frame around the number would adjust to the size of the text it is containing, independent of the length of the name of the zone. See the attached for clarification. &lt;BR /&gt;
 &lt;BR /&gt;
Any help would be greatly appreciated.&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/74239i8060A893F6D2AE45/image-size/large?v=v2&amp;amp;px=999" border="0" alt="zonestamp.jpg" title="zonestamp.jpg" /&gt;</description>
      <pubDate>Wed, 28 Jul 2010 14:53:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modifying-the-Zone-Stamp/m-p/180382#M19718</guid>
      <dc:creator>kevin b</dc:creator>
      <dc:date>2010-07-28T14:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the Zone Stamp</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modifying-the-Zone-Stamp/m-p/180383#M19719</link>
      <description>I know someone will help you with this, but as what you are asking for is desired as an option by so many, including myself, I hope you will make a wish out of this  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 28 Jul 2010 17:56:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modifying-the-Zone-Stamp/m-p/180383#M19719</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2010-07-28T17:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the Zone Stamp</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modifying-the-Zone-Stamp/m-p/180384#M19720</link>
      <description>Kevin:&lt;BR /&gt;
&lt;BR /&gt;
This is I bit of a hack. At line 226 of the 2D Script of the Zone Identifier 2 14, there is some code that starts:
&lt;PRE&gt;	max_len = max (	w_roona 			* name,
	…
				w_roovol 			* volume)&lt;/PRE&gt;

That determines the width of the text box rectangle, using the longest of 10 options (for the various information that could be displayed in the text boxes). The one you are interested in is:
	&lt;PRE&gt;w_roonu&lt;/PRE&gt;
at line 228, which gives the length of the zone number text (with a bit extra for the width of the rectangle).&lt;BR /&gt;
&lt;BR /&gt;
Then down at line 375 is the code for drawing the text box rectangle:
	&lt;PRE&gt;if numRow &amp;gt; 1 then rect2 0,-tBlockHeight[1],widthStamp,-vlen&lt;/PRE&gt;
You can modify this code to change the &lt;FONT color="blue"&gt;widthStamp&lt;/FONT&gt; (which is the maximum of all text options) to &lt;FONT color="blue"&gt;w_roonu&lt;/FONT&gt; which is the &amp;lt;zone number&amp;gt; text length (I think you are using the Zone Number for the Room Number in your illustration, the Room Number is another option in this zone object). So this code:
&lt;PRE&gt;if numRow &amp;gt; 1 then rect2 widthStamp/2-w_roonu/2,-tBlockHeight[1],widthStamp/2+w_roonu/2,-vlen&lt;/PRE&gt;
should draw the rectangle to fit the Zone Number. (It is a bit convoluted since the rectangle is normally drawn starting at the left edge of the Zone Stamp, but the zone number is shorter than the Zone Name, so I have used 1/2 of &lt;FONT color="blue"&gt;widthStamp&lt;/FONT&gt; to get to the center, then added and subtracted 1/2 of &lt;FONT color="blue"&gt;w_roonu&lt;/FONT&gt; to draw the rectangle.)&lt;BR /&gt;
&lt;BR /&gt;
There is an option for Lines Between Details that I have turned off, it is using the same parameters as the rectangle to draw these lines, so it is not needed if the rectangle contains only one listing.&lt;BR /&gt;
&lt;BR /&gt;
Now this all gets more complicated if you want to use more text display options,  as the rectangle width is determined by the Zone Number, so other text could be longer than this. Also, a similar fix would be needed to show the Lines Between Details.&lt;BR /&gt;
&lt;BR /&gt;
This should get you started, but as I said is a hack so would need more work depending on the various options you want to enable.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 29 Jul 2010 20:34:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modifying-the-Zone-Stamp/m-p/180384#M19720</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2010-07-29T20:34:32Z</dc:date>
    </item>
  </channel>
</rss>

