<?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: Accessing properties &amp;amp; attributes of an element in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138633#M5753</link>
    <description>Is there a way to communicate off the message board?  I'm not comfortable sharing that information in a public forum - at least until the product is released.  You could send me your email address at &lt;A href="mailto: les@leswoolsey.com"&gt;les@leswoolsey.com&lt;/A&gt; which would allow private communication without exposing your email address publicly.  (I don't mind sharing mine since I don't expect a lot of people to come to me for help!)</description>
    <pubDate>Tue, 23 Apr 2013 22:34:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-04-23T22:34:55Z</dc:date>
    <item>
      <title>Accessing properties &amp; attributes of an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138626#M5746</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I can find an element by it's GUID and identify it's type. Now I'd like to enumerate and list all its properties or attributes. I can see the various data I want to get at by selecting an element and right clicking on it and looking at its settings. &lt;BR /&gt;&lt;BR /&gt;So, for example, for a door, I can see it has an ID, it has a setting that says whether its load bearing, external etc. I can also see that there are Materials and other parameters associated with the door. &lt;BR /&gt;&lt;BR /&gt;How do I get at these via API. I tried listing the parameters and it always tells me the parameter count is 0.&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 13:20:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138626#M5746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-02T13:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing properties &amp; attributes of an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138627#M5747</link>
      <description>&lt;BLOCKQUOTE&gt;LesWoolsey wrote:&lt;BR /&gt;I can see it has an ID, it has a setting that says whether its load bearing, external etc.  I can also see that there are Materials and other parameters associated with the door. How do I get at these via API.  I tried listing the parameters and it always tells me the parameter count is 0.&lt;/BLOCKQUOTE&gt;
