<?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: How do I move a zone? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-move-a-zone/m-p/24962#M7204</link>
    <description>Hi! &lt;BR /&gt;
 &lt;BR /&gt;
Unfortunately repositioning the zone stamp using the zone's &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;pos&lt;E&gt;&lt;/E&gt; parameter does not work. Individual object replacement should work however, as far as I can tell. How did you try to go about it? &lt;BR /&gt;
 &lt;BR /&gt;
Andras.</description>
    <pubDate>Thu, 20 Jul 2006 11:42:49 GMT</pubDate>
    <dc:creator>Andras Babos</dc:creator>
    <dc:date>2006-07-20T11:42:49Z</dc:date>
    <item>
      <title>How do I move a zone?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-move-a-zone/m-p/24961#M7203</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;I could use a bit of help on something that should be simple (and probably is). I'm trying to move a zone to a new X,Y location. I have been able to successfully change the polygon of the zone, as well as modify walls, slabs, and pretty much everything else. But whenever I try to move a zone, the zone stamp refuses to move. I've even tried looking up the zone stamp object itself &amp;amp; moving it...but that gives an error indicating the operation was illegal.&lt;BR /&gt;&lt;BR /&gt;From the documentation, it seems like something as simple as the following code snipet should work...but it doesn't. Amy I missing something obvious?&lt;BR /&gt;&lt;BR /&gt;Any/all suggestions are appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;-larry&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;		element.header.typeID = API_ZoneID;
		element.header.unId = entityid;

		err = ACAPI_Element_Get (&amp;amp;element);
		if (err != NoError)
			return entityid;

		ACAPI_ELEMENT_MASK_CLEAR (mask);
		ACAPI_ELEMENT_MASK_SET (mask, API_ZoneType, pos);
		ACAPI_ELEMENT_MASK_SET (mask, API_ZoneType, refPos);
		element.zone.pos.x = centerpoint_x;
		element.zone.pos.y = centerpoint_y;
		element.zone.refPos.x = centerpoint_x;
		element.zone.refPos.y = centerpoint_y;

		err = ACAPI_Element_Change (&amp;amp;element, &amp;amp;mask, NULL, 0, true);	
	
&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:50:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-move-a-zone/m-p/24961#M7203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T08:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I move a zone?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-move-a-zone/m-p/24962#M7204</link>
      <description>Hi! &lt;BR /&gt;
 &lt;BR /&gt;
Unfortunately repositioning the zone stamp using the zone's &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;pos&lt;E&gt;&lt;/E&gt; parameter does not work. Individual object replacement should work however, as far as I can tell. How did you try to go about it? &lt;BR /&gt;
 &lt;BR /&gt;
Andras.</description>
      <pubDate>Thu, 20 Jul 2006 11:42:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-move-a-zone/m-p/24962#M7204</guid>
      <dc:creator>Andras Babos</dc:creator>
      <dc:date>2006-07-20T11:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I move a zone?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-move-a-zone/m-p/24963#M7205</link>
      <description>hi,&lt;BR /&gt;
i have a similar problem. Im trying simply to change a colour of a dimension pen. compiler suceeded, but nothing happens. I thing there is a problem in defining the mask. Here is my code:&lt;BR /&gt;

&lt;PRE&gt;API_Element			element, mask;
						
						BNZeroMemory (&amp;amp;element, sizeof (API_Element));
						
						element.header.guid = guid;
						err = ACAPI_Element_Get (&amp;amp;element);
						if (err != NoError){
							ErrorBeep ("ACAPI_Element_Get", err);
							return;
						}
			
						if (err == NoError) {
							ACAPI_ELEMENT_MASK_CLEAR (mask);
							ACAPI_ELEMENT_MASK_SET (mask, API_DimensionType, defNote.notePen);
							
							element.dimension.defNote.notePen=3;
							
							err = ACAPI_Element_Change (&amp;amp;element, &amp;amp;mask, NULL, 0, true);
&lt;/PRE&gt;

Thanks</description>
      <pubDate>Thu, 19 Aug 2010 12:48:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-move-a-zone/m-p/24963#M7205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-19T12:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I move a zone?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-move-a-zone/m-p/24964#M7206</link>
      <description>&lt;BLOCKQUOTE&gt;santi wrote:&lt;BR /&gt;Im trying simply to change a colour of a dimension pen.&lt;PRE&gt;element.dimension.defNote.notePen=3;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;defNote&lt;E&gt;&lt;/E&gt; contains the default text settings for the dimension, i.e. it will only apply to newly added dimension text and not existing text. The pen settings for placed dimensions are in the memo linked to the dimension element.</description>
      <pubDate>Mon, 23 Aug 2010 18:41:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-move-a-zone/m-p/24964#M7206</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-08-23T18:41:57Z</dc:date>
    </item>
  </channel>
</rss>

