<?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 zone tag used as room tag in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56702#M28631</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;We got htis room tag from Eric Batte and I wanted to add something to the code for 3 lines for a room name. It currently has 2 lines for the room tag. here is the script from the master script:&lt;BR /&gt;
&lt;BR /&gt;
len = strlen(ROOM_NAME)&lt;BR /&gt;
    breaker = strstr(ROOM_NAME,"  ")&lt;BR /&gt;
    RN = strsub(ROOM_NAME,1,breaker-1)&lt;BR /&gt;
    KN = strsub(ROOM_NAME,breaker+1,len)&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff0051"&gt;and here's some of the code form the 2d:&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
middle = max_len/2&lt;BR /&gt;
&lt;BR /&gt;
vlen = - shight&lt;BR /&gt;
&lt;BR /&gt;
rot2 w&lt;BR /&gt;
add2 -max_len/2, vlen - max_h/2&lt;BR /&gt;
&lt;BR /&gt;
if name then&lt;BR /&gt;
if KN&amp;lt;&amp;gt;"*" THEN&lt;BR /&gt;
  Text2 middle,-vlen, KN&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
IF KN="*" THEN&lt;BR /&gt;
    Text2 middle,-vlen, RN&lt;BR /&gt;
ELSE&lt;BR /&gt;
    Text2 middle,2*(-vlen), RN&lt;BR /&gt;
ENDIF&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
How do I add another line of text? &lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help,&lt;BR /&gt;
Michele&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 24 Mar 2008 16:34:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-03-24T16:34:35Z</dc:date>
    <item>
      <title>zone tag used as room tag</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56702#M28631</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;We got htis room tag from Eric Batte and I wanted to add something to the code for 3 lines for a room name. It currently has 2 lines for the room tag. here is the script from the master script:&lt;BR /&gt;
&lt;BR /&gt;
len = strlen(ROOM_NAME)&lt;BR /&gt;
    breaker = strstr(ROOM_NAME,"  ")&lt;BR /&gt;
    RN = strsub(ROOM_NAME,1,breaker-1)&lt;BR /&gt;
    KN = strsub(ROOM_NAME,breaker+1,len)&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff0051"&gt;and here's some of the code form the 2d:&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
middle = max_len/2&lt;BR /&gt;
&lt;BR /&gt;
vlen = - shight&lt;BR /&gt;
&lt;BR /&gt;
rot2 w&lt;BR /&gt;
add2 -max_len/2, vlen - max_h/2&lt;BR /&gt;
&lt;BR /&gt;
if name then&lt;BR /&gt;
if KN&amp;lt;&amp;gt;"*" THEN&lt;BR /&gt;
  Text2 middle,-vlen, KN&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
IF KN="*" THEN&lt;BR /&gt;
    Text2 middle,-vlen, RN&lt;BR /&gt;
ELSE&lt;BR /&gt;
    Text2 middle,2*(-vlen), RN&lt;BR /&gt;
ENDIF&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
How do I add another line of text? &lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help,&lt;BR /&gt;
Michele&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Mar 2008 16:34:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56702#M28631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-24T16:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: zone tag used as room tag</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56703#M28632</link>
      <description>Need a little more of the script to help like how KN gets the value of "*", maybe in the master script or at the start of the 2D script? if the script is not copywrited can you post entire script. Otherwise just PM Eric directly, username: Eric Batte.</description>
      <pubDate>Tue, 25 Mar 2008 06:25:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56703#M28632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-25T06:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: zone tag used as room tag</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56704#M28633</link>
      <description>Here is the entire 2d script and I sent the entire master script in the last email.&lt;BR /&gt;
