<?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 AC17  API_CircleType.origC doesn't work? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/AC17-API-CircleType-origC-doesn-t-work/m-p/185228#M5298</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hey All,&lt;BR /&gt;&lt;BR /&gt;I try to read out the center coordinates of a circle, but it always gives 0,0. Can anyone confirm whether it is a bug, and is there any workaround?&lt;BR /&gt;&lt;BR /&gt;Thanks:&lt;BR /&gt;Andor&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Aug 2023 12:28:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-01T12:28:55Z</dc:date>
    <item>
      <title>AC17  API_CircleType.origC doesn't work?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/AC17-API-CircleType-origC-doesn-t-work/m-p/185228#M5298</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hey All,&lt;BR /&gt;&lt;BR /&gt;I try to read out the center coordinates of a circle, but it always gives 0,0. Can anyone confirm whether it is a bug, and is there any workaround?&lt;BR /&gt;&lt;BR /&gt;Thanks:&lt;BR /&gt;Andor&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 12:28:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/AC17-API-CircleType-origC-doesn-t-work/m-p/185228#M5298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-01T12:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: AC17  API_CircleType.origC doesn't work?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/AC17-API-CircleType-origC-doesn-t-work/m-p/185229#M5299</link>
      <description>Hi Andor, &lt;BR /&gt;
 &lt;BR /&gt;
Thanks for pointing out this issue! Unfortunately it's a little bug, circle.origC and circle.r and others are all zero. &lt;BR /&gt;
 &lt;BR /&gt;
But it's only cosmetic bug, you can get all informations about the circle in the &lt;FONT color="orange"&gt;element.arc&lt;/FONT&gt; structure (&lt;FONT color="orange"&gt;arc.origC&lt;/FONT&gt; and &lt;FONT color="orange"&gt;arc.r&lt;/FONT&gt;). &lt;BR /&gt;
 &lt;BR /&gt;
Check out my example code: 
&lt;PRE&gt;GSErrCode			err; 
GS::Array&amp;lt;API_Guid&amp;gt; circleList; 
 
// Get all circles 
err = ACAPI_Element_GetElemList (API_CircleID, &amp;amp;circleList); 
if (err != NoError) { 
	ErrorBeep ("ACAPI_Element_GetElemList ()", err); 
	return; 
} 
WriteReport ("Number of total circles: %u", (GS::UIntForStdio) circleList.GetSize ()); 
 
// Enumerate circles 
for (GS::Array&amp;lt;API_Guid&amp;gt;::ConstIterator it = circleList.Enumerate (); it != NULL; ++it) { 
	API_Element element; 
	BNZeroMemory (&amp;amp;element, sizeof (API_Element)); 
	element.header.typeID = API_CircleID; 
	element.header.guid = *it; 
 
	// Get informations about the circle 
	err = ACAPI_Element_Get (&amp;amp;element); 
	if (err != NoError) { 
		ErrorBeep ("ACAPI_Element_Get ()", err); 
		return; 
	} 
 
	WriteReport ("Circle center point: (%.2f,%.2f)",	/* !!! use .arc instead of .circle !!!*/ element.arc.origC.x, element.arc.origC.y); 
	WriteReport ("Circle radius: %.2f",					/* !!! use .arc instead of .circle !!!*/ element.arc.r); 
}&lt;/PRE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Regards, &lt;BR /&gt;
Tibor</description>
      <pubDate>Tue, 01 Jul 2014 13:57:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/AC17-API-CircleType-origC-doesn-t-work/m-p/185229#M5299</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2014-07-01T13:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: AC17  API_CircleType.origC doesn't work?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/AC17-API-CircleType-origC-doesn-t-work/m-p/185230#M5300</link>
      <description>Thanks a lot. Btw circle.r works for me, only the center was the issue..</description>
      <pubDate>Tue, 01 Jul 2014 14:03:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/AC17-API-CircleType-origC-doesn-t-work/m-p/185230#M5300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-01T14:03:20Z</dc:date>
    </item>
  </channel>
</rss>