I assume you want the parameters derived from the GDL door object? If so, you need to look in a memo structure linked to the element. This data is not automatically loaded with the rest of the element for efficiency, so it has to be loaded independently. There are 2 ways to approach this:&lt;UL&gt;&lt;LI&gt;1. The easiest method is &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIAny_OpenParametersID&lt;E&gt;&lt;/E&gt; (and related functions). Refer to the documentation for more information.&lt;BR /&gt;
&lt;BR /&gt;
2. The former approach may not be flexible enough - if so, take a look at the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;API_ElementMemo&lt;E&gt;&lt;/E&gt; structure (specifically the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;params&lt;E&gt;&lt;/E&gt; field) and the function that retrieves the data, &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Element_GetMemo&lt;E&gt;&lt;/E&gt;.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 22 Apr 2013 10:53:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138627#M5747</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2013-04-22T10:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing properties &amp; attributes of an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138628#M5748</link>
      <description>Still not getting it.  I've tried both methods and indeed I can something back but not anything helpful.  The API docs both refer to a list of parameters but then return nothing that looks like a list.  So for example, if I get the memo data:&lt;BR /&gt;
	API_ElementMemo  memo;&lt;BR /&gt;
	if (element.header.hasMemo) {&lt;BR /&gt;
		err = ACAPI_Element_GetMemo(element.header.guid, &amp;amp;memo);&lt;BR /&gt;
		if (err == NoError) {&lt;BR /&gt;
the memo object has a value for param called "A".  But where are the rest of the parameters?&lt;BR /&gt;
&lt;BR /&gt;
I did try the APIAny_OpenParametersID and APIAny_GetActParametersID functions following the example code and I just got the same result.  There didn't seem to be a way to get a parameter count, parameter list or parameter array anywhere.&lt;BR /&gt;
&lt;BR /&gt;
I'm clearly missing something pretty obvious but I can't see what based on the documentation &amp;amp; examples.&lt;BR /&gt;
&lt;BR /&gt;
I'll continue digging to but any suggestions would be appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Les</description>
      <pubDate>Mon, 22 Apr 2013 16:42:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138628#M5748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-22T16:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing properties &amp; attributes of an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138629#M5749</link>
      <description>&lt;BLOCKQUOTE&gt;LesWoolsey wrote:&lt;BR /&gt;the memo object has a value for param called "A".  But where are the rest of the parameters?&lt;/BLOCKQUOTE&gt;
The 'A' parameter is simply the first item in the array, i.e. &lt;PRE&gt;(*memo.params)[0]&lt;/PRE&gt;
The 'B' parameter would be:&lt;PRE&gt;(*memo.params)[1]&lt;/PRE&gt;
...and so on. You could get the total number of parameters by dividing the memory allocation by the size of the parameter structure:&lt;PRE&gt;		UInt32 totalParams = BMGetHandleSize(memo.params) / sizeof(API_AddParType);&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Apr 2013 19:46:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138629#M5749</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2013-04-22T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing properties &amp; attributes of an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138630#M5750</link>
      <description>Thanks - that at least gets me a bunch of data that I can look at.  Unfortunately it doesn't seem to relate in any obvious way to the building.  For example, if I select a door and check its selection properties, I get a whole lot of properties,  For  example, under Tags &amp;amp; Categories &amp;amp; I can see, ID, Structural Function, Position etc.  But I don't see any of that in the list I get back in the memo params.  I also don't get back the door's type.  I can't see where the various materials and finished are defined.&lt;BR /&gt;
&lt;BR /&gt;
My goal is to be able to see the various properties that get exposed in the IFC file and be able to view (and in some cases change them).  So I'm trying to relate standard property names (eg from PSET_DOORCOMMON]) back to the definition in the model.&lt;BR /&gt;
&lt;BR /&gt;
Am I looking in the wrong place to find this, or am I missing something obvious.  I have to admit that doing this as a plug-in for Revit was pretty straight forward.&lt;BR /&gt;
&lt;BR /&gt;
Your advice/suggestoins are appreciated.&lt;BR /&gt;
[/img]</description>
      <pubDate>Tue, 23 Apr 2013 15:23:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138630#M5750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-23T15:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing properties &amp; attributes of an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138631#M5751</link>
      <description>HMM.  Maybe I'm trying too hard.  I'm looking at the IFC parameter &amp;amp; attribute calls (new in v16) to see whether they will do the job for me.  stand by...</description>
      <pubDate>Tue, 23 Apr 2013 16:44:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138631#M5751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-23T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing properties &amp; attributes of an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138632#M5752</link>
      <description>&lt;BLOCKQUOTE&gt;LesWoolsey wrote:&lt;BR /&gt;it doesn't seem to relate in any obvious way to the building.  For example, if I select a door and check its selection properties, I get a whole lot of properties,  For  example, under Tags &amp;amp; Categories &amp;amp; I can see, ID, Structural Function, Position etc.  But I don't see any of that in the list I get back in the memo params.  I also don't get back the door's type.  I can't see where the various materials and finished are defined. My goal is to be able to see the various properties that get exposed in the IFC file&lt;/BLOCKQUOTE&gt;
The data is stored in different locations - some it is in the element, some in the parameters, and some in the IFC properties/attributes. And yes, the new functions in AC16 will allow you to extract the IFC properties. However, the IFC properties may not relate to anything you see in the model, e.g. the materials of a door. Objects cannot use (or even see) IFC properties, so materials will largely be driven by parameters.&lt;BR /&gt;
&lt;BR /&gt;
Could you describe the functionality you are aiming to develop at a higher level? It might be easier to suggest a way forward.</description>
      <pubDate>Tue, 23 Apr 2013 21:59:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138632#M5752</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2013-04-23T21:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing properties &amp; attributes of an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138633#M5753</link>
      <description>Is there a way to communicate off the message board?  I'm not comfortable sharing that information in a public forum - at least until the product is released.  You could send me your email address at &lt;A href="mailto: les@leswoolsey.com"&gt;les@leswoolsey.com&lt;/A&gt; which would allow private communication without exposing your email address publicly.  (I don't mind sharing mine since I don't expect a lot of people to come to me for help!)</description>
      <pubDate>Tue, 23 Apr 2013 22:34:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138633#M5753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-23T22:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing properties &amp; attributes of an element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138634#M5754</link>
      <description>&lt;BLOCKQUOTE&gt;LesWoolsey wrote:&lt;BR /&gt;Is there a way to communicate off the message board?&lt;/BLOCKQUOTE&gt;
Sure, I'll contact you by email. The best starting point from this forum is PM first - then you don't need to expose your email address. Spammers trawl these forums for target addresses unfortunately.</description>
      <pubDate>Wed, 24 Apr 2013 12:20:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Accessing-properties-amp-attributes-of-an-element/m-p/138634#M5754</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2013-04-24T12:20:30Z</dc:date>
    </item>
  </channel>
</rss>

