<?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: Element ID and other old Properties in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265266#M3470</link>
    <description>&lt;BLOCKQUOTE&gt;leilei wrote:&lt;BR /&gt;elemInfoString &lt;/BLOCKQUOTE&gt;

Thanks a lot, I would never found it out &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; Do you have any clue how to access other parameters like position, structural function?&lt;BR /&gt;
&lt;BR /&gt;
I mean time I did a workaround and put ID into the property with an expression. Probably we will do it with other properties and kind of skip using those old props.</description>
    <pubDate>Fri, 30 Nov 2018 10:17:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-30T10:17:58Z</dc:date>
    <item>
      <title>Element ID and other old Properties</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265264#M3468</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I have quite a simple question. But I really could find a simple solution in the documentation. I have check Element and Memo structure and it's not there.&lt;BR /&gt;&lt;BR /&gt;I would like to access element ID and also other Properties which are older than properties like: structural function, position. How can I do it?&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:49:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265264#M3468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Element ID and other old Properties</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265265#M3469</link>
      <description>&lt;BLOCKQUOTE&gt;kzaremba wrote:&lt;BR /&gt;
I have quite a simple question. But I really could find a simple solution in the documentation.  I have check Element and Memo structure and it's not there.&lt;BR /&gt;
&lt;BR /&gt;
I would like to access element ID and also other Properties which are older than properties like: structural function, position. How can I do it?
&lt;/BLOCKQUOTE&gt;

Hi,&lt;BR /&gt;
The element id is elemInfoString in memo.You can find what you want in the Do_DumpElem function in the Element_baseic.cpp</description>
      <pubDate>Fri, 30 Nov 2018 03:21:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265265#M3469</guid>
      <dc:creator>leilei</dc:creator>
      <dc:date>2018-11-30T03:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Element ID and other old Properties</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265266#M3470</link>
      <description>&lt;BLOCKQUOTE&gt;leilei wrote:&lt;BR /&gt;elemInfoString &lt;/BLOCKQUOTE&gt;

Thanks a lot, I would never found it out &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; Do you have any clue how to access other parameters like position, structural function?&lt;BR /&gt;
&lt;BR /&gt;
I mean time I did a workaround and put ID into the property with an expression. Probably we will do it with other properties and kind of skip using those old props.</description>
      <pubDate>Fri, 30 Nov 2018 10:17:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265266#M3470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T10:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Element ID and other old Properties</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265267#M3471</link>
      <description>Hi,&lt;BR /&gt;
You can see this in Element_Test example.
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;// -----------------------------------------------------------------------------
// Dump element category value
// -----------------------------------------------------------------------------
void		Do_DumpElemCategoryValue (const API_ElemCategoryValue&amp;amp; elemCategoryValue)
{
	WriteReport ("   %s   : %s (%s)", GS::UniString (elemCategoryValue.category.name).ToCStr ().Get (), GS::UniString (elemCategoryValue.name).ToCStr ().Get (), APIGuidToString (elemCategoryValue.guid).ToCStr ().Get ());
}


// -----------------------------------------------------------------------------
// Dump element's categories
// -----------------------------------------------------------------------------
void		Do_DumpElemCategories (const API_Guid&amp;amp; elemGuid, const API_ElemTypeID&amp;amp; typeID, const API_ElemVariationID&amp;amp; variationID, bool dumpDefaults)
{
	GSErrCode			err = NoError;

	GS::Array&amp;lt;API_ElemCategory&amp;gt; categoryList;
	ACAPI_Database (APIDb_GetElementCategoriesID, &amp;amp;categoryList);

	categoryList.Enumerate ([&amp;amp;] (const API_ElemCategory&amp;amp; category) {
		if (category.categoryID != API_ElemCategory_BRI) {
			API_ElemCategoryValue	elemCategoryValue;

			if (dumpDefaults) {
				err = ACAPI_Element_GetCategoryValueDefault (typeID, variationID, category, &amp;amp;elemCategoryValue);
				if (err == NoError)
					Do_DumpElemCategoryValue (elemCategoryValue);
				else
					ErrorBeep ("ACAPI_Element_GetCategoryValueDefault ()", err);
			} else {
				err = ACAPI_Element_GetCategoryValue (elemGuid, category, &amp;amp;elemCategoryValue);
				if (err == NoError)
					Do_DumpElemCategoryValue (elemCategoryValue);
				else
					ErrorBeep ("ACAPI_Element_GetCategoryValue ()", err);
			}
		}
	});
}
&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Nov 2018 10:43:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265267#M3471</guid>
      <dc:creator>leilei</dc:creator>
      <dc:date>2018-11-30T10:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Element ID and other old Properties</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265268#M3472</link>
      <description>Thanks a lot. I saw it but when I saw name Categories i thought it Zone related function. Thanks for the right direction.</description>
      <pubDate>Fri, 30 Nov 2018 10:48:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-ID-and-other-old-Properties/m-p/265268#M3472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T10:48:15Z</dc:date>
    </item>
  </channel>
</rss>

