<?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: turn off certain layers when exporting as dxf in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147585#M155983</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13933266"&gt;@mindaV3J2J&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you just need to update your sOut line to something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;sOut&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;sOut&lt;/SPAN&gt; = &lt;SPAN&gt;"FLAT PATTERN DXF?AcadVersion=2007"&lt;/SPAN&gt; &amp;amp; _
&lt;SPAN&gt;"&amp;amp;OuterProfileLayer=IV_INTERIOR_PROFILES"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;InvisibleLayers = IV_TANGENT;IV_ROLL_TANGENT"&lt;/SPAN&gt; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reference link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=WriteFlatPatternAsDXF_Sample" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=WriteFlatPatternAsDXF_Sample&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;related link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/export-into-quot-dxf-quot-the-flat-pattern-part-since-the/m-p/8629659#M95114" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/export-into-quot-dxf-quot-the-flat-pattern-part-since-the/m-p/8629659#M95114&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is an example of all options, just for reference:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;sOut&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;sOut&lt;/SPAN&gt;=&lt;SPAN&gt;"FLAT PATTERN DXF?AcadVersion=2007"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;TangentLayer=IV_TANGENT "&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;BendLayer=IV_BEND"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;BendDownLayer=IV_BEND_DOWN"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ToolCenterLayer=IV_TOOL_CENTER"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ToolCenterDownLayer=IV_TOOL_CENTER_DOWN"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ArcCentersLayer=IV_ARC_CENTERS"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;OuterProfileLayer=IV_OUTER_PROFILE"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;InteriorProfilesLayer=IV_INTERIOR_PROFILES"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;FeatureProfilesLayer=IV_FEATURE_PROFILES"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;FeatureProfilesDownLayer=IV_FEATURE_PROFILES_DOWN"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;AltRepFrontLayer=IV_ALTREP_FRONT"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;AltRepBackLayer=IV_ALTREP_BACK"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;UnconsumedSketchesLayer=IV_UNCONSUMED_SKETCHES"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;TangentRollLinesLayer=IV_ROLL_TANGENT"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;RollLinesLayer=IV_ROLL"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;InvisibleLayers=IV_TANGENT;IV_ROLL_TANGENT"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;TangentLayerColor=0;0;0 "&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;endLayerColor=255;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;BendDownLayerColor=0;255;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ToolCenterLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ToolCenterDownLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ArcCentersLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;OuterProfileLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;InteriorProfilesLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _ 
&lt;SPAN&gt;"&amp;amp;FeatureProfilesLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;FeatureProfilesDownLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;AltRepFrontLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;AltRepBackLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;UnconsumedSketchesLayerColor=-255;-255;-255"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;TangentRollLinesLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;RollLinesLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;MergeProfilesIntoPolyline=True"&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 19:15:53 GMT</pubDate>
    <dc:creator>Curtis_Waguespack</dc:creator>
    <dc:date>2023-08-03T19:15:53Z</dc:date>
    <item>
      <title>turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12143965#M155975</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to export as dxf from parts; however, my script includes the tangent lines when exported, which means there are 3 bend lines instead of one.&amp;nbsp;I want to turn off the IV_TANGENT and IV_ROLL_TANGENT layers.&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="mindaV3J2J_0-1690982176203.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1248296i80979C10BE0C96CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mindaV3J2J_0-1690982176203.png" alt="mindaV3J2J_0-1690982176203.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Sub ExportFlatPatternToDXF2()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim SETFilePath As String&lt;BR /&gt;SETFilePath = "path"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If ThisApplication.ActiveDocument.DocumentType &amp;lt;&amp;gt; kAssemblyDocumentObject Then&lt;BR /&gt;MsgBox "Please open an assembly document.", vbExclamation, "iLogic"&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oAsmDoc As AssemblyDocument&lt;BR /&gt;Set oAsmDoc = ThisApplication.ActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oRefDocs As DocumentsEnumerator&lt;BR /&gt;Set oRefDocs = oAsmDoc.AllReferencedDocuments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oRefDoc As Document&lt;BR /&gt;For Each oRefDoc In oRefDocs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If oRefDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then&lt;BR /&gt;Dim oSheetMetDoc As PartDocument&lt;BR /&gt;Set oSheetMetDoc = ThisApplication.Documents.Open(oRefDoc.FullFileName, True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oCompDef As SheetMetalComponentDefinition&lt;BR /&gt;Set oCompDef = oSheetMetDoc.ComponentDefinition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oDef As FlatPattern&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' If oCompDef.HasFlatPattern = False Then&lt;BR /&gt;' oCompDef.Unfold&lt;BR /&gt;' End If&lt;BR /&gt;Set oDef = oCompDef.FlatPattern&lt;BR /&gt;If oDef Is Nothing Then GoTo NextOcc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim sOut As String&lt;BR /&gt;sOut = "FLAT PATTERN DXF?AcadVersion=2018&amp;amp;OuterProfileLayer=IV_INTERIOR_PROFILES"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim sFname As String&lt;BR /&gt;sFname = SETFilePath &amp;amp; "\" &amp;amp; oSheetMetDoc.DisplayName &amp;amp; ".dxf"&lt;/P&gt;&lt;P&gt;Dim oDataIO As DataIO&lt;BR /&gt;Set oDataIO = oCompDef.DataIO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oDataIO.WriteDataToFile sOut, sFname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oCompDef.FlatPattern.ExitEdit&lt;BR /&gt;End If&lt;BR /&gt;NextOcc:&lt;BR /&gt;Next oRefDoc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MsgBox "Flat patterns exported to " &amp;amp; SETFilePath, vbInformation, "iLogic"&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 13:46:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12143965#M155975</guid>
      <dc:creator>mindaV3J2J</dc:creator>
      <dc:date>2023-08-02T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12145647#M155976</link>
      <description>&lt;P&gt;Hi! Another way to do it without using an iLogic rule is to save the seeing as a configuration. Turn off the layers and save the configuration (at the top of the dialog). Keep using the same cfg file and those layers will be turned off.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 03:24:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12145647#M155976</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2023-08-03T03:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147323#M155978</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you go into more detail? I'm a little lost with this response.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 17:10:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147323#M155978</guid>
      <dc:creator>mindaV3J2J</dc:creator>
      <dc:date>2023-08-03T17:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147585#M155983</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13933266"&gt;@mindaV3J2J&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you just need to update your sOut line to something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;sOut&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;sOut&lt;/SPAN&gt; = &lt;SPAN&gt;"FLAT PATTERN DXF?AcadVersion=2007"&lt;/SPAN&gt; &amp;amp; _