&lt;BR /&gt;
define style  "idestyle"  fonttype , ROOM_LSIZE , 2, 1&lt;BR /&gt;
define style  "idestyle2"  fonttype , ROOM_LSIZE , 8, 1&lt;BR /&gt;
&lt;BR /&gt;
mul2 A_/1000,A_/1000&lt;BR /&gt;
style idestyle&lt;BR /&gt;
rrr=request("Height_of_style","idestyle", shight)&lt;BR /&gt;
&lt;BR /&gt;
catname = ""&lt;BR /&gt;
catcode = ""&lt;BR /&gt;
rrr=request("Zone_category", "", catname, catcode)&lt;BR /&gt;
Zname = ROOM_NAME&lt;BR /&gt;
if cn_zn then Zname = catname                   !*** display Category Name as Zone name&lt;BR /&gt;
if catcode = "0" then Zname = "Gross Area"         !***prints "BGF" to the stamp&lt;BR /&gt;
&lt;BR /&gt;
area_form=""&lt;BR /&gt;
 rrr=request ("Area_dimension","",area_form)&lt;BR /&gt;
   room_area = str (area_form, ROOM_CALC_AREA)&lt;BR /&gt;
lin_form=""&lt;BR /&gt;
 rrr=request ("Linear_dimension","",lin_form)&lt;BR /&gt;
   room_height = str (lin_form , ROOM_HEIGHT)&lt;BR /&gt;
   room_perim = str (lin_form , ROOM_PERIM)&lt;BR /&gt;
&lt;BR /&gt;
unit = ""&lt;BR /&gt;
area_unit = ""&lt;BR /&gt;
lin_unit = ""&lt;BR /&gt;
form = ""&lt;BR /&gt;
&lt;BR /&gt;
form = lin_form     !*** Unit strings&lt;BR /&gt;
gosub 1001&lt;BR /&gt;
lin_unit = unit&lt;BR /&gt;
&lt;BR /&gt;
form = area_form&lt;BR /&gt;
gosub 1002&lt;BR /&gt;
area_unit = unit&lt;BR /&gt;
&lt;BR /&gt;
room_area = room_area + area_unit         !*** composite strings&lt;BR /&gt;
if ceil_h then room_height = "H: typical" else room_height = "H: " + room_height + lin_unit&lt;BR /&gt;
room_perim = "P: " + room_perim + lin_unit&lt;BR /&gt;
code_string = basec + " " + wallc + " " + ceilc&lt;BR /&gt;
&lt;BR /&gt;
  !w_roona = (stw (Zname)) * name                 !*** width of the strings - 0 if not displayed&lt;BR /&gt;
  w_roonu = (stw (ROOM_NUMBER)+3) * num &lt;BR /&gt;
  w_codes = stw (code_string)+3 * code&lt;BR /&gt;
  w_rooar = (stw (room_area)+3) * area&lt;BR /&gt;
  w_peri = (stw (room_perim)+3) * peri&lt;BR /&gt;
  w_roohe = (stw (room_height)+3) * ceil_s&lt;BR /&gt;
   max_len= max (w_roonu, w_codes, w_rooar, w_peri, w_roohe)&lt;BR /&gt;
  max_h = - (name + num + code + area + peri + ceil_s) * shight&lt;BR /&gt;
&lt;BR /&gt;
middle = max_len/2&lt;BR /&gt;
&lt;BR /&gt;
vlen = - shight&lt;BR /&gt;
&lt;BR /&gt;
rot2 w&lt;BR /&gt;
add2 -max_len/2, vlen - max_h/2&lt;BR /&gt;
&lt;BR /&gt;
if name then&lt;BR /&gt;
if KN&amp;lt;&amp;gt;"*" THEN&lt;BR /&gt;
  Text2 middle,-vlen, KN&lt;BR /&gt;
endif&lt;BR /&gt;
IF KN="*" THEN&lt;BR /&gt;
    Text2 middle,-vlen, RN&lt;BR /&gt;
ELSE&lt;BR /&gt;
    Text2 middle,2*(-vlen), RN&lt;BR /&gt;
ENDIF&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
if num then&lt;BR /&gt;
  n=n+1&lt;BR /&gt;
  vlen =vlen + shight&lt;BR /&gt;
  Text2 middle,-vlen, ROOM_NUMBER&lt;BR /&gt;
endif&lt;BR /&gt;
if area then&lt;BR /&gt;
  n=n+1&lt;BR /&gt;
  vlen =vlen + shight&lt;BR /&gt;
  Text2 middle, -vlen, room_area&lt;BR /&gt;
