<?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: How to export model with self-defined button? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-export-model-with-self-defined-button/m-p/265237#M2349</link>
    <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;Yi wrote:&lt;BR /&gt;I'd like to develop a plugin to export model with self-defined UI. I notice in the example ModelAccess_Test, it uses ACAPI_Register_FileType and can export model through the Archicad "Save As" choice. But if I add my own button in the UI, anyone knows how to export through the button I defined? &lt;/BLOCKQUOTE&gt;
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;DG::FileDialog&lt;E&gt;&lt;/E&gt;. Take a look at the Markup_Test example project, specifically the method &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;MarkUpTest::ExportToBCF&lt;E&gt;&lt;/E&gt;
&lt;/BLOCKQUOTE&gt;

Hi, thank you for your reply. I checked the example of Markup_Test, and seems it deals with BCF file. Maybe I didn't explain well in my question, I want to export the model 3d info like polygons. I'm using ModelerAPI to get the 3d info, but how to export the polygons with a self-defined button instead of using "Save As"?</description>
    <pubDate>Mon, 27 Jul 2020 20:52:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-27T20:52:32Z</dc:date>
    <item>
      <title>How to export model with self-defined button?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-export-model-with-self-defined-button/m-p/265235#M2347</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'd like to develop a plugin to export model with self-defined UI. I notice in the example ModelAccess_Test, it uses ACAPI_Register_FileType and can export model through the Archicad "Save As" choice. But if I add my own button in the UI, anyone knows how to export through the button I defined? &lt;BR /&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 08:31:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-export-model-with-self-defined-button/m-p/265235#M2347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T08:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to export model with self-defined button?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-export-model-with-self-defined-button/m-p/265236#M2348</link>
      <description>&lt;BLOCKQUOTE&gt;Yi wrote:&lt;BR /&gt;I'd like to develop a plugin to export model with self-defined UI. I notice in the example ModelAccess_Test, it uses ACAPI_Register_FileType and can export model through the Archicad "Save As" choice. But if I add my own button in the UI, anyone knows how to export through the button I defined? &lt;/BLOCKQUOTE&gt;
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;DG::FileDialog&lt;E&gt;&lt;/E&gt;. Take a look at the Markup_Test example project, specifically the method &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;MarkUpTest::ExportToBCF&lt;E&gt;&lt;/E&gt;</description>
      <pubDate>Mon, 27 Jul 2020 16:46:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-export-model-with-self-defined-button/m-p/265236#M2348</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-07-27T16:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to export model with self-defined button?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-export-model-with-self-defined-button/m-p/265237#M2349</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;Yi wrote:&lt;BR /&gt;I'd like to develop a plugin to export model with self-defined UI. I notice in the example ModelAccess_Test, it uses ACAPI_Register_FileType and can export model through the Archicad "Save As" choice. But if I add my own button in the UI, anyone knows how to export through the button I defined? &lt;/BLOCKQUOTE&gt;
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;DG::FileDialog&lt;E&gt;&lt;/E&gt;. Take a look at the Markup_Test example project, specifically the method &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;MarkUpTest::ExportToBCF&lt;E&gt;&lt;/E&gt;
&lt;/BLOCKQUOTE&gt;

Hi, thank you for your reply. I checked the example of Markup_Test, and seems it deals with BCF file. Maybe I didn't explain well in my question, I want to export the model 3d info like polygons. I'm using ModelerAPI to get the 3d info, but how to export the polygons with a self-defined button instead of using "Save As"?</description>
      <pubDate>Mon, 27 Jul 2020 20:52:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-export-model-with-self-defined-button/m-p/265237#M2349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-27T20:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to export model with self-defined button?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-export-model-with-self-defined-button/m-p/265238#M2350</link>
      <description>&lt;BLOCKQUOTE&gt;Yi wrote:&lt;BR /&gt;Hi, thank you for your reply. I checked the example of Markup_Test, and seems it deals with BCF file. Maybe I didn't explain well in my question, I want to export the model 3d info like polygons. I'm using ModelerAPI to get the 3d info, but how to export the polygons with a self-defined button instead of using "Save As"?&lt;/BLOCKQUOTE&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;DG::FileDialog&lt;E&gt;&lt;/E&gt; will allow you to prompt the user to specify the name and location of the file your data should be exported to. Once you have that, you can write data in many ways, e.g. &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;IO::File::WriteBin&lt;E&gt;&lt;/E&gt;. How you write the data depends on the structure/content of the data - is it binary? XML? Is there a 3rd-party API for structuring content? No one can tell you how to write the data without know something about it.</description>
      <pubDate>Mon, 27 Jul 2020 21:15:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-export-model-with-self-defined-button/m-p/265238#M2350</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-07-27T21:15:52Z</dc:date>
    </item>
  </channel>
</rss>

