<?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: Exporting multi-sheet IDW to dxf (ilogic) in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7796454#M92796</link>
    <description>&lt;P&gt;Nice, file naming is working, but not converting to dxf. I got just files with 0 bites and not dxf (attached). Have you any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2018 20:21:40 GMT</pubDate>
    <dc:creator>Darius_CAD</dc:creator>
    <dc:date>2018-02-21T20:21:40Z</dc:date>
    <item>
      <title>Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7769335#M92783</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already explored some of the posts regarding this subject.&amp;nbsp; But didn't find a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem: &amp;nbsp; When I run rule (exporting multi-sheet IDW to DXF), DXF files have &lt;SPAN&gt;&lt;SPAN&gt;unnecessary&lt;/SPAN&gt;&lt;/SPAN&gt; first symbol&amp;nbsp;&lt;FONT color="#FF0000"&gt;"_"&lt;/FONT&gt; (please look at "1" .jpg).&lt;/P&gt;&lt;P&gt;I need: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That rule will check: if file name has this symbol &lt;FONT color="#FF0000"&gt;"_" &lt;FONT color="#000000"&gt;- delete (or skip this symbol), if file name not have it (when idw has one sheet), just leave file name.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;My rule (exporting IDW to DXF):&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;' Get the DXF translator Add-In.  
Dim DXFAddIn As TranslatorAddIn  
DXFAddIn = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC4-122E-11D5-8E91-0010B541CD80}")  
'Set a reference to the active document (the document to be published).  
Dim oDocument As Document  
oDocument = ThisApplication.ActiveDocument  
Dim oContext As TranslationContext  
oContext = ThisApplication.TransientObjects.CreateTranslationContext  
oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism  
' Create a NameValueMap object  
Dim oOptions As NameValueMap  
oOptions = ThisApplication.TransientObjects.CreateNameValueMap  
' Create a DataMedium object  
Dim oDataMedium As DataMedium  
oDataMedium = ThisApplication.TransientObjects.CreateDataMedium  
' Check whether the translator has 'SaveCopyAs' options  
If DXFAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then  
Dim strIniFile As String  
strIniFile = "C:\CAD_2007.ini"  
' Create the name-value that specifies the ini file to use.  
oOptions.Value("Export_Acad_IniFile") = strIniFile  
End If  
'Set the destination file name 
oPath = ThisDoc.Path
oFileName = ThisDoc.FileName(False) 'without extension

'----
'get DXF target folder path
oFolder = oPath &amp;amp; "\1.2_DXF"

'Check for the DXF folder and create it if it does not exist
If Not System.IO.Directory.Exists(oFolder) Then
    System.IO.Directory.CreateDirectory(oFolder)
End If

 'Set the PDF target file name
oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; "" &amp;amp;".dxf"

'long name
'oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp;".dxf"

'-----
'oDataMedium.FileName = ThisDoc.PathAndFileName(False) &amp;amp; ".dxf" 'same folder, or uncomment:
'oDataMedium.FileName = "C:\myDXFfolder\" &amp;amp; ThisDoc.FileName(False) &amp;amp; ".dxf" 'fixed folder
'Publish document.
DXFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would help out alot.... thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 21:07:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7769335#M92783</guid>
      <dc:creator>Darius_CAD</dc:creator>
      <dc:date>2018-02-11T21:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7769798#M92784</link>
      <description>Add this to remove the _&lt;BR /&gt;&lt;BR /&gt;'get DXF target folder path&lt;BR /&gt;oFolder = oPath &amp;amp; "\1.2_DXF"&lt;BR /&gt;Try&lt;BR /&gt;oFolder= oFolder.replace("_","")&lt;BR /&gt;Catch&lt;BR /&gt;end try&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Feb 2018 06:36:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7769798#M92784</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-12T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7769824#M92785</link>
      <description>Or better.&lt;BR /&gt;&lt;BR /&gt;long name '&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;oFilename.replace("_","")&lt;BR /&gt;Catch&lt;BR /&gt;&lt;BR /&gt;End try&lt;BR /&gt;oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp;".dxf"</description>
      <pubDate>Mon, 12 Feb 2018 06:51:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7769824#M92785</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-12T06:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770029#M92786</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;But it didn't help, but something wrong with my knowledge:)&lt;/P&gt;&lt;P&gt;Please look at again.&lt;/P&gt;&lt;PRE&gt;' Get the DXF translator Add-In.  
