<?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 Memo size in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Memo-size/m-p/144108#M6712</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi,&lt;BR /&gt;I'm trying to return a number of windows/doors in a wall. I havent found a function that does this, but found a guidlist of windows attached to the wall element. Now I'm stuck on getting the number of windows. Tried this:&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
err = ACAPI_Element_GetMemo (guid, &amp;amp;memo, APIMemoMask_WallWindows);
		if (err==NoError){
			numW = BMGetHandleSize ((GSHandle) memo.wallWindows)/sizeof(API_Guid);	

&lt;/PRE&gt;
but it doesnt work - the "numW" is always 8 characters long.. I tried to define it as long, double and short type. I bet I'm doing something wrong, I'm a beginner in programming.&lt;BR /&gt;&lt;BR /&gt;so, where's the catch? &lt;BR /&gt;&lt;BR /&gt;thanks..&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Aug 2023 15:07:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-03T15:07:33Z</dc:date>
    <item>
      <title>Memo size</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Memo-size/m-p/144108#M6712</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi,&lt;BR /&gt;I'm trying to return a number of windows/doors in a wall. I havent found a function that does this, but found a guidlist of windows attached to the wall element. Now I'm stuck on getting the number of windows. Tried this:&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
err = ACAPI_Element_GetMemo (guid, &amp;amp;memo, APIMemoMask_WallWindows);
		if (err==NoError){
			numW = BMGetHandleSize ((GSHandle) memo.wallWindows)/sizeof(API_Guid);	

&lt;/PRE&gt;
but it doesnt work - the "numW" is always 8 characters long.. I tried to define it as long, double and short type. I bet I'm doing something wrong, I'm a beginner in programming.&lt;BR /&gt;&lt;BR /&gt;so, where's the catch? &lt;BR /&gt;&lt;BR /&gt;thanks..&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:07:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Memo-size/m-p/144108#M6712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Memo size</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Memo-size/m-p/144109#M6713</link>
      <description>hi,&lt;BR /&gt;
&lt;BR /&gt;
you may use fallowing way.&lt;BR /&gt;
&lt;BR /&gt;
err = ACAPI_Element_GetMemo (guid, &amp;amp;memo, APIMemoMask_WallWindows); &lt;BR /&gt;
      if (err==NoError &amp;amp;&amp;amp; memo.wallWindows != NULL){ &lt;BR /&gt;
         numW = BMGetHandleSize (reinterpret_cast&amp;lt;GSPtr&amp;gt;(memo.wallWindows)) / sizeof(API_Guid);&lt;BR /&gt;
&lt;BR /&gt;
it may work.&lt;BR /&gt;
&lt;BR /&gt;
Ranga</description>
      <pubDate>Mon, 15 Jun 2009 04:17:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Memo-size/m-p/144109#M6713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-15T04:17:40Z</dc:date>
    </item>
  </channel>
</rss>

