<?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: Save User Data in Library Part in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226332#M2766</link>
    <description>When the element was created I filled the memo with ACAPI_Element_GetDefaults(&amp;amp;element, &amp;amp;memo);&lt;BR /&gt;
&lt;BR /&gt;
But calling ACAPI_Element_GetMemo  now, the wallWindows pointer in API_ElementMemo is empty.</description>
    <pubDate>Thu, 12 Mar 2020 14:36:33 GMT</pubDate>
    <dc:creator>Martin Walter</dc:creator>
    <dc:date>2020-03-12T14:36:33Z</dc:date>
    <item>
      <title>Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226326#M2760</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;What can I do to save binary user data with ~100KB in a Library Part?&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 10:38:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226326#M2760</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2021-09-15T10:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226327#M2761</link>
      <description>Is the data for use only by the add-on? Or does the library part need to share it?&lt;BR /&gt;
&lt;BR /&gt;
If the former, use &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_SetUserData&lt;E&gt;&lt;/E&gt;.&lt;BR /&gt;
&lt;BR /&gt;
Otherwise (if the object needs to 'see' the data) you probably need to write the data to object parameters.</description>
      <pubDate>Sat, 07 Mar 2020 17:48:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226327#M2761</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-03-07T17:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226328#M2762</link>
      <description>I'm creating a library part with some user data in the parameter section and putting it as element into a wall.&lt;BR /&gt;
&lt;BR /&gt;
Later the user selects an element and the addon should get the library part from it and read the user data from the parameter section.&lt;BR /&gt;
&lt;BR /&gt;
The first part seems to be working using ACAPI_LibPart_GetSect_ParamDef. &lt;BR /&gt;
&lt;BR /&gt;
But how do I get the library part from a selected element?</description>
      <pubDate>Thu, 12 Mar 2020 12:39:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226328#M2762</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2020-03-12T12:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226329#M2763</link>
      <description>Is the library part a door/window or an ordinary object?&lt;BR /&gt;
&lt;BR /&gt;
If it's a door/window, the wall contains links to the embedded objects in its memo structure. You can obtain this with &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;BR /&gt;
&lt;BR /&gt;
If it's an ordinary object, you will need to establish a link between the wall and object using &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_Link&lt;E&gt;&lt;/E&gt;. You can later retrieve linked objects from the wall using &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_GetLinks&lt;E&gt;&lt;/E&gt;.</description>
      <pubDate>Thu, 12 Mar 2020 12:53:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226329#M2763</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-03-12T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226330#M2764</link>
      <description>It's a window or door. So what memo mask should I use for ACAPI_Element_GetMemo?</description>
      <pubDate>Thu, 12 Mar 2020 14:01:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226330#M2764</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2020-03-12T14:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226331#M2765</link>
      <description>&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIMemoMask_WallWindows&lt;E&gt;&lt;/E&gt; for windows&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIMemoMask_WallDoors&lt;E&gt;&lt;/E&gt; for doors</description>
      <pubDate>Thu, 12 Mar 2020 14:07:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226331#M2765</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-03-12T14:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226332#M2766</link>
      <description>When the element was created I filled the memo with ACAPI_Element_GetDefaults(&amp;amp;element, &amp;amp;memo);&lt;BR /&gt;
&lt;BR /&gt;
But calling ACAPI_Element_GetMemo  now, the wallWindows pointer in API_ElementMemo is empty.</description>
      <pubDate>Thu, 12 Mar 2020 14:36:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226332#M2766</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2020-03-12T14:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226333#M2767</link>
      <description>Are there any windows placed in the wall?</description>
      <pubDate>Thu, 12 Mar 2020 14:47:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226333#M2767</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-03-12T14:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226334#M2768</link>
      <description>Yes, I use a selected window, that is placed in the wall and would like to get the corresponding library part and then the user data.</description>
      <pubDate>Thu, 12 Mar 2020 14:49:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226334#M2768</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2020-03-12T14:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226335#M2769</link>
      <description>In the API file APIdefs_Elements.h&lt;BR /&gt;
where the API_ElementMemo structure is defined there is the line:&lt;BR /&gt;
&lt;BR /&gt;
API_Guid *wallWindows;				// output only (obsolete, use ACAPI_Element_GetConnectedElements instead)&lt;BR /&gt;
&lt;BR /&gt;
so maybe this part should not be used any more?</description>
      <pubDate>Thu, 12 Mar 2020 14:53:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226335#M2769</guid>
      <dc:creator>Martin Walter</dc:creator>
      <dc:date>2020-03-12T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Save User Data in Library Part</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226336#M2770</link>
      <description>Yes, follow any advice you find in the code or documentation</description>
      <pubDate>Thu, 12 Mar 2020 16:52:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Save-User-Data-in-Library-Part/m-p/226336#M2770</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-03-12T16:52:41Z</dc:date>
    </item>
  </channel>
</rss>

