<?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 Can't get Column element in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-get-Column-element/m-p/339853#M1976</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I use "ACAPI_Notify_CatchNewElement" to catch the modify of the element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;ACAPI_Notify_CatchNewElement(nullptr, ElementEventHandlerProc);
ACAPI_Notify_InstallElementObserver(ElementEventHandlerProc);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I indeed can get the event.however, if I create an&amp;nbsp;Column or Beam,I will get an elemHead which it's typeid is "API_ColumnID" but with an empty body.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GSErrCode __ACENV_CALL d5c_sync::ElementEventHandlerProc(const API_NotifyElementType * elem_type)
{
	GSErrCode err = NoError;
	if (err == NoError)
	{
		switch (elem_type-&amp;gt;notifID)
		{
			//	新增
		case APINotifyElement_New:
		case APINotifyElement_Copy:
		case APINotifyElement_Undo_Deleted:
		case APINotifyElement_Redo_Created:
                API_ElemInfo3D info3d;
	            BNZeroMemory(&amp;amp;info3d, sizeof(API_ElemInfo3D));
	            auto err = ACAPI_Element_Get3DInfo(elem_type-&amp;gt;elemHead, &amp;amp;info3d);
                break;
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;The question is that : When i create a Column, how can I get the real element with the geometry information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 05:56:30 GMT</pubDate>
    <dc:creator>WalterWhite</dc:creator>
    <dc:date>2022-05-31T05:56:30Z</dc:date>
    <item>
      <title>Can't get Column element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-get-Column-element/m-p/339853#M1976</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I use "ACAPI_Notify_CatchNewElement" to catch the modify of the element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;ACAPI_Notify_CatchNewElement(nullptr, ElementEventHandlerProc);
ACAPI_Notify_InstallElementObserver(ElementEventHandlerProc);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I indeed can get the event.however, if I create an&amp;nbsp;Column or Beam,I will get an elemHead which it's typeid is "API_ColumnID" but with an empty body.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GSErrCode __ACENV_CALL d5c_sync::ElementEventHandlerProc(const API_NotifyElementType * elem_type)
{
	GSErrCode err = NoError;
	if (err == NoError)
	{
		switch (elem_type-&amp;gt;notifID)
		{
			//	新增
		case APINotifyElement_New:
		case APINotifyElement_Copy:
		case APINotifyElement_Undo_Deleted:
		case APINotifyElement_Redo_Created:
                API_ElemInfo3D info3d;
	            BNZeroMemory(&amp;amp;info3d, sizeof(API_ElemInfo3D));
	            auto err = ACAPI_Element_Get3DInfo(elem_type-&amp;gt;elemHead, &amp;amp;info3d);
                break;
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;The question is that : When i create a Column, how can I get the real element with the geometry information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 05:56:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-get-Column-element/m-p/339853#M1976</guid>
      <dc:creator>WalterWhite</dc:creator>
      <dc:date>2022-05-31T05:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Column element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-get-Column-element/m-p/341499#M1977</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;ACAPI_Element_Get3DInfo doesn't get any 3D information for columns and beams because they are hierarchical elements (works like container). You should get all segments (API_ColumnSegmentType/API_BeamSegmentType) of column/segment and get their 3D information.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 13:25:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-get-Column-element/m-p/341499#M1977</guid>
      <dc:creator>Mihaly Palenik</dc:creator>
      <dc:date>2022-06-16T13:25:32Z</dc:date>
    </item>
  </channel>
</rss>

