<?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 Modification to Zone Stamp in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Modification-to-Zone-Stamp/m-p/202103#M13335</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I've created a new Zone Stamp based on one of ArchiCAD's Zone Stamps to add in a lot of Room Data Sheet fields as this seemed the best way to create Room Data Sheets without having to model the contents of each room.&lt;BR /&gt;
&lt;BR /&gt;
My problem is that I want the Zone Stamp not to display the "Calculated Area" but to display the "Measured area" and while I have managed to tweak it to do that what I can't seem to get to work is that the Stamp displays the area to up to 5 decimal places when it should be displaying just 2 as set in the MVO (Model View Option).&lt;BR /&gt;
&lt;BR /&gt;
Anyone able to suss out where I need to tweak the script to make it show what is required by the MVO&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 04 Oct 2013 14:18:23 GMT</pubDate>
    <dc:creator>fuzzytnth3</dc:creator>
    <dc:date>2013-10-04T14:18:23Z</dc:date>
    <item>
      <title>Modification to Zone Stamp</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modification-to-Zone-Stamp/m-p/202103#M13335</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I've created a new Zone Stamp based on one of ArchiCAD's Zone Stamps to add in a lot of Room Data Sheet fields as this seemed the best way to create Room Data Sheets without having to model the contents of each room.&lt;BR /&gt;
&lt;BR /&gt;
My problem is that I want the Zone Stamp not to display the "Calculated Area" but to display the "Measured area" and while I have managed to tweak it to do that what I can't seem to get to work is that the Stamp displays the area to up to 5 decimal places when it should be displaying just 2 as set in the MVO (Model View Option).&lt;BR /&gt;
&lt;BR /&gt;
Anyone able to suss out where I need to tweak the script to make it show what is required by the MVO&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Oct 2013 14:18:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modification-to-Zone-Stamp/m-p/202103#M13335</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2013-10-04T14:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modification to Zone Stamp</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modification-to-Zone-Stamp/m-p/202104#M13336</link>
      <description>Here's the script and I've highlight my changes in purple&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#9100FF"&gt;!TLOTT 03:10:13&lt;BR /&gt;
!Modified Area displayed to show Measured Area &lt;BR /&gt;
!not the Calaculated Area as this suits the&lt;BR /&gt;
!project&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
define style  "idestyle"  AC_TextFont_1 , ROOM_LSIZE , 1, 1&lt;BR /&gt;
mul2 PAPER_TO_MODEL, PAPER_TO_MODEL&lt;BR /&gt;
style idestyle&lt;BR /&gt;
&lt;BR /&gt;
rrr = request("Height_of_style", "idestyle", shight)&lt;BR /&gt;
catname = ""&lt;BR /&gt;
catcode = ""&lt;BR /&gt;
rrr = request("Zone_category", "", catname, catcode)&lt;BR /&gt;
&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 BGF" then Zname = "Gross Area"	! Prints "BGF" to the stamp&lt;BR /&gt;
&lt;BR /&gt;
if ROOM_POLY_STATUS = 0 then Temp_CalcArea	= ROOM_CALC_AREA	! Method 1 and 2&lt;BR /&gt;
if ROOM_POLY_STATUS = 1 then Temp_CalcArea	= ROOM_NET_AREA	! Method 3/Net		&lt;FONT color="#9100FF"&gt;!ROOM_CALC_AREA TLOTT&lt;/FONT&gt;&lt;BR /&gt;
if ROOM_POLY_STATUS = 2 then Temp_CalcArea	= ROOM_AREA			! Method 3/Gross&lt;BR /&gt;
&lt;BR /&gt;
area_form = ""									! Format as set in the Preferences&lt;BR /&gt;
	rrr = request("Area_dimension", "", area_form ) 	&lt;BR /&gt;
	room_area	= str(area_form, Temp_CalcArea )		&lt;BR /&gt;
