<?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: ACAPI_Element_SolidOperation_Create() problem in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-SolidOperation-Create-problem/m-p/298050#M3875</link>
    <description>&lt;BLOCKQUOTE&gt;DimRad wrote:&lt;BR /&gt;Hello dear ArchiCAD developers!&lt;BR /&gt;
&lt;BR /&gt;
Recently have problem with ACAPI_Element_SolidOperation_Create() function in my add-on and ElementTest: Solid Operations example.&lt;BR /&gt;
I try to intersect 2 morphs that created by user from main ArchiCAD thread (creation without API). Function throw error -2130313215 APIERR_GENERAL: General error code. Both 2 Morph elements haven't changes (they exist in initial view) after that command.&lt;BR /&gt;
Post code below:&lt;BR /&gt;
&lt;BR /&gt;
GSErrCode clRDArchiM::RD_SolidOperation ()&lt;BR /&gt;
{&lt;BR /&gt;
	GS::GSErrCode err_local = GS::NoError; // Init Error code&lt;BR /&gt;
&lt;BR /&gt;
	API_ElemTypeID		typeID;&lt;BR /&gt;
	API_Guid			guid_Target, guid_Operator;&lt;BR /&gt;
	GS::Array&amp;lt;API_Guid&amp;gt;	guid_Results;&lt;BR /&gt;
&lt;BR /&gt;
	if (!ClickAnElem ("Click on a solid operation target", API_MorphID, NULL, &amp;amp;typeID, &amp;amp;guid_Target)) {&lt;BR /&gt;
		WriteReport_Alert ("No element was clicked.");&lt;BR /&gt;
		return err_local;&lt;BR /&gt;
	}&lt;BR /&gt;
&lt;BR /&gt;
	if (!ClickAnElem ("Click on a solid operator element", API_MorphID, NULL, &amp;amp;typeID, &amp;amp;guid_Operator)) {&lt;BR /&gt;
		WriteReport_Alert ("No element was clicked.");&lt;BR /&gt;
		return err_local;&lt;BR /&gt;
	}&lt;BR /&gt;
&lt;BR /&gt;
         &lt;B&gt;err_local =&lt;FONT color="violet"&gt; ACAPI_CallUndoableCommand&lt;/FONT&gt; ("Solid Operation intersection",[&amp;amp;] () -&amp;gt; GSErrCode 	{&lt;BR /&gt;
		return &lt;FONT color="red"&gt;ACAPI_Element_SolidOperation_Create&lt;/FONT&gt;(guid_Target, guid_Operator, APISolid_Intersect, &amp;amp;guid_Results);&lt;BR /&gt;
	});&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
	if (err_local != NoError) &lt;BR /&gt;
	{&lt;BR /&gt;
		if (err_local == APIERR_NO3D)&lt;BR /&gt;
			WriteReport_Alert ("Solid operation targets and operators can be freeshape elements only.");&lt;BR /&gt;
		else&lt;BR /&gt;
			WriteReport_Alert ("ACAPI_Element_SolidOperation_Create failed: %d", err_local);&lt;BR /&gt;
	}&lt;BR /&gt;
return err_local;&lt;BR /&gt;
};&lt;BR /&gt;
&lt;BR /&gt;
Please help me in this problem. Thank You!&lt;/BLOCKQUOTE&gt;

Hi,&lt;BR /&gt;
&lt;BR /&gt;
This is not your fault; it's a bug has been fixed in ARCHICAD 20 build 6529, and in ARCHICAD 21 build 3513.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
    <pubDate>Thu, 20 Jul 2017 11:39:48 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2017-07-20T11:39:48Z</dc:date>
    <item>
      <title>ACAPI_Element_SolidOperation_Create() problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-SolidOperation-Create-problem/m-p/298049#M3874</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello dear Archicad developers!&lt;BR /&gt;&lt;BR /&gt;Recently have problem with ACAPI_Element_SolidOperation_Create() function in my add-on and ElementTest: Solid Operations example.&lt;BR /&gt;I try to intersect 2 morphs that created by user from main Archicad thread (creation without API). Function throw error -2130313215 APIERR_GENERAL: General error code. Both 2 Morph elements haven't changes (they exist in initial view) after that command.&lt;BR /&gt;Post code below:&lt;BR /&gt;&lt;BR /&gt;GSErrCode clRDArchiM::RD_SolidOperation ()&lt;BR /&gt;{&lt;BR /&gt;GS::GSErrCode err_local = GS::NoError; // Init Error code&lt;BR /&gt;&lt;BR /&gt;API_ElemTypeID typeID;&lt;BR /&gt;API_Guid guid_Target, guid_Operator;&lt;BR /&gt;GS::Array&amp;lt;API_Guid&amp;gt; guid_Results;&lt;BR /&gt;&lt;BR /&gt;if (!ClickAnElem ("Click on a solid operation target", API_MorphID, NULL, &amp;amp;typeID, &amp;amp;guid_Target)) {&lt;BR /&gt;WriteReport_Alert ("No element was clicked.");&lt;BR /&gt;return err_local;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if (!ClickAnElem ("Click on a solid operator element", API_MorphID, NULL, &amp;amp;typeID, &amp;amp;guid_Operator)) {&lt;BR /&gt;WriteReport_Alert ("No element was clicked.");&lt;BR /&gt;return err_local;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;err_local =&lt;FONT color="violet"&gt; ACAPI_CallUndoableCommand&lt;/FONT&gt; ("Solid Operation intersection",[&amp;amp;] () -&amp;gt; GSErrCode {&lt;BR /&gt;return &lt;FONT color="red"&gt;ACAPI_Element_SolidOperation_Create&lt;/FONT&gt;(guid_Target, guid_Operator, APISolid_Intersect, &amp;amp;guid_Results);&lt;BR /&gt;});&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;if (err_local != NoError) &lt;BR /&gt;{&lt;BR /&gt;if (err_local == APIERR_NO3D)&lt;BR /&gt;WriteReport_Alert ("Solid operation targets and operators can be freeshape elements only.");&lt;BR /&gt;else&lt;BR /&gt;WriteReport_Alert ("ACAPI_Element_SolidOperation_Create failed: %d", err_local);&lt;BR /&gt;}&lt;BR /&gt;return err_local;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Please help me in this problem. Thank You!&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Dec 2022 13:03:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-SolidOperation-Create-problem/m-p/298049#M3874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Element_SolidOperation_Create() problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-SolidOperation-Create-problem/m-p/298050#M3875</link>
      <description>&lt;BLOCKQUOTE&gt;DimRad wrote:&lt;BR /&gt;Hello dear ArchiCAD developers!&lt;BR /&gt;
