<?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: dxf flatpattern export with ini.file? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/3804432#M131975</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could regard "DATAIO" as a lite level of DXF exporting, compared with TranslatorAddin. DATAIO does not use *.ini file. The configuration params are provided as the argument of DATAIO.WriteDataToFile. e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub WriteSheetMetalDXF()

    ' Get the active document.  This assumes it is a part document.
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument

    ' Get the DataIO object.
    Dim oDataIO As DataIO
    Set oDataIO = oDoc.ComponentDefinition.DataIO

    ' Build the string that defines the format of the DXF file.
    Dim sOut As String
    sOut = "FLAT PATTERN DXF?AcadVersion=R12&amp;amp;OuterProfileLayer=Outer"

    ' Create the DXF file.
    oDataIO.WriteDataToFile sOut, "C:\temp\flat2.dxf"
End Sub
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you activate flatpattern and run TranslatorAddin.SaveCopyAs, you will get the DXF from&amp;nbsp;&lt;SPAN&gt;flatpattern.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2013 03:04:11 GMT</pubDate>
    <dc:creator>xiaodong_liang</dc:creator>
    <dc:date>2013-03-14T03:04:11Z</dc:date>
    <item>
      <title>dxf flatpattern export with ini.file?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/3796796#M131974</link>
      <description>&lt;P&gt;Hi.. Need some help on this, allthough it´s an oldiebutgoodie.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Digging throw tons of threads, blogs &amp;amp; help info, I´m still a bit confused, but believe I can boil my confusion down to these two basic questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do I NEED to use the DataIO to export the flatpattern to dxf, or is there some way I can pas a&amp;nbsp;Flatpattern to the&amp;nbsp;DXFAddIn.saveCopyAs()?&lt;/LI&gt;&lt;LI&gt;How do I pas the .ini file to the DataIO.WriteDataToFile(). &amp;nbsp;Do I need to write my own parser to get the Format correct?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope someone can clear this out for me!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 20:15:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/3796796#M131974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-05T20:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: dxf flatpattern export with ini.file?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/3804432#M131975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could regard "DATAIO" as a lite level of DXF exporting, compared with TranslatorAddin. DATAIO does not use *.ini file. The configuration params are provided as the argument of DATAIO.WriteDataToFile. e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub WriteSheetMetalDXF()

    ' Get the active document.  This assumes it is a part document.
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument

    ' Get the DataIO object.
    Dim oDataIO As DataIO
    Set oDataIO = oDoc.ComponentDefinition.DataIO

    ' Build the string that defines the format of the DXF file.
    Dim sOut As String
    sOut = "FLAT PATTERN DXF?AcadVersion=R12&amp;amp;OuterProfileLayer=Outer"

    ' Create the DXF file.
    oDataIO.WriteDataToFile sOut, "C:\temp\flat2.dxf"
End Sub
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you activate flatpattern and run TranslatorAddin.SaveCopyAs, you will get the DXF from&amp;nbsp;&lt;SPAN&gt;flatpattern.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 03:04:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/3804432#M131975</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-03-14T03:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: dxf flatpattern export with ini.file?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/3807199#M131976</link>
      <description>&lt;P&gt;Thanks for your feedback&amp;nbsp;Xiaodong..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´ll give the latter a go!&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2013 11:55:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/3807199#M131976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-17T11:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: dxf flatpattern export with ini.file?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/3946137#M131977</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Xiaodong..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Coming back to this issue on a practical level I´m afraid there is a bit more to the picture than meets the eye.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Activating flatpattern &amp;amp; using&amp;nbsp;&lt;SPAN&gt;SaveCopyAs() gives me a .dxf file allright, but the file is corrupted (not possible to open and the size is 19kb )??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Doing the same procedure manually generates a valid dxf file with a size of 215 kb&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am using the example from the help files to assign a path to the ini file, but checking the namedvaluemap of the dxf translator it contains no "Export_Acad_IniFile" key??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I see 4 members in the dxf translators namedvaluemap: Solid : true, Surface : true, Sketch : true, DwgVersion : 31.. ( Dwg ?? )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Exporting a flatpattern I would assume Solid &amp;amp; Surface should be set to false??&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is there an example with the correct assigning of the namedvaluemap that works for flatpattern &amp;amp; an ini file?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2013 12:00:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/3946137#M131977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-04T12:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: dxf flatpattern export with ini.file?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/6330979#M131978</link>
      <description>&lt;P&gt;Did you ever manage to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running against the same corrupt file issue&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 18:20:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dxf-flatpattern-export-with-ini-file/m-p/6330979#M131978</guid>
      <dc:creator>Cadkunde.nl</dc:creator>
      <dc:date>2016-05-17T18:20:21Z</dc:date>
    </item>
  </channel>
</rss>