&lt;SPAN&gt;"&amp;amp;OuterProfileLayer=IV_INTERIOR_PROFILES"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;InvisibleLayers = IV_TANGENT;IV_ROLL_TANGENT"&lt;/SPAN&gt; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reference link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=WriteFlatPatternAsDXF_Sample" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=WriteFlatPatternAsDXF_Sample&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;related link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/export-into-quot-dxf-quot-the-flat-pattern-part-since-the/m-p/8629659#M95114" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/export-into-quot-dxf-quot-the-flat-pattern-part-since-the/m-p/8629659#M95114&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is an example of all options, just for reference:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;sOut&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;sOut&lt;/SPAN&gt;=&lt;SPAN&gt;"FLAT PATTERN DXF?AcadVersion=2007"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;TangentLayer=IV_TANGENT "&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;BendLayer=IV_BEND"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;BendDownLayer=IV_BEND_DOWN"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ToolCenterLayer=IV_TOOL_CENTER"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ToolCenterDownLayer=IV_TOOL_CENTER_DOWN"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ArcCentersLayer=IV_ARC_CENTERS"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;OuterProfileLayer=IV_OUTER_PROFILE"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;InteriorProfilesLayer=IV_INTERIOR_PROFILES"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;FeatureProfilesLayer=IV_FEATURE_PROFILES"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;FeatureProfilesDownLayer=IV_FEATURE_PROFILES_DOWN"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;AltRepFrontLayer=IV_ALTREP_FRONT"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;AltRepBackLayer=IV_ALTREP_BACK"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;UnconsumedSketchesLayer=IV_UNCONSUMED_SKETCHES"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;TangentRollLinesLayer=IV_ROLL_TANGENT"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;RollLinesLayer=IV_ROLL"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;InvisibleLayers=IV_TANGENT;IV_ROLL_TANGENT"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;TangentLayerColor=0;0;0 "&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;endLayerColor=255;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;BendDownLayerColor=0;255;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ToolCenterLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ToolCenterDownLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;ArcCentersLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;OuterProfileLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;InteriorProfilesLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _ 
&lt;SPAN&gt;"&amp;amp;FeatureProfilesLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;FeatureProfilesDownLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;AltRepFrontLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;AltRepBackLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;UnconsumedSketchesLayerColor=-255;-255;-255"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;TangentRollLinesLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;RollLinesLayerColor=0;0;0"&lt;/SPAN&gt; &amp;amp;  _
&lt;SPAN&gt;"&amp;amp;MergeProfilesIntoPolyline=True"&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:15:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147585#M155983</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2023-08-03T19:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147606#M155984</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much. However, when i run this, im getting an invalid procedure call or argument error, runtime error 5. Do you know why this is?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 18:47:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147606#M155984</guid>
      <dc:creator>mindaV3J2J</dc:creator>
      <dc:date>2023-08-03T18:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147609#M155985</link>
      <description>&lt;P&gt;Actually, it outputted correctly i just changed the acad version to match mine; however, the tangent lines are still there. Any other ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 18:49:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147609#M155985</guid>
      <dc:creator>mindaV3J2J</dc:creator>
      <dc:date>2023-08-03T18:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147630#M155986</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13933266"&gt;@mindaV3J2J&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ahh, I was just trying to match what you had in the original example as far as ACAD version, but goofed that up. You are correct there is no 2008 version ( I updated my examples).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just did a quick test and see the same results as you. I'll see if I can figure out what the issue is. It's likely a syntax issue with the sOut line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:03:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147630#M155986</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2023-08-03T19:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147639#M155988</link>
      <description>&lt;P&gt;Awesome i appreciate it. No rush whatsoever.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147639#M155988</guid>
      <dc:creator>mindaV3J2J</dc:creator>
      <dc:date>2023-08-03T19:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147644#M155989</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13933266"&gt;@mindaV3J2J&lt;/a&gt;&amp;nbsp;, I had extra spaces in the sOut line that was causing the issue. I'll update my previous posts so it doesn't trip someone else up in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim sOut As String