endif&lt;BR /&gt;
if code then&lt;BR /&gt;
  n=n+1&lt;BR /&gt;
  vlen =vlen + shight&lt;BR /&gt;
  Text2 middle,-vlen, code_string&lt;BR /&gt;
endif&lt;BR /&gt;
if peri then&lt;BR /&gt;
  n=n+1&lt;BR /&gt;
  vlen =vlen + shight&lt;BR /&gt;
  Text2 middle,-vlen, room_perim&lt;BR /&gt;
endif&lt;BR /&gt;
if ceil_s then&lt;BR /&gt;
  n=n+1&lt;BR /&gt;
  vlen =vlen + shight&lt;BR /&gt;
  Text2 middle,-vlen, room_height&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
vlen = vlen+shight&lt;BR /&gt;
&lt;BR /&gt;
!  hotspot2 0, shight&lt;BR /&gt;
!  hotspot2 max_len, shight&lt;BR /&gt;
!  hotspot2 0, max_h + shight&lt;BR /&gt;
!  hotspot2 max_len, max_h + shight&lt;BR /&gt;
!  hotspot2 max_len/2, max_h/2 + shight&lt;BR /&gt;
if hspots then&lt;BR /&gt;
!  hotspot2 max_len/2, -shight/2&lt;BR /&gt;
!  hotspot2 max_len/2, -i*shight&lt;BR /&gt;
!  hotspot2 0, max_h/2 + shight&lt;BR /&gt;
!  hotspot2 max_len, max_h/2 + shight&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
if box_y and n then&lt;BR /&gt;
  pen Pen_Box&lt;BR /&gt;
  line2  0 , 0, 0, -vlen&lt;BR /&gt;
  line2  max_len , 0, max_len , -vlen&lt;BR /&gt;
  for i=0 to n&lt;BR /&gt;
     line2 0,-i*shight, max_len, -i*shight&lt;BR /&gt;
     hotspot2 0, -i*shight&lt;BR /&gt;
     hotspot2 max_len, -i*shight &lt;BR /&gt;
     hotspot2 max_len/2, -i*shight&lt;BR /&gt;
  next i&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
end&lt;BR /&gt;
&lt;BR /&gt;
1001:                                           !*** Linear unit strings&lt;BR /&gt;
&lt;BR /&gt;
  if strstr (form, "m") then unit = " m"&lt;BR /&gt;
  if strstr (form, "cm") then unit = " cm"&lt;BR /&gt;
  if strstr (form, "mm") then unit = " mm"&lt;BR /&gt;
  if strstr (form, "i") or strstr (form, "f") then unit = ""&lt;BR /&gt;
&lt;BR /&gt;
return       &lt;BR /&gt;
&lt;BR /&gt;
1002:                                           !*** Area unit strings&lt;BR /&gt;
&lt;BR /&gt;
  if strstr (form, "sqm") then unit = " m2"&lt;BR /&gt;
  if strstr (form, "sqcm") then unit = " cm2"&lt;BR /&gt;
  if strstr (form, "sqmm") then unit = " mm2"&lt;BR /&gt;
  if strstr (form, "sqmm") then unit = " mm2"&lt;BR /&gt;
  if strstr (form, "sqf") then unit = " SF"&lt;BR /&gt;
  if strstr (form, "sqi") then unit = " sq inch"&lt;BR /&gt;
&lt;BR /&gt;
return&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michele</description>
      <pubDate>Tue, 25 Mar 2008 15:52:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56704#M28633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-25T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: zone tag used as room tag</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56705#M28634</link>
      <description>Michele, is there a parameter script, still cant find where the value of KN is defined with a "*"</description>
      <pubDate>Tue, 25 Mar 2008 22:21:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56705#M28634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-25T22:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: zone tag used as room tag</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56706#M28635</link>
      <description>There is no parameter script. Could it have benn hidden in the code? Does "*" mean anything in GDL code? &lt;BR /&gt;
&lt;BR /&gt;
Thanks for all your help and time looking at the code,&lt;BR /&gt;
Michele</description>
      <pubDate>Wed, 26 Mar 2008 14:14:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/zone-tag-used-as-room-tag/m-p/56706#M28635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-26T14:14:21Z</dc:date>
    </item>
  </channel>
</rss>

