<?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: Inserting file types into DG::FileDialog::Save in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Inserting-file-types-into-DG-FileDialog-Save/m-p/245334#M3017</link>
    <description>Take a look at the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Communication Manager&lt;E&gt;&lt;/E&gt; example project with the dev-kit, specifically the function &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;GetOpenFile&lt;E&gt;&lt;/E&gt; in &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Communication_Manager.cpp&lt;E&gt;&lt;/E&gt;. It's adding a type to the 'open' dialog, but the same principle applies to saving.</description>
    <pubDate>Tue, 06 Aug 2019 12:17:51 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2019-08-06T12:17:51Z</dc:date>
    <item>
      <title>Inserting file types into DG::FileDialog::Save</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Inserting-file-types-into-DG-FileDialog-Save/m-p/245333#M3016</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to insert file types into the selector at the bottom of the save dialog, but as far as I can tell I need the ID number for each file type? Here's what I've got so far:&lt;BR /&gt;
&lt;PRE&gt;FTM::GeneralID png;
png.Load(5);
UIndex i = dialog.AddFilter(png);
dialog.SetFilterText(i, ".png");&lt;/PRE&gt;
&lt;BR /&gt;It seems if I want to add more I need to know the exact ID for each file type. Is there a list anywhere or am I approaching this in the completely wrong way?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:19:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Inserting-file-types-into-DG-FileDialog-Save/m-p/245333#M3016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-29T08:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting file types into DG::FileDialog::Save</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Inserting-file-types-into-DG-FileDialog-Save/m-p/245334#M3017</link>
      <description>Take a look at the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Communication Manager&lt;E&gt;&lt;/E&gt; example project with the dev-kit, specifically the function &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;GetOpenFile&lt;E&gt;&lt;/E&gt; in &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Communication_Manager.cpp&lt;E&gt;&lt;/E&gt;. It's adding a type to the 'open' dialog, but the same principle applies to saving.</description>
      <pubDate>Tue, 06 Aug 2019 12:17:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Inserting-file-types-into-DG-FileDialog-Save/m-p/245334#M3017</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2019-08-06T12:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting file types into DG::FileDialog::Save</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Inserting-file-types-into-DG-FileDialog-Save/m-p/245335#M3018</link>
      <description>That worked perfectly. Thanks for the help.</description>
      <pubDate>Thu, 08 Aug 2019 08:38:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Inserting-file-types-into-DG-FileDialog-Save/m-p/245335#M3018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T08:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting file types into DG::FileDialog::Save</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Inserting-file-types-into-DG-FileDialog-Save/m-p/245336#M3019</link>
      <description>&lt;BLOCKQUOTE&gt;rCushing wrote:&lt;BR /&gt;
That worked perfectly. Thanks for the help.
&lt;/BLOCKQUOTE&gt;

I tried changing the code in the example to work with Save dialog and it seems to work with the extension (plan) but it crashes when I click save..&lt;BR /&gt;
Could you post your code please?</description>
      <pubDate>Thu, 24 Oct 2019 11:33:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Inserting-file-types-into-DG-FileDialog-Save/m-p/245336#M3019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T11:33:52Z</dc:date>
    </item>
  </channel>
</rss>