sOut = "FLAT PATTERN DXF?AcadVersion=2007" &amp;amp; _
"&amp;amp;OuterProfileLayer=IV_INTERIOR_PROFILES" &amp;amp; _
"&amp;amp;InvisibleLayers=IV_TANGENT;IV_ROLL_TANGENT"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:06:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147644#M155989</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2023-08-03T19:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147655#M155992</link>
      <description>&lt;P&gt;worked!!! thanks so much&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:14:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147655#M155992</guid>
      <dc:creator>mindaV3J2J</dc:creator>
      <dc:date>2023-08-03T19:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147663#M155994</link>
      <description>&lt;P&gt;Sorry last question and this is unrelated, is there a way i can get this to loop through multiple inventor assembly files and pirnt the dxfs of each assembly rather than just the one using VBA. I assume we will have to use visual basic for this.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:18:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147663#M155994</guid>
      <dc:creator>mindaV3J2J</dc:creator>
      <dc:date>2023-08-03T19:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147671#M155997</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13933266"&gt;@mindaV3J2J&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry last question and this is unrelated, is there a way i can get this to loop through multiple inventor assembly files and pirnt the dxfs of each assembly rather than just the one using VBA. I assume we will have to use visual basic for this.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;yeah, you can probably do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you identifying the assemblies?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are they all in the same folder? All open in Inventor? Something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:22:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147671#M155997</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2023-08-03T19:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147679#M155998</link>
      <description>&lt;P&gt;yes they're all in the same folder. My coworker would like to be able to drop multiple assemblies in the same folder and output the respective flat parts in individual folders corresponding to the assembly it came from. thanks so much for your help as well&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 19:25:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147679#M155998</guid>
      <dc:creator>mindaV3J2J</dc:creator>
      <dc:date>2023-08-03T19:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: turn off certain layers when exporting as dxf</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147843#M155999</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13933266"&gt;@mindaV3J2J&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This VBA example will open all the assemblies in a folder, and then close them. Add your DXF code where indicated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub FindFilesWithComment()

    sName = ThisApplication.ActiveDocument.FullFileName
    Dim filesystem As Object
    Set filesystem = CreateObject("Scripting.FilesystemObject")
    
    Dim ActiveDoc As Document
    Set ActiveDoc = ThisApplication.ActiveDocument
   
    Dim FolderPath As String
    FolderPath = BrowseForFolder()
    
    If FolderPath = "" Then Exit Sub
    
    Dim oFSO As Object
    Dim oFolder As Object
    Dim oFile As Object
    Dim oFiles As Object

     
    Dim oFileNames As String
    oFileNames = "Files with comments: " &amp;amp; oComment
    Set oFSO = CreateObject("Scripting.FileSystemObject")
     
    Set oFolder = oFSO.GetFolder(FolderPath)
    
    For Each oFile In oFolder.Files
        If LCase(oFSO.GetExtensionName(oFile.Name)) = "iam" Then
        
            sFilename = FolderPath &amp;amp; "\" &amp;amp; oFile.Name
            Dim oAsmDoc As AssemblyDocument
            
            'set option to false to open invisible and run faster
            Set oAsmDoc = ThisApplication.Documents.Open(sFilename, True)
            
            MsgBox (oAsmDoc.FullFileName)
        
            Dim oRefDocs As DocumentsEnumerator
            Set oRefDocs = oAsmDoc.AllReferencedDocuments
        
            Dim oRefDoc As Document
            For Each oRefDoc In oRefDocs
                
                'put your DXF code here
                
            Next oRefDoc
            
            If Not ActiveDoc Is oAsmDoc Then oAsmDoc.Close (True) 'true = skip save
        
        End If
     
    Next oFile
    
    
End Sub
Function BrowseForFolder(Optional OpenAt As Variant) As Variant

    Dim ShellApp As Object
    Set ShellApp = CreateObject("Shell.Application"). _
    BrowseForFolder(0, "Please choose a folder", 0, OpenAt)
    On Error Resume Next
    BrowseForFolder = ShellApp.self.Path
    On Error GoTo 0
    Set ShellApp = Nothing
    Select Case Mid(BrowseForFolder, 2, 1)
    Case Is = ":"
        If Left(BrowseForFolder, 1) = ":" Then GoTo Invalid
    Case Is = "\"
        If Not Left(BrowseForFolder, 1) = "\" Then GoTo Invalid
    Case Else
        GoTo Invalid
    End Select

    Exit Function

Invalid:
    BrowseForFolder = ""
End Function

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 20:56:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/turn-off-certain-layers-when-exporting-as-dxf/m-p/12147843#M155999</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2023-08-03T20:56:08Z</dc:date>
    </item>
  </channel>
</rss>

