<?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: Editing XML files in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324638#M4560</link>
    <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/640"&gt;@runxel&lt;/a&gt;&amp;nbsp;Thanks the GUID worried me, now I understand them a lot better.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 16:14:06 GMT</pubDate>
    <dc:creator>DGSketcher</dc:creator>
    <dc:date>2021-12-09T16:14:06Z</dc:date>
    <item>
      <title>Editing XML files</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324559#M4556</link>
      <description>&lt;P&gt;Archicad appears to be using XML for a number of exportables. My current interest is the Project Info file which also doubles as a handy store for Autotexts. What is the recommended way to edit / format these files outside of AC? I would like to open the file and add a number of Autotext values that can then be imported back into AC. Is this an acceptable exercise or is editing the file a no-go area?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 07:42:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324559#M4556</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2024-09-20T07:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Editing XML files</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324606#M4557</link>
      <description>&lt;P&gt;I used to heavily modify android framework xml files to alter look and feel on my phone, I bet you can use notepad or equivalent, or anything that opens and resaves xml files.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 08:39:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324606#M4557</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2021-12-09T08:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Editing XML files</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324608#M4558</link>
      <description>&lt;P&gt;Thanks, I can open with text edit, but the bit that troubles me is the lines of code that contain unique ID references, which I assume have to be generated by AC...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;![CDATA[autotext-BUILDING-0659ED0C-1267-E947-9D40-9566D9678B35]]&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 08:50:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324608#M4558</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2021-12-09T08:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Editing XML files</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324618#M4559</link>
      <description>&lt;P&gt;The project info XML has two big ubernodes:&lt;/P&gt;&lt;P&gt;&amp;lt;FixKeys&amp;gt; and &amp;lt;CustomKeys&amp;gt;. Both have an attribute called "val" set to a number.&lt;/P&gt;&lt;P&gt;Don't touch the &amp;lt;FixKeys&amp;gt; node and its contents. In the &amp;lt;CustomKeys&amp;gt; you can add as many new nodes as you like, but keep them ordered, as their names have a counter in it. Don't forget to set the "val" attribute in the end to the right number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One custom node looks like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Custom1&amp;gt;
  &amp;lt;UIKey&amp;gt;
    &amp;lt;![CDATA[Eigentümer]]&amp;gt;
  &amp;lt;/UIKey&amp;gt;
  &amp;lt;DBKey&amp;gt;
    &amp;lt;![CDATA[autotext-SITE-0A3DEF04-F614-574B-A59F-847C7B4393D9]]&amp;gt;
  &amp;lt;/DBKey&amp;gt;
  &amp;lt;value&amp;gt;
    &amp;lt;![CDATA[&amp;lt;####&amp;gt;]]&amp;gt;
  &amp;lt;/value&amp;gt;
&amp;lt;/Custom1&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XML is sometimes a bit allergic to empty nodes (some software would truncate it to a selfclosing tag, eg.g. &amp;lt;mynode /&amp;gt;), thats why empty nodes &lt;EM&gt;do&lt;/EM&gt; have some text in them. In the example above its "&amp;lt;####&amp;gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting here is the &amp;lt;DBKey&amp;gt;, which is the reference to the actual content used inside of Archicad. Also that's exactly what you can put in a GDL object. You would write&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;text2 0, 0, "&amp;lt;autotext-SITE-63A43EA8-A776-455F-9DB1-746EE27D085D&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to manually create new items:&lt;/P&gt;&lt;P&gt;The preamble of "autotext" seems to be needed, as well as the category of the block of the project info, here "SITE", always allcaps.&lt;/P&gt;&lt;P&gt;The last part is just a plain GUID. You can totally make up one!&lt;/P&gt;&lt;P&gt;Either you copy it from a &lt;A href="https://www.famkruithof.net/uuid/uuidgen" target="_blank" rel="noopener"&gt;webservice&lt;/A&gt; out there, or you use the function inside your &lt;A href="https://marketplace.visualstudio.com/items?itemName=heaths.vscode-guid" target="_blank" rel="noopener"&gt;favorite editor&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 12:25:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324618#M4559</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-12-09T12:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Editing XML files</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324638#M4560</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/640"&gt;@runxel&lt;/a&gt;&amp;nbsp;Thanks the GUID worried me, now I understand them a lot better.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 16:14:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Editing-XML-files/m-p/324638#M4560</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2021-12-09T16:14:06Z</dc:date>
    </item>
  </channel>
</rss>

