<?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: retrieving 3d data from a modle in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78357#M7089</link>
    <description>yeah, this is an interesting problem. i tried toying with the provided 3D_Test project, and while i can get it to dump the geometry of any object that i click on, it will not iterate through the whole plan and dump everything at once. it too tells me that there are no bodies in the plan. i don't get an error code.&lt;BR /&gt;
&lt;BR /&gt;
any help would really be appreciated.</description>
    <pubDate>Tue, 23 May 2006 20:50:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-05-23T20:50:41Z</dc:date>
    <item>
      <title>retrieving 3d data from a modle</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78356#M7088</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;hey&lt;BR /&gt;&lt;BR /&gt;the api stipulates that the following two function calls, ACAPI_3D_GetNum and ACAPI_3D_GetComponent are used to retrieve the data from archiCAD as meshes. however, it doesn't seem to work. i open an example file and the GetNum call returns zero.&lt;BR /&gt;&lt;BR /&gt;This is my test code:&lt;BR /&gt;
&lt;PRE&gt;std::stringstream str;
long              nBody;
GSErrCode         err;

err = ACAPI_3D_GetNum (API_BodyID, &amp;amp;nBody);
str &amp;lt;&amp;lt; "API_BodyID:" &amp;lt;&amp;lt; "\t\t\t" &amp;lt;&amp;lt; nBody &amp;lt;&amp;lt; "\n";

::MessageBox(NULL, str.str().c_str(), "AHHAHAHA", MB_OK);&lt;/PRE&gt;
trying to just arbitrarily obtain a 3D object returns no error, but an incorrect object id.&lt;BR /&gt;&lt;BR /&gt;can anyone help me with what i am doing wrong?&lt;BR /&gt;&lt;BR /&gt;thanks a lot&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 09:14:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78356#M7088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T09:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving 3d data from a modle</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78357#M7089</link>
      <description>yeah, this is an interesting problem. i tried toying with the provided 3D_Test project, and while i can get it to dump the geometry of any object that i click on, it will not iterate through the whole plan and dump everything at once. it too tells me that there are no bodies in the plan. i don't get an error code.&lt;BR /&gt;
&lt;BR /&gt;
any help would really be appreciated.</description>
      <pubDate>Tue, 23 May 2006 20:50:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78357#M7089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-23T20:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving 3d data from a modle</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78358#M7090</link>
      <description>The 3D window has to be active, and a valid model is required. Also, the 3D window has to be in shading mode, not in wireframe.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
&lt;BR /&gt;
Akos</description>
      <pubDate>Mon, 29 May 2006 13:01:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78358#M7090</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2006-05-29T13:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving 3d data from a modle</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78359#M7091</link>
      <description>&lt;BLOCKQUOTE&gt;Akos wrote:&lt;BR /&gt;The 3D window has to be active, and a valid model is required. Also, the 3D window has to be in shading mode, not in wireframe.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
&lt;BR /&gt;
Akos&lt;/BLOCKQUOTE&gt;

Are there any way to get around this problem? Can't I do this from the addon so the user doesn't have to be bothered?</description>
      <pubDate>Tue, 24 Apr 2007 12:52:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78359#M7091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-04-24T12:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving 3d data from a modle</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78360#M7092</link>
      <description>&lt;BLOCKQUOTE&gt;jmi wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Akos wrote:&lt;BR /&gt;The 3D window has to be active, and a valid model is required. Also, the 3D window has to be in shading mode, not in wireframe.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
&lt;BR /&gt;
Akos&lt;/BLOCKQUOTE&gt;

Are there any way to get around this problem? Can't I do this from the addon so the user doesn't have to be bothered?&lt;/BLOCKQUOTE&gt;

Perhaps 'ACAPI_Element_Get3DInfo' is what you are after?</description>
      <pubDate>Tue, 24 Apr 2007 20:42:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78360#M7092</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2007-04-24T20:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving 3d data from a modle</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78361#M7093</link>
      <description>&lt;BLOCKQUOTE&gt;Akos wrote:&lt;BR /&gt;The 3D window has to be active, and a valid model is required. Also, the 3D window has to be in shading mode, not in wireframe.
&lt;/BLOCKQUOTE&gt;

I think it should be implemented like this (from 3D_Test example):
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;short		origSight = 0, planSight;
// we must switch to the 3D Window's sight
planSight = (short) API_PlanSight;
err = ACAPI_3D_SelectSight (&amp;amp;planSight, &amp;amp;origSight);
if (err != NoError) {
	ErrorBeep ("Cannot switch to the 3D sight", err);
	return;
}
&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 May 2010 13:28:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78361#M7093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-24T13:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving 3d data from a modle</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78362#M7094</link>
      <description>&lt;BLOCKQUOTE&gt;archonmaster wrote:&lt;BR /&gt;I think it should be implemented like this (from 3D_Test example):&lt;/BLOCKQUOTE&gt;
It's not worth answering questions that are years old - after all, the answer might change every year   &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 24 May 2010 20:28:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/retrieving-3d-data-from-a-modle/m-p/78362#M7094</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-05-24T20:28:36Z</dc:date>
    </item>
  </channel>
</rss>

