<?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: Create file using OPEN command in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Create-file-using-OPEN-command/m-p/125719#M12983</link>
    <description>Thanks. That works as long as I specify a folder path for the file, but I'm not so familiar with how that works on a Mac. (I can only get it to save to /Users/&lt;BR /&gt;
&lt;BR /&gt;
Ideally, I'd like to save into the same folder as the file (though that won't be easy with Teamwork files). Does anyone have a code that will prompt to choose a folder to save in? Using the DIALOG switch doesn't seem to pop up a prompt as I would expect it to.</description>
    <pubDate>Tue, 21 Jan 2014 10:42:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-21T10:42:12Z</dc:date>
    <item>
      <title>Create file using OPEN command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Create-file-using-OPEN-command/m-p/125717#M12981</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm trying to write a code to create a BTL file for output to a CNC machine. I can't get my head around the OPEN command when it comes to creating a new file. (Have used it successfully to read from an existing TXT file).  &lt;BR /&gt;
&lt;BR /&gt;
Does anyone have code to demonstrate how to create a new text file and choose its path?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jan 2014 08:45:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Create-file-using-OPEN-command/m-p/125717#M12981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T08:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create file using OPEN command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Create-file-using-OPEN-command/m-p/125718#M12982</link>
      <description>The below code will open a file and output text to it. To output to the beginning of the file change recordID and fieldID to 1. The text to output can be string parameters or actual text strings.&lt;BR /&gt;

&lt;PRE&gt;filepath = "C:\Temp\Temp.btl"

fileID = open("TEXT", filepath, "separator = '\t', mode = wo, fullpath")

output fileID, recordID, fieldID, "text to output 1", "text to output 2" etc...

close fileID&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jan 2014 04:39:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Create-file-using-OPEN-command/m-p/125718#M12982</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2014-01-21T04:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create file using OPEN command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Create-file-using-OPEN-command/m-p/125719#M12983</link>
      <description>Thanks. That works as long as I specify a folder path for the file, but I'm not so familiar with how that works on a Mac. (I can only get it to save to /Users/&lt;BR /&gt;
&lt;BR /&gt;
Ideally, I'd like to save into the same folder as the file (though that won't be easy with Teamwork files). Does anyone have a code that will prompt to choose a folder to save in? Using the DIALOG switch doesn't seem to pop up a prompt as I would expect it to.</description>
      <pubDate>Tue, 21 Jan 2014 10:42:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Create-file-using-OPEN-command/m-p/125719#M12983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-21T10:42:12Z</dc:date>
    </item>
  </channel>
</rss>

