<?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 Current files to XML in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Current-files-to-XML/m-p/138900#M5895</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to write a plug-in that help to produce a XML file(s) of current objects to suit another tool of us. Therefore, some questions:&lt;BR /&gt;1. How can we add a type in the Save as... function (just like .aaa file). Is the API support?&lt;BR /&gt;2. How can we get all the objects info of the current files so I can use my function to convert them to my XML format? How can we do this with API.&lt;BR /&gt;I'm a little new here, so if anything wrong, pls suggest. Thanks so much.&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Aug 2023 14:30:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-01T14:30:48Z</dc:date>
    <item>
      <title>Current files to XML</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Current-files-to-XML/m-p/138900#M5895</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to write a plug-in that help to produce a XML file(s) of current objects to suit another tool of us. Therefore, some questions:&lt;BR /&gt;1. How can we add a type in the Save as... function (just like .aaa file). Is the API support?&lt;BR /&gt;2. How can we get all the objects info of the current files so I can use my function to convert them to my XML format? How can we do this with API.&lt;BR /&gt;I'm a little new here, so if anything wrong, pls suggest. Thanks so much.&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:30:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Current-files-to-XML/m-p/138900#M5895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-01T14:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Current files to XML</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Current-files-to-XML/m-p/138901#M5896</link>
      <description>Hi, &lt;BR /&gt;
 
&lt;BLOCKQUOTE&gt;hoangvnn wrote:&lt;BR /&gt;1. How can we add a type in the Save as... function (just like .aaa file). Is the API support?&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Sure, you should check the ACAPI_Register_FileType function in the documentation. 
&lt;PRE&gt;/** 
* Interface definitions. 
* 
* @return ArchiCAD error code. 
*/ 
GSErrCode	__ACENV_CALL	RegisterInterface (void) 
{ 
	GSErrCode err = NoError; 
 
	err = ACAPI_Register_FileType (1, 'TEXT', 'GSAC', "aaa", 0, ID_ResourceStrTable, IDS_ResourceFileTypeText, SaveAs2DSupported + SaveAs3DSupported); 
 
	return err; 
}		// RegisterInterface ()&lt;/PRE&gt; &lt;BR /&gt;
 
&lt;BLOCKQUOTE&gt;2. How can we get all the objects info of the current files so I can use my function to convert them to my XML format? How can we do this with API. &lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
What kind of infos do you want to export to your XML file? &lt;BR /&gt;
Please check the Plan_Dump and the 3D_Test example Add-Ons. &lt;BR /&gt;
Plan_Dump exports informations about elements in the current plan. 3D_Test exports the 3D model to a file. I think you should make something similar to on of those examples. &lt;BR /&gt;
 &lt;BR /&gt;
Regards, &lt;BR /&gt;
Tibor</description>
      <pubDate>Mon, 24 Feb 2014 09:00:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Current-files-to-XML/m-p/138901#M5896</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2014-02-24T09:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Current files to XML</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Current-files-to-XML/m-p/138902#M5897</link>
      <description>Thanks so much for helping Tibor, I'll try now as your suggestion  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 24 Feb 2014 23:17:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Current-files-to-XML/m-p/138902#M5897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-24T23:17:25Z</dc:date>
    </item>
  </channel>
</rss>