&lt;BR /&gt;
Recently have problem with ACAPI_Element_SolidOperation_Create() function in my add-on and ElementTest: Solid Operations example.&lt;BR /&gt;
I try to intersect 2 morphs that created by user from main ArchiCAD thread (creation without API). Function throw error -2130313215 APIERR_GENERAL: General error code. Both 2 Morph elements haven't changes (they exist in initial view) after that command.&lt;BR /&gt;
Post code below:&lt;BR /&gt;
&lt;BR /&gt;
GSErrCode clRDArchiM::RD_SolidOperation ()&lt;BR /&gt;
{&lt;BR /&gt;
	GS::GSErrCode err_local = GS::NoError; // Init Error code&lt;BR /&gt;
&lt;BR /&gt;
	API_ElemTypeID		typeID;&lt;BR /&gt;
	API_Guid			guid_Target, guid_Operator;&lt;BR /&gt;
	GS::Array&amp;lt;API_Guid&amp;gt;	guid_Results;&lt;BR /&gt;
&lt;BR /&gt;
	if (!ClickAnElem ("Click on a solid operation target", API_MorphID, NULL, &amp;amp;typeID, &amp;amp;guid_Target)) {&lt;BR /&gt;
		WriteReport_Alert ("No element was clicked.");&lt;BR /&gt;
		return err_local;&lt;BR /&gt;
	}&lt;BR /&gt;
&lt;BR /&gt;
	if (!ClickAnElem ("Click on a solid operator element", API_MorphID, NULL, &amp;amp;typeID, &amp;amp;guid_Operator)) {&lt;BR /&gt;
		WriteReport_Alert ("No element was clicked.");&lt;BR /&gt;
		return err_local;&lt;BR /&gt;
	}&lt;BR /&gt;
&lt;BR /&gt;
         &lt;B&gt;err_local =&lt;FONT color="violet"&gt; ACAPI_CallUndoableCommand&lt;/FONT&gt; ("Solid Operation intersection",[&amp;amp;] () -&amp;gt; GSErrCode 	{&lt;BR /&gt;
		return &lt;FONT color="red"&gt;ACAPI_Element_SolidOperation_Create&lt;/FONT&gt;(guid_Target, guid_Operator, APISolid_Intersect, &amp;amp;guid_Results);&lt;BR /&gt;
	});&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
	if (err_local != NoError) &lt;BR /&gt;
	{&lt;BR /&gt;
		if (err_local == APIERR_NO3D)&lt;BR /&gt;
			WriteReport_Alert ("Solid operation targets and operators can be freeshape elements only.");&lt;BR /&gt;
		else&lt;BR /&gt;
			WriteReport_Alert ("ACAPI_Element_SolidOperation_Create failed: %d", err_local);&lt;BR /&gt;
	}&lt;BR /&gt;
return err_local;&lt;BR /&gt;
};&lt;BR /&gt;
&lt;BR /&gt;
Please help me in this problem. Thank You!&lt;/BLOCKQUOTE&gt;

Hi,&lt;BR /&gt;
&lt;BR /&gt;
This is not your fault; it's a bug has been fixed in ARCHICAD 20 build 6529, and in ARCHICAD 21 build 3513.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Thu, 20 Jul 2017 11:39:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-SolidOperation-Create-problem/m-p/298050#M3875</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2017-07-20T11:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Element_SolidOperation_Create() problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-SolidOperation-Create-problem/m-p/298051#M3876</link>
      <description>Oh, it's wonderfull! 'Cause I spend a week reading documentation and debugging code thinking it's my bug.&lt;BR /&gt;
But here is another question - where can I download latest ArchiCAD 20 update 6529? On International site I see only build 6005 and on Russian localization site 5025.&lt;BR /&gt;
&lt;BR /&gt;
Thank You in advance!</description>
      <pubDate>Thu, 20 Jul 2017 12:01:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-SolidOperation-Create-problem/m-p/298051#M3876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T12:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Element_SolidOperation_Create() problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-SolidOperation-Create-problem/m-p/298052#M3877</link>
      <description>&lt;BLOCKQUOTE&gt;DimRad wrote:&lt;BR /&gt;Oh, it's wonderfull! 'Cause I spend a week reading documentation and debugging code thinking it's my bug.&lt;BR /&gt;
But here is another question - where can I download latest ArchiCAD 20 update 6529? On International site I see only build 6005 and on Russian localization site 5025.&lt;BR /&gt;
&lt;BR /&gt;
Thank You in advance!&lt;/BLOCKQUOTE&gt;

That update hasn't been published yet, sorry.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Mon, 24 Jul 2017 10:58:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-SolidOperation-Create-problem/m-p/298052#M3877</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2017-07-24T10:58:24Z</dc:date>
    </item>
  </channel>
</rss>