Dim DXFAddIn As TranslatorAddIn  
DXFAddIn = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC4-122E-11D5-8E91-0010B541CD80}")  
'Set a reference to the active document (the document to be published).  
Dim oDocument As Document  
oDocument = ThisApplication.ActiveDocument  
Dim oContext As TranslationContext  
oContext = ThisApplication.TransientObjects.CreateTranslationContext  
oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism  
' Create a NameValueMap object  
Dim oOptions As NameValueMap  
oOptions = ThisApplication.TransientObjects.CreateNameValueMap  
' Create a DataMedium object  
Dim oDataMedium As DataMedium  
oDataMedium = ThisApplication.TransientObjects.CreateDataMedium  
' Check whether the translator has 'SaveCopyAs' options  
If DXFAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then  
Dim strIniFile As String  
strIniFile = "C:\CAD_2007.ini"  
' Create the name-value that specifies the ini file to use.  
oOptions.Value("Export_Acad_IniFile") = strIniFile  
End If  
'Set the destination file name 
oPath = ThisDoc.Path
oFileName = ThisDoc.FileName(False) 'without extension

'----
'get DXF target folder path
oFolder = oPath &amp;amp; "\1.2_DXF"

'Check for the DXF folder and create it if it does not exist
If Not System.IO.Directory.Exists(oFolder) Then
    System.IO.Directory.CreateDirectory(oFolder)
End If

 'Set the PDF target file name


Try
oFilename.Replace("_","")
Catch

End Try
oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; "" &amp;amp;".dxf"  ' Instead of "oFileName" I use this symbol "", because oFileName is IDW file name but I need just sheet name (2.jpg)


'-----
DXFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Feb 2018 08:32:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770029#M92786</guid>
      <dc:creator>Darius_CAD</dc:creator>
      <dc:date>2018-02-12T08:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770058#M92787</link>
      <description>You need to define a fix filename!!</description>
      <pubDate>Mon, 12 Feb 2018 08:44:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770058#M92787</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-12T08:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770090#M92788</link>
      <description>&lt;P&gt;Sorry, I don't understand. "You need to define a fix filename!!"&amp;nbsp; (I am knew in ilogic:(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I not need IDW file name, I just need IDW sheets names, but Inventor, when you saving multi-sheet IDW to dxf, add symbol "_".&lt;/P&gt;&lt;P&gt;Imposible save its without "_"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 08:57:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770090#M92788</guid>
      <dc:creator>Darius_CAD</dc:creator>
      <dc:date>2018-02-12T08:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770114#M92789</link>
      <description>Where is your filename used. I cannot see that in your code.</description>
      <pubDate>Mon, 12 Feb 2018 09:07:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770114#M92789</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-12T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770148#M92790</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;.......&lt;BR /&gt;End Try
oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; &lt;FONT color="#FF0000"&gt;""&lt;/FONT&gt; &amp;amp;".dxf"  ' Instead of &lt;FONT color="#FF0000"&gt;"oFileName"&lt;/FONT&gt; I 
use this symbol &lt;FONT color="#FF0000"&gt;""&lt;/FONT&gt;, 
because oFileName is IDW file name but I need just sheet name (2.jpg)&lt;BR /&gt;......&lt;/PRE&gt;&lt;P&gt;I not need IDW file name, so I just skip it. So I get good result: --&amp;gt; sheet name without IDW file name --&amp;gt; "_Sheet1" and "_Sheet2" ;So, after it, I have delete "_" manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I save to dxf IDW (without ilogic rule), my result is:&amp;nbsp; &lt;FONT face="comic sans ms,sans-serif"&gt;FileName_Sheet1, FileName_Sheet2, ....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I save to dxf with my rule, my result is :&amp;nbsp; &lt;FONT face="comic sans ms,sans-serif"&gt;_Sheet1, _Sheet2, ....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe can use code, which delete FileName +1 symbol?&amp;nbsp; &lt;FONT face="comic sans ms,sans-serif"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;FileName_&lt;/FONT&gt;&lt;/STRONG&gt;Sheet1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT face="batang,apple gothic"&gt;(Red symbols delete) ---&amp;gt; So result is&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sheet1, Sheet2,.....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:25:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7770148#M92790</guid>
      <dc:creator>Darius_CAD</dc:creator>
      <dc:date>2018-02-12T09:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7771004#M92791</link>
      <description>&lt;P&gt;AFAIK, you have 2 options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Change your code to only export 1 sheet at a time so you have full control over the file name and so it doesn't append sheet name. This would mean you would also have to change your code to cycle through each page and export each page individually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Keep it the way it is, but use the FileSystemObject or System.IO functions to modify the filename AFTER it has been saved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 14:40:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7771004#M92791</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-12T14:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7794500#M92792</link>
      <description>&lt;P&gt;MechMachine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you for your advice, but it is uncomfortable, when you have ~50 multi-sheet for exporting to dxf.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 10:25:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7794500#M92792</guid>
      <dc:creator>Darius_CAD</dc:creator>
      <dc:date>2018-02-21T10:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7795173#M92793</link>
      <description>&lt;P&gt;No, it's not "uncomfortable"!?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's all handled in the programming. So change your code to suit 1 of those 2 options, and you'll be on your merry way with working code.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:30:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7795173#M92793</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-21T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7795260#M92794</link>
      <description>&lt;P&gt;Sorry for my English, I will try, but my programming knowledge is basic:) I will try thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:52:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7795260#M92794</guid>
      <dc:creator>Darius_CAD</dc:creator>
      <dc:date>2018-02-21T14:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7795483#M92795</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2862790"&gt;@Darius_CAD&lt;/a&gt;&amp;nbsp;try the code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BUT FIRST, either export a new file with all sheets unchecked, or go to the ini and change the line "All Sheets = Yes" to "All Sheets = No".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDocument As DrawingDocument  
oDocument = ThisApplication.ActiveDocument  &lt;BR /&gt;&lt;BR /&gt;oPath = ThisDoc.Path&lt;BR /&gt;oFileName = ThisDoc.FileName(False) 'without extension&lt;BR /&gt;oFolder = oPath &amp;amp; "\" &amp;amp; oFileName&lt;BR /&gt;&lt;BR /&gt;'Check for the DXF folder and create it if it does not exist&lt;BR /&gt;If Not System.IO.Directory.Exists(oFolder) Then&lt;BR /&gt;    System.IO.Directory.CreateDirectory(oFolder)&lt;BR /&gt;End If

Dim DXFAddIn As TranslatorAddIn  
DXFAddIn = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC4-122E-11D5-8E91-0010B541CD80}")  
  
Dim oContext As TranslationContext  
oContext = ThisApplication.TransientObjects.CreateTranslationContext  
oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism  

Dim oOptions As NameValueMap  
oOptions = ThisApplication.TransientObjects.CreateNameValueMap  
&lt;BR /&gt;'The below line might give issues depending on inventor version. Check forums if you are encountering issues.
If DXFAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then  
    Dim strIniFile As String  
    strIniFile = "C:\CAD_2007.ini"  
    oOptions.Value("Export_Acad_IniFile") = strIniFile  
End If  

Dim oDataMedium As DataMedium  
oDataMedium = ThisApplication.TransientObjects.CreateDataMedium  

Dim oSheetName As String

