<?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: reduce size DXF ilogic inventor in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930389#M178390</link>
    <description>&lt;P&gt;I believe there is still something wrong with your code, the following lines seem to be "ignored"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' ============================================================
'              OPZIONI DI ESPORTAZIONE "LIGHT"
' ============================================================

' Versione CAD più leggera
oOptions.Value("Export_AcadVersion") = "R12/LT2"

' NIENTE bending lines
oOptions.Value("Export_IncludeBends") = False

' Converti spline in polilinee (riduzione enorme peso!)
oOptions.Value("Export_Spline_Approx") = True
oOptions.Value("Export_FlatPattern_SplinesAsPolylines") = True
oOptions.Value("Export_PolylineMaxPoints") = 25       ' riduzione punti
oOptions.Value("Export_Tolerance") = 0.2              ' maggiore = meno peso

' Solo contorno esterno
oOptions.Value("Export_OuterProfile") = True

' Disattiva layer non necessari
oOptions.Value("Export_IncludeHiddenLayers") = False
oOptions.Value("Export_IncludeAnnotations") = False
oOptions.Value("Export_IncludeCenters") = False
oOptions.Value("Export_IncludeHiddenLines") = False
oOptions.Value("Export_IncludeHatch") = False&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;i'm not too familiar with the NameValueMaps for the DXF export as i usually just use an INI file "syntax" like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;        &lt;SPAN&gt;' You can prepare a configutation .ini file from UI.&lt;/SPAN&gt;
        Dim strIniFile As String
        strIniFile = "C:\temp\DXFOut.ini"

        &lt;SPAN&gt;' Create the name-value that specifies the ini file to use.&lt;/SPAN&gt;
        oOptions.Value("Export_Acad_IniFile") = strIniFile&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;maybe you can create/use something similar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as to why i think the mentioned lines are "ignored"? the output DXF i got is of version 2004, instead of the expected R12&lt;/P&gt;&lt;P&gt;i checked this by just opening the DXF in notepad and seeing the version at AC1018, instead of AC1009.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jnowel_1-1764775713866.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1601528i2A488ABD3822B0B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jnowel_1-1764775713866.png" alt="jnowel_1-1764775713866.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AC1009&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG Release 11/12 (LT R1/R2)&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1012&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG Release 13 (LT95)&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1014&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG Release 14, 14.01 (LT97/LT98)&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1015&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG AutoCAD 2000/2000i/2002&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1018&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG AutoCAD 2004/2005/2006&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1021&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG AutoCAD 2007/2008/2009&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for filesize comparison between R12 and 2004, same part flatpattern exported:&lt;/P&gt;&lt;P&gt;(i exported using a different rule from: &lt;A href="https://forums.autodesk.com/t5/inventor-programming-forum/remove-bendlines-in-plat-pattern-export-ilogic/m-p/13927802/highlight/true#M178364" target="_blank" rel="noopener"&gt;Re: Remove bendlines in plat pattern export ilogic - Autodesk Community&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jnowel_2-1764775881884.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1601529i4BE32077BF18F4BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jnowel_2-1764775881884.png" alt="jnowel_2-1764775881884.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 15:36:28 GMT</pubDate>
    <dc:creator>jnowel</dc:creator>
    <dc:date>2025-12-03T15:36:28Z</dc:date>
    <item>
      <title>reduce size DXF ilogic inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930249#M178384</link>
      <description>&lt;P&gt;I wrote some ilogic code to export a DXF from an .ipt file. How can I reduce the size of the DXF? Each time, it's about 11,000 KB, but the laser that cuts the DXF supports a maximum of 1,000 KB. The code is below.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;' ===========================================&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;DXFFolder&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"C:\Desktop\ETICHETTE e LOGHI\DXF"&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;DXFName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;Matricola&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".dxf"&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Directory&lt;/SPAN&gt;.&lt;SPAN&gt;Exists&lt;/SPAN&gt;(&lt;SPAN&gt;DXFFolder&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Directory&lt;/SPAN&gt;.&lt;SPAN&gt;CreateDirectory&lt;/SPAN&gt;(&lt;SPAN&gt;DXFFolder&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;DXFAddIn&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TranslatorAddIn&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ApplicationAddIns&lt;/SPAN&gt;.&lt;SPAN&gt;ItemById&lt;/SPAN&gt;(&lt;SPAN&gt;"{C24E3AC4-122E-11D5-8E91-0010B541CD80}"&lt;/SPAN&gt;)
&lt;SPAN&gt;DXFAddIn&lt;/SPAN&gt;.&lt;SPAN&gt;Activate&lt;/SPAN&gt;()

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDataMedium&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DataMedium&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateDataMedium&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oContext&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TranslationContext&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateTranslationContext&lt;/SPAN&gt;
&lt;SPAN&gt;oContext&lt;/SPAN&gt;.&lt;SPAN&gt;Type&lt;/SPAN&gt; = &lt;SPAN&gt;IOMechanismEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFileBrowseIOMechanism&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOptions&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;NameValueMap&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateNameValueMap&lt;/SPAN&gt;

&lt;SPAN&gt;' ============================================================&lt;/SPAN&gt;
&lt;SPAN&gt;'              OPZIONI DI ESPORTAZIONE "LIGHT"&lt;/SPAN&gt;
&lt;SPAN&gt;' ============================================================&lt;/SPAN&gt;

&lt;SPAN&gt;' Versione CAD più leggera&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_AcadVersion"&lt;/SPAN&gt;) = &lt;SPAN&gt;"R12/LT2"&lt;/SPAN&gt;

&lt;SPAN&gt;' NIENTE bending lines&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_IncludeBends"&lt;/SPAN&gt;) = &lt;SPAN&gt;False&lt;/SPAN&gt;

&lt;SPAN&gt;' Converti spline in polilinee (riduzione enorme peso!)&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_Spline_Approx"&lt;/SPAN&gt;) = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_FlatPattern_SplinesAsPolylines"&lt;/SPAN&gt;) = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_PolylineMaxPoints"&lt;/SPAN&gt;) = 25       &lt;SPAN&gt;' riduzione punti&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_Tolerance"&lt;/SPAN&gt;) = 0.2              &lt;SPAN&gt;' maggiore = meno peso&lt;/SPAN&gt;

&lt;SPAN&gt;' Solo contorno esterno&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_OuterProfile"&lt;/SPAN&gt;) = &lt;SPAN&gt;True&lt;/SPAN&gt;

&lt;SPAN&gt;' Disattiva layer non necessari&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_IncludeHiddenLayers"&lt;/SPAN&gt;) = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_IncludeAnnotations"&lt;/SPAN&gt;) = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_IncludeCenters"&lt;/SPAN&gt;) = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_IncludeHiddenLines"&lt;/SPAN&gt;) = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Export_IncludeHatch"&lt;/SPAN&gt;) = &lt;SPAN&gt;False&lt;/SPAN&gt;

&lt;SPAN&gt;oDataMedium&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt; = &lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;Combine&lt;/SPAN&gt;(&lt;SPAN&gt;DXFFolder&lt;/SPAN&gt;, &lt;SPAN&gt;DXFName&lt;/SPAN&gt;)

&lt;SPAN&gt;' ============================================================&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;drawTemplate&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"M:\Progettazione\ETICHETTE e LOGHI\ET.METAL INVENTOR\ET.METAL.idw"&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;

    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;compDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

    &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;TypeOf&lt;/SPAN&gt; &lt;SPAN&gt;compDef&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;SheetMetalComponentDefinition&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
        &lt;SPAN&gt;' ---- LAMIERA ----&lt;/SPAN&gt;
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheetDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SheetMetalComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;compDef&lt;/SPAN&gt;
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFlat&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;FlatPattern&lt;/SPAN&gt;

        &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;oSheetDef&lt;/SPAN&gt;.&lt;SPAN&gt;HasFlatPattern&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
            &lt;SPAN&gt;oSheetDef&lt;/SPAN&gt;.&lt;SPAN&gt;Unfold&lt;/SPAN&gt;()
        &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

        &lt;SPAN&gt;oFlat&lt;/SPAN&gt; = &lt;SPAN&gt;oSheetDef&lt;/SPAN&gt;.&lt;SPAN&gt;FlatPattern&lt;/SPAN&gt;

        &lt;SPAN&gt;DXFAddIn&lt;/SPAN&gt;.&lt;SPAN&gt;SaveCopyAs&lt;/SPAN&gt;(&lt;SPAN&gt;oFlat&lt;/SPAN&gt;, &lt;SPAN&gt;oContext&lt;/SPAN&gt;, &lt;SPAN&gt;oOptions&lt;/SPAN&gt;, &lt;SPAN&gt;oDataMedium&lt;/SPAN&gt;)
        &lt;SPAN&gt;oFlat&lt;/SPAN&gt;.&lt;SPAN&gt;ExitEdit&lt;/SPAN&gt;()

    &lt;SPAN&gt;Else&lt;/SPAN&gt;
        &lt;SPAN&gt;' ---- PART non lamiera ----&lt;/SPAN&gt;
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;drawingDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
        &lt;SPAN&gt;drawingDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingDocumentObject&lt;/SPAN&gt;, &lt;SPAN&gt;drawTemplate&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;)

        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN&gt;drawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1)
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTG&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;insertPoint&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN&gt;oTG&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(10, 10)

        &lt;SPAN&gt;' Solo linee visibili, niente hidden lines&lt;/SPAN&gt;
        &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;AddBaseView&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;, &lt;SPAN&gt;insertPoint&lt;/SPAN&gt;, 1, _
            &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFrontViewOrientation&lt;/SPAN&gt;, _
            &lt;SPAN&gt;DrawingViewStyleEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kHiddenLineRemovedDrawingViewStyle&lt;/SPAN&gt;, &lt;SPAN&gt;""&lt;/SPAN&gt;)

        &lt;SPAN&gt;DXFAddIn&lt;/SPAN&gt;.&lt;SPAN&gt;SaveCopyAs&lt;/SPAN&gt;(&lt;SPAN&gt;drawingDoc&lt;/SPAN&gt;, &lt;SPAN&gt;oContext&lt;/SPAN&gt;, &lt;SPAN&gt;oOptions&lt;/SPAN&gt;, &lt;SPAN&gt;oDataMedium&lt;/SPAN&gt;)

        &lt;SPAN&gt;drawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Close&lt;/SPAN&gt;(&lt;SPAN&gt;False&lt;/SPAN&gt;)
    &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;Else&lt;/SPAN&gt;
    &lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Funziona solo su file .ipt"&lt;/SPAN&gt;, &lt;SPAN&gt;vbExclamation&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;How can I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 14:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930249#M178384</guid>
      <dc:creator>mayla_difrancesco</dc:creator>
      <dc:date>2025-12-03T14:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: reduce size DXF ilogic inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930325#M178389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17353709"&gt;@mayla_difrancesco&lt;/a&gt;.&amp;nbsp; In your code example you are trying to directly specify all sorts of settings or options.&amp;nbsp; As far as I know that is not possible when using the TranslatorAddIn.SaveCopyAs method.&amp;nbsp; It only has one option, and that one option is for specifying the 'INI' file, which contains all the custom settings in it.&amp;nbsp; That is the configuration file that you can create while using the manual export process, and using the 'Options' button in the file dialog.&amp;nbsp; While in that settings dialog, you have the option to specify 2 different external files.&amp;nbsp; One is for an XML file, which contains instructions for customizing the Layers.&amp;nbsp; Then there is the INI file, which contains all other settings, and also includes an internal reference to that XML file also.&amp;nbsp; On the second tab of that dialog, if you use the Save Configuration button, it will create the INI file.&amp;nbsp; Pay attention to where you save that file, then specify the full path and file name of that file as the one option in your code.&amp;nbsp; See the VBA example at the following Link for what that one Option is named and how it is used.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=PublishFlatPatternToDXF_Sample" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=PublishFlatPatternToDXF_Sample&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure why the file size is so large, but I suspect it may be because all the 'arcs' are being converted to tons of super short, straight lines instead.&amp;nbsp; That behavior can be changed in the settings though.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 15:07:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930325#M178389</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-12-03T15:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: reduce size DXF ilogic inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930389#M178390</link>
      <description>&lt;P&gt;I believe there is still something wrong with your code, the following lines seem to be "ignored"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' ============================================================
