<?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: Saving to textfile problem in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174397#M6175</link>
    <description>&lt;BLOCKQUOTE&gt;Paodekcal wrote:&lt;BR /&gt;I can find. But I don't know how to use.&lt;BR /&gt;
Do you have any example code?&lt;BR /&gt;
I don't know what meaning of the parameter to use.&lt;/BLOCKQUOTE&gt;
In the past, there was example code for this with the API. It's missing in more recent releases, but please find the original code below:&lt;PRE&gt;	DGTypePopupItem	popup[1] = {
		{"Text File",			"txt",		'TEXT'}
	};


	CIO::Location	loc;
	long			typeID;
	CIO::Location	defLoc("Text1.txt");
	if (!DGGetSaveFile (&amp;amp;loc, &amp;amp;typeID, 1, popup, &amp;amp;defLoc, "DGTest: Save File",
		DG_OF_DONT_DISPLAY_EXTENSIONS | DG_OF_NO_ROOT_GROUP))
	{
		return (false);
	}&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Feb 2011 11:59:36 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2011-02-15T11:59:36Z</dc:date>
    <item>
      <title>Saving to textfile problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174394#M6172</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Text file saving problem&lt;BR /&gt;&lt;BR /&gt;Only 2 question&lt;BR /&gt;1. Why I have to type ./Text1.txt.txt To Get The file dialog work &lt;BR /&gt;2. How can I filter only text file using DG::FileDialog&lt;BR /&gt;
&lt;PRE&gt;	DG::FileDialog dlg (DG::FileDialog::Save);
	dlg.SetTitle ("Save File");
    dlg.SetOKButtonText ("Save");
    dlg.SetCancelButtonText ("Cancel");
	dlg.SelectFile (IO::Location ("./Text1.txt.txt"));
	dlg.Invoke();
	int count = dlg.GetSelectionCount ();
&lt;/PRE&gt;
Is this a bug &lt;BR /&gt;&lt;BR /&gt;I'm using API Devkit 14.2550&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:22:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174394#M6172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T08:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Saving to textfile problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174395#M6173</link>
      <description>&lt;BLOCKQUOTE&gt;Paodekcal wrote:&lt;BR /&gt;Text file saving problem Only 2 question&lt;BR /&gt;
1. Why I have to type ./Text1.txt.txt To Get The file dialog work &lt;BR /&gt;
2. How can I filter only text file using DG::FileDialog&lt;/BLOCKQUOTE&gt;
You could try using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DGGetSaveFile&lt;E&gt;&lt;/E&gt; instead.</description>
      <pubDate>Mon, 14 Feb 2011 22:25:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174395#M6173</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-02-14T22:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Saving to textfile problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174396#M6174</link>
      <description>Thanks , and I find this board&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?p=116737&amp;amp;highlight=dggetsavefile#116737" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... ile#116737"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?p=116737&amp;amp;highlight=dggetsavefile#116737&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I can find. But I don't know how to use.&lt;BR /&gt;
&lt;BR /&gt;
Do you have any example code?&lt;BR /&gt;
&lt;BR /&gt;
I don't know what meaning of the parameter to use.</description>
      <pubDate>Tue, 15 Feb 2011 02:40:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174396#M6174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-15T02:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Saving to textfile problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174397#M6175</link>
      <description>&lt;BLOCKQUOTE&gt;Paodekcal wrote:&lt;BR /&gt;I can find. But I don't know how to use.&lt;BR /&gt;
Do you have any example code?&lt;BR /&gt;
I don't know what meaning of the parameter to use.&lt;/BLOCKQUOTE&gt;
In the past, there was example code for this with the API. It's missing in more recent releases, but please find the original code below:&lt;PRE&gt;	DGTypePopupItem	popup[1] = {
		{"Text File",			"txt",		'TEXT'}
	};


	CIO::Location	loc;
	long			typeID;
	CIO::Location	defLoc("Text1.txt");
	if (!DGGetSaveFile (&amp;amp;loc, &amp;amp;typeID, 1, popup, &amp;amp;defLoc, "DGTest: Save File",
		DG_OF_DONT_DISPLAY_EXTENSIONS | DG_OF_NO_ROOT_GROUP))
	{
		return (false);
	}&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Feb 2011 11:59:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174397#M6175</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-02-15T11:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Saving to textfile problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174398#M6176</link>
      <description>I have tested your code. It can solve problem.&lt;BR /&gt;
Thank you very much.</description>
      <pubDate>Wed, 16 Feb 2011 02:31:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Saving-to-textfile-problem/m-p/174398#M6176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-16T02:31:55Z</dc:date>
    </item>
  </channel>
</rss>