&lt;BR /&gt;
lin_form = ""&lt;BR /&gt;
	rrr = request("Calc_length_unit", "", 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 = "A: " + room_area + area_unit			! Composite strings &lt;BR /&gt;
room_height = "H: " + room_height + lin_unit&lt;BR /&gt;
room_perim = "P: " + room_perim + lin_unit&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_floor	= (stw(floor_f)+3) * floor&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;
&lt;BR /&gt;
 max_len = max (w_roona, w_roonu, w_peri, w_rooar, w_roohe, w_floor)   !*** width of the stamp&lt;BR /&gt;
 max_h = - (name + num + floor + area + peri + ceil_s) * shight        !*** height of the stamp&lt;BR /&gt;
&lt;BR /&gt;
vlen = -shight&lt;BR /&gt;
if not(name) then&lt;BR /&gt;
	add2 0,shight&lt;BR /&gt;
else&lt;BR /&gt;
	add2 0,0&lt;BR /&gt;
endif&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;
   text2 0,-vlen, Zname&lt;BR /&gt;
endif&lt;BR /&gt;
n = 0&lt;BR /&gt;
if num then&lt;BR /&gt;
   n=n+1&lt;BR /&gt;
   vlen =vlen + shight&lt;BR /&gt;
   text2 2,-vlen, ROOM_NUMBER&lt;BR /&gt;
endif&lt;BR /&gt;
if floor then&lt;BR /&gt;
   n=n+1&lt;BR /&gt;
   vlen =vlen + shight&lt;BR /&gt;
   text2 2,-vlen, floor_f&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 2, -vlen, room_net_area	&lt;FONT color="#9100FF"&gt;!room_area	TLOTT&lt;/FONT&gt;&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 2,-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 2,-vlen, room_height&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
vlen = vlen + shight&lt;BR /&gt;
&lt;BR /&gt;
YY = 0&lt;BR /&gt;
if not(name) then&lt;BR /&gt;
	YY = shight&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
hotspot2 0, shight-YY&lt;BR /&gt;
hotspot2 max_len, shight-YY&lt;BR /&gt;
hotspot2 0, max_h + shight-YY&lt;BR /&gt;
hotspot2 max_len, max_h + shight-YY&lt;BR /&gt;
hotspot2 max_len/2, max_h/2 + shight-YY&lt;BR /&gt;
&lt;BR /&gt;
if max_h &amp;lt; -eps then&lt;BR /&gt;
	fill gs_fill_type&lt;BR /&gt;
	poly2_B{2}	5,2,gs_Fill_Pen, gs_Back_Pen,&lt;BR /&gt;
		0,		0,					0,&lt;BR /&gt;
		0,		max_h + shight-YY,	1,&lt;BR /&gt;
		0,		shight-YY,			1,&lt;BR /&gt;
		max_len,shight-YY,			1,&lt;BR /&gt;
		max_len,max_h + shight-YY,	1,&lt;BR /&gt;
		0,		max_h + shight-YY,	1&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
if hspots then&lt;BR /&gt;
	hotspot2 max_len/2, shight-YY&lt;BR /&gt;
	hotspot2 max_len/2, max_h + shight-YY&lt;BR /&gt;
	hotspot2 0, max_h/2 + shight-YY&lt;BR /&gt;
	hotspot2 max_len, max_h/2 + shight-YY&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;
	next i&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
! ==============================================================================&lt;BR /&gt;
end&lt;BR /&gt;
! ==============================================================================&lt;BR /&gt;
&lt;BR /&gt;
1001:											! Linear unit strings&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") | strstr (form, "f") then unit = ""&lt;BR /&gt;
return&lt;BR /&gt;
&lt;BR /&gt;
1002:											! Area unit strings&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 = " sq ft"&lt;BR /&gt;
	if strstr(form, "sqi")	then unit = " sq inch"&lt;BR /&gt;
return&lt;BR /&gt;
&lt;BR /&gt;
return</description>
      <pubDate>Fri, 04 Oct 2013 14:19:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modification-to-Zone-Stamp/m-p/202104#M13336</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2013-10-04T14:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Modification to Zone Stamp</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modification-to-Zone-Stamp/m-p/202105#M13337</link>
      <description>The script reads the area format set in Project Preferences for area in this line:&lt;BR /&gt;
&lt;BR /&gt;
rrr = request("Area_dimension", "", area_form ) &lt;BR /&gt;
&lt;BR /&gt;
So it will display the area according to your settings set for areas in the Dimension page of Project Preferences.</description>
      <pubDate>Sun, 06 Oct 2013 10:37:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modification-to-Zone-Stamp/m-p/202105#M13337</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2013-10-06T10:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modification to Zone Stamp</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modification-to-Zone-Stamp/m-p/202106#M13338</link>
      <description>Thanks for that Laszlo. &lt;BR /&gt;
&lt;BR /&gt;
As it turned out the facilities in the Zone object in ArchiCAD 17 are much more flexible than the Zone object I was using that I decided to "upgrade" to the AC17 version which resolved my issue</description>
      <pubDate>Fri, 11 Oct 2013 10:12:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modification-to-Zone-Stamp/m-p/202106#M13338</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2013-10-11T10:12:34Z</dc:date>
    </item>
  </channel>
</rss>