'              OPZIONI DI ESPORTAZIONE "LIGHT"
' ============================================================

' Versione CAD più leggera
oOptions.Value("Export_AcadVersion") = "R12/LT2"

' NIENTE bending lines
oOptions.Value("Export_IncludeBends") = False

' Converti spline in polilinee (riduzione enorme peso!)
oOptions.Value("Export_Spline_Approx") = True
oOptions.Value("Export_FlatPattern_SplinesAsPolylines") = True
oOptions.Value("Export_PolylineMaxPoints") = 25       ' riduzione punti
oOptions.Value("Export_Tolerance") = 0.2              ' maggiore = meno peso

' Solo contorno esterno
oOptions.Value("Export_OuterProfile") = True

' Disattiva layer non necessari
oOptions.Value("Export_IncludeHiddenLayers") = False
oOptions.Value("Export_IncludeAnnotations") = False
oOptions.Value("Export_IncludeCenters") = False
oOptions.Value("Export_IncludeHiddenLines") = False
oOptions.Value("Export_IncludeHatch") = False&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;i'm not too familiar with the NameValueMaps for the DXF export as i usually just use an INI file "syntax" like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;        &lt;SPAN&gt;' You can prepare a configutation .ini file from UI.&lt;/SPAN&gt;
        Dim strIniFile As String
        strIniFile = "C:\temp\DXFOut.ini"

        &lt;SPAN&gt;' Create the name-value that specifies the ini file to use.&lt;/SPAN&gt;
        oOptions.Value("Export_Acad_IniFile") = strIniFile&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;maybe you can create/use something similar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as to why i think the mentioned lines are "ignored"? the output DXF i got is of version 2004, instead of the expected R12&lt;/P&gt;&lt;P&gt;i checked this by just opening the DXF in notepad and seeing the version at AC1018, instead of AC1009.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jnowel_1-1764775713866.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1601528i2A488ABD3822B0B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jnowel_1-1764775713866.png" alt="jnowel_1-1764775713866.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AC1009&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG Release 11/12 (LT R1/R2)&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1012&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG Release 13 (LT95)&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1014&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG Release 14, 14.01 (LT97/LT98)&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1015&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG AutoCAD 2000/2000i/2002&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1018&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG AutoCAD 2004/2005/2006&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AC1021&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;- DWG AutoCAD 2007/2008/2009&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for filesize comparison between R12 and 2004, same part flatpattern exported:&lt;/P&gt;&lt;P&gt;(i exported using a different rule from: &lt;A href="https://forums.autodesk.com/t5/inventor-programming-forum/remove-bendlines-in-plat-pattern-export-ilogic/m-p/13927802/highlight/true#M178364" target="_blank" rel="noopener"&gt;Re: Remove bendlines in plat pattern export ilogic - Autodesk Community&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jnowel_2-1764775881884.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1601529i4BE32077BF18F4BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jnowel_2-1764775881884.png" alt="jnowel_2-1764775881884.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 15:36:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930389#M178390</guid>
      <dc:creator>jnowel</dc:creator>
      <dc:date>2025-12-03T15:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: reduce size DXF ilogic inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930454#M178393</link>
      <description>&lt;P&gt;No, I can't do that. I can't use sub and set.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 16:09:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930454#M178393</guid>
      <dc:creator>mayla_difrancesco</dc:creator>
      <dc:date>2025-12-03T16:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: reduce size DXF ilogic inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930469#M178394</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17353709"&gt;@mayla_difrancesco&lt;/a&gt;.&amp;nbsp; I am not sure what you mean by your last reply.&amp;nbsp; I assume you are talking about trying to run the entire code from within that VBA sample at the Link I provided above within an iLogic rule.&amp;nbsp; That will not work, because it is slightly different programing syntax.&amp;nbsp; The older VBA coding system included keywords like 'Set' before setting the value of a variable that is not a simple String, Integer, Double, or similar type.&amp;nbsp; That keyword is not used in vb.net syntax which is used in iLogic rules.&amp;nbsp; Also, in iLogic rules, we are required to have a 'Sub Main' block of code first, then other blocks of code can be after the 'End Sub' line, if needed.&amp;nbsp; I did not mean for you to try to run that whole code example in your iLogic rule...I just meant for you to look at the few lines of code in it where it is specifying the full file name of the INI file somewhere on the local file storage area, then setting that as the value of the one specially named 'Option'.&amp;nbsp; The option needs to be named&amp;nbsp;"Export_Acad_IniFile", and the value of that option needs to be set to the String type value representing the full path and file name of the INI file that exists on your computer.&amp;nbsp; All those other 'options' in your code can be deleted, because they have no effect.&amp;nbsp; Like what&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5851906"&gt;@jnowel&lt;/a&gt;&amp;nbsp;mentioned.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 16:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/reduce-size-dxf-ilogic-inventor/m-p/13930469#M178394</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-12-03T16:23:38Z</dc:date>
    </item>
  </channel>
</rss>