For Each oSheet In oDocument.Sheets
    oSheetName = oSheet.Name
    oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oSheetName &amp;amp; ".dxf"
    DXFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
Next&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Feb 2018 15:44:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7795483#M92795</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-21T15:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7796454#M92796</link>
      <description>&lt;P&gt;Nice, file naming is working, but not converting to dxf. I got just files with 0 bites and not dxf (attached). Have you any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 20:21:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7796454#M92796</guid>
      <dc:creator>Darius_CAD</dc:creator>
      <dc:date>2018-02-21T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7796644#M92797</link>
      <description>&lt;P&gt;2 things to try:&lt;/P&gt;
&lt;P&gt;- If you just went into the ini file, try exporting a fresh one and using the code to change that.&lt;/P&gt;
&lt;P&gt;- If that doesn't fix it, either add a message box to test that it is working, or just comment out the "HasSaveCopyAsOptions" line and try it again.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 21:42:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7796644#M92797</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-21T21:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7798942#M92798</link>
      <description>&lt;P&gt;hm.. not working for me.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 10:10:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7798942#M92798</guid>
      <dc:creator>Darius_CAD</dc:creator>
      <dc:date>2018-02-22T10:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7799716#M92799</link>
      <description>&lt;P&gt;Neither of those fixes did anything for you?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:27:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7799716#M92799</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-22T14:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7799749#M92800</link>
      <description>&lt;P&gt;Ok... A couple tweaks were required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. It was not spitting out the proper sheet name&amp;nbsp;and was not getting rid of the ":1" portion of the sheet name.&lt;/P&gt;
&lt;P&gt;2. It was not activating each sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below has those issues fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: Identical sheet names will just overwrite each other, so each sheet name must be unique.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDocument As DrawingDocument  
oDocument = ThisApplication.ActiveDocument  

oPath = ThisDoc.Path
oFileName = ThisDoc.FileName(False) 'without extension
oFolder = oPath &amp;amp; "\" &amp;amp; oFileName

'Check for the DXF folder and create it if it does not exist
If Not System.IO.Directory.Exists(oFolder) Then
    System.IO.Directory.CreateDirectory(oFolder)
End If

Dim DXFAddIn As TranslatorAddIn  
DXFAddIn = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC4-122E-11D5-8E91-0010B541CD80}")  
  
Dim oContext As TranslationContext  
oContext = ThisApplication.TransientObjects.CreateTranslationContext  
oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism  

Dim oOptions As NameValueMap  
oOptions = ThisApplication.TransientObjects.CreateNameValueMap  

'The below line might give issues depending on inventor version. Check forums if you are encountering issues.
If DXFAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then
    Dim strIniFile As String  
    strIniFile = "C:\CAD_2007.ini"  
    oOptions.Value("Export_Acad_IniFile") = strIniFile  
End If  

Dim oDataMedium As DataMedium  
oDataMedium = ThisApplication.TransientObjects.CreateDataMedium  

Dim oSheetName As String

For Each oSheet In oDocument.Sheets
	oSheet.Activate
    oSheetName = oSheet.Name.Split(":")(0)
    oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oSheetName &amp;amp; ".dxf"
	MsgBox(oDataMedium.FileName)
    DXFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
Next&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:36:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7799749#M92800</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-22T14:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7799771#M92801</link>
      <description>&lt;P&gt;Amaizing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best luck for you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:40:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/7799771#M92801</guid>
      <dc:creator>Darius_CAD</dc:creator>
      <dc:date>2018-02-22T14:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multi-sheet IDW to dxf (ilogic)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/10329348#M92802</link>
      <description>&lt;P&gt;If I case have more 3 sheets, He prints 3 times? I observed the drawing staying misconfiguration!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 13:30:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/exporting-multi-sheet-idw-to-dxf-ilogic/m-p/10329348#M92802</guid>
      <dc:creator>aronmatheus</dc:creator>
      <dc:date>2021-05-21T13:30:17Z</dc:date>
    </item>
  </channel>
</rss>

