<?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: Best way for Serialization? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Best-way-for-Serialization/m-p/570717#M8709</link>
    <description>&lt;P&gt;Very Cool! Thank you very much!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 07:24:56 GMT</pubDate>
    <dc:creator>Joel Buehler</dc:creator>
    <dc:date>2023-10-13T07:24:56Z</dc:date>
    <item>
      <title>Best way for Serialization?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Best-way-for-Serialization/m-p/401542#M8673</link>
      <description>&lt;P&gt;Hehey evryone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Id like that my user can save his work he did in my plugin into an add-on object. but my project object is quite big and im not firm enough in cpp to write for all sub-objects memmory read and write methods. so i had the idea that i just serialize my object and save the json or xml string into the add-on object. unfortunately in cpp serialization is also a difficult topic.. but did someone do this before and can share some tipps and tricks?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i see that we have in the AddOnCommandTest example some sort of JSON deserialization and in the goodies example there is a small xml serializer and deserializer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;im happy about any kind of suggestions or tipps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 11:01:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Best-way-for-Serialization/m-p/401542#M8673</guid>
      <dc:creator>Joel Buehler</dc:creator>
      <dc:date>2024-09-17T11:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Best way for Serialization?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Best-way-for-Serialization/m-p/570700#M8699</link>
      <description>&lt;P&gt;Hi Joel!&lt;BR /&gt;&lt;BR /&gt;Maybe the example called &lt;EM&gt;CommunicationClient_Test&lt;/EM&gt; would be a good start. It uses the class &lt;STRONG&gt;ObjectState&lt;/STRONG&gt; to do the serialization (in general). It uses the functionalities provided by &lt;STRONG&gt;ObjectStateJSONConversion.hpp&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;And if you need more examples for that, you can also check out:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;A href="https://github.com/tlorantfy/archicad-additional-json-commands/tree/master/Src" target="_blank"&gt;https://github.com/tlorantfy/archicad-additional-json-commands/tree/master/Src&lt;/A&gt; which uses also &lt;STRONG&gt;ObjectState&lt;/STRONG&gt; to create additional JSON interfaces like in the example Add-On and&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://github.com/ENZYME-APD/tapir-archicad-automation/tree/main/archicad-addon" target="_blank"&gt;https://github.com/ENZYME-APD/tapir-archicad-automation/tree/main/archicad-addon&lt;/A&gt; which builds even further on top of that.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also suspect that going from ObjectState &amp;lt;-&amp;gt; JSON to ObjectState &amp;lt;-&amp;gt; Binary later would be an option, since there are already functions for this as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 04:47:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Best-way-for-Serialization/m-p/570700#M8699</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-10-13T04:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Best way for Serialization?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Best-way-for-Serialization/m-p/570717#M8709</link>
      <description>&lt;P&gt;Very Cool! Thank you very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 07:24:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Best-way-for-Serialization/m-p/570717#M8709</guid>
      <dc:creator>Joel Buehler</dc:creator>
      <dc:date>2023-10-13T07:24:56Z</dc:date>
    </item>
  </channel>
</rss>

