<?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: ilogic DWG Saving Only Active Sheet in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-dwg-saving-only-active-sheet/m-p/6333153#M329012</link>
    <description>&lt;P&gt;I have walked through the code lines below, and you need to privide the value for "strIniFile". Before you use the "strIniFile", please give the value for this parameter like "strIniFile = "C:\tempDWGOut.ini"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to generate the *.ini file? Please make the expected settings in the Export Destination dialog, and use Save Configuration button to generate this file. Please see the attached *.ini file as example. and you could see one line in the file as "ALL SHEETS=No".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it works fine for you!&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2016 14:03:10 GMT</pubDate>
    <dc:creator>Yijiang.Cai</dc:creator>
    <dc:date>2016-05-18T14:03:10Z</dc:date>
    <item>
      <title>ilogic DWG Saving Only Active Sheet</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-dwg-saving-only-active-sheet/m-p/6293859#M329011</link>
      <description>&lt;P&gt;I am running Inventor 2014.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created some ilogic rules to be able to save to a dwg &amp;amp; dxf file when needed. When I run the ilogic rule&amp;nbsp;to save as a dwg file it exports all the sheets to dwg &amp;amp; puts into a compressed zip file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wanting it to only save to dwg the active sheet not all the sheets and also i do not want it to be put into a ZIP file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also changed the settings manually when saving to dwg by&amp;nbsp;unchecking the box that selects all sheets as below.&lt;/P&gt;&lt;P&gt;&lt;IMG title="Capture.JPG" alt="Capture.JPG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/235131i3AE898B0142A5886/image-size/medium?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my ilogic:&lt;/P&gt;&lt;P&gt;'------start of iLogic-------&lt;BR /&gt;oPath = "\\Cadfileserver\Users\Desktop\dlouviere\Desktop\PDF"&lt;BR /&gt;oFileName = ThisDoc.FileName(False) 'without extension&lt;BR /&gt;oDescription = iProperties.Value("Project", "Description")&lt;BR /&gt;oRevision = iProperties.Value("Project", "Revision Number")&lt;/P&gt;&lt;P&gt;' Get the DXF translator Add-In.&lt;BR /&gt;oDXFAddIn = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC4-122E-11D5-8E91-0010B541CD80}")&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Set a reference to the active document (the document to be published).&amp;nbsp;&lt;BR /&gt;oDocument = ThisApplication.ActiveDocument&amp;nbsp;&lt;BR /&gt;Dim oContext As TranslationContext&lt;BR /&gt;oContext = ThisApplication.TransientObjects.CreateTranslationContext&amp;nbsp;&lt;BR /&gt;oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Create a NameValueMap object&amp;nbsp;&lt;BR /&gt;oOptions = ThisApplication.TransientObjects.CreateNameValueMap&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Create a DataMedium object&amp;nbsp;&lt;BR /&gt;oDataMedium = ThisApplication.TransientObjects.CreateDataMedium&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Create the name-value that specifies the ini file to use.&amp;nbsp;&lt;BR /&gt;oOptions.Value("Export_Acad_IniFile") = strIniFile&amp;nbsp;&lt;/P&gt;&lt;P&gt;'get PDF target folder path&lt;BR /&gt;oFolder = Left(oPath, InStrRev(oPath, "\")) &amp;amp; "PDF"&lt;/P&gt;&lt;P&gt;'Check for the PDF folder and create it if it does not exist&lt;BR /&gt;If Not System.IO.Directory.Exists(oFolder) Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.Directory.CreateDirectory(oFolder)&lt;BR /&gt;&amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;txt1 = oDescription&lt;BR /&gt;txt2 = Replace(txt1,"/","_")&lt;BR /&gt;txt3 = Replace(txt2,"""","''")&lt;BR /&gt;txt4 = Replace(txt3,":","_")&lt;BR /&gt;NewText = txt4&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Set the destination file name&lt;BR /&gt;oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp; "_r" &amp;amp; oRevision &amp;amp; " (" &amp;amp; NewText &amp;amp; ").dwg"&lt;BR /&gt;'oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp; " (" &amp;amp; NewText &amp;amp; ").dwg"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'Publish document.&amp;nbsp;&lt;BR /&gt;oDXFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)&amp;nbsp;&lt;/P&gt;&lt;P&gt;'------end of iLogic-------&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I am pretty sure&amp;nbsp;I am messing something to be able to do what&amp;nbsp;I want to do. If anyone can help me with this it would be greatly appericated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:57:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-dwg-saving-only-active-sheet/m-p/6293859#M329011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-26T16:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic DWG Saving Only Active Sheet</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-dwg-saving-only-active-sheet/m-p/6333153#M329012</link>
      <description>&lt;P&gt;I have walked through the code lines below, and you need to privide the value for "strIniFile". Before you use the "strIniFile", please give the value for this parameter like "strIniFile = "C:\tempDWGOut.ini"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to generate the *.ini file? Please make the expected settings in the Export Destination dialog, and use Save Configuration button to generate this file. Please see the attached *.ini file as example. and you could see one line in the file as "ALL SHEETS=No".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it works fine for you!&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 14:03:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-dwg-saving-only-active-sheet/m-p/6333153#M329012</guid>
      <dc:creator>Yijiang.Cai</dc:creator>
      <dc:date>2016-05-18T14:03:10Z</dc:date>
    </item>
  </channel>
</rss>

