<?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 to export sheet metal flat patterns from within a drawing in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7690071#M94206</link>
    <description>&lt;P&gt;This is a very basic model but it shows what I'm trying to do. Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2018 08:42:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-15T08:42:46Z</dc:date>
    <item>
      <title>Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674421#M94188</link>
      <description>&lt;P&gt;We have all singing and dancing Ilogic models that update, export dxf files (from assembly environment), drawings, etc. But for non-standard products we still rely heavily on spread sheet driven models which allows us to manually customise without breaking anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The models can be quite messy depending on the designer but the end result is a parts list. If there are any parts within the parts list that require a dxf flat pattern it is manually assigned a dxf file name in a column in the parts list and left blank otherwise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Within the drawing environment is there anyway we can use Ilogic to look at the parts list and if it sees a row that has a dxf file name assigned it will export the sheet metal flat pattern of that particular part to a designated location?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 08:51:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674421#M94188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T08:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674463#M94189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you find related post?&lt;BR /&gt;&lt;BR /&gt;there are many post are solve. example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-dxf/m-p/6330127#M63889" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-dxf/m-p/6330127#M63889&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 09:16:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674463#M94189</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2018-01-09T09:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674505#M94190</link>
      <description>&lt;P&gt;This link seems to run from the rule from the assembly file. I want the rule to be in the drawing with the parts list and for it to look at the parts list.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 09:35:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674505#M94190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T09:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674597#M94191</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the following iLogic code to get Assembly Document from Drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim referDoc As Document
referDoc = ThisDrawing.ModelDocument

If referDoc.DocumentType = kAssemblyDocumentObject Then
	'Use the code provided in the link (https://forums.autodesk.com/t5/inventor-customization/ilogic-dxf/m-p/6330127#M63889)&lt;BR /&gt;End If&lt;/PRE&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 10:21:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674597#M94191</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-01-09T10:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674664#M94192</link>
      <description>&lt;P&gt;This isn't working but I still don't think its the solution to what I'm after as thisseems to be looking at the assembly in the drawing and exporting all sheet metal parts it finds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the parts list attached. These parts are all sheet metal but I only want Ilogic to export the DXF flat pattern of the parts that only have a code assigned to them in the column DXF FILE NAME.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 10:49:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7674664#M94192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T10:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7675158#M94193</link>
      <description>&lt;P&gt;Something like this is more along the lines of what you are looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()

'Pre-Checks
	If ThisApplication.ActiveDocument.DocumentType &amp;lt;&amp;gt; kDrawingDocumentObject Then
		MessageBox.Show("Please run this rule from the drawing document", "iLogic")
		Exit Sub
	End If

	RUsure = MessageBox.Show ( _
	"This will create a DXF file for all of the asembly components that are sheet metal." _
	&amp;amp; vbLf &amp;amp; "This rule expects that the part file is saved." _
	&amp;amp; vbLf &amp;amp; " " _
	&amp;amp; vbLf &amp;amp; "Are you sure you want to create DXF for all of the assembly components?" _
	&amp;amp; vbLf &amp;amp; "This could take a while.", "iLogic - Batch Output DXFs ", MessageBoxButtons.YesNo)

	If RUsure = vbNo Then
		Exit Sub
	End If
'/Pre-Checks

'Output Config
	'oPath = ThisDoc.Path
	'oFolder = oPath &amp;amp; "\" &amp;amp; oAsmName &amp;amp; " DXF Files"
	oFolder = "C:\Users\Public\Public Documents\DXF Files"

	If Not System.IO.Directory.Exists(oFolder) Then
		System.IO.Directory.CreateDirectory(oFolder)
	End If
	
	oDxfFlagColumnIndex = 6
'/Output Config	

'Functionality
	Dim oDwgDoc As DrawingDocument
	oDwgDoc = ThisDoc.Document
	
	For Each oSheet As Sheet In oDwgDoc.Sheets
		If oSheet.PartsLists.Count &amp;gt; 0 Then
			For Each oPartsList As PartsList In oSheet.PartsLists
				For Each oPartsListRow In oPartsList.PartsListRows
					If oPartsListRow.Item(oDxfFlagColumnIndex).Value &amp;lt;&amp;gt; "" Then
						'oPartDoc = oPartsListRow.ReferencedRows.Item(1).Document
						oPartDoc = oPartsListRow.ReferencedRows.Item(1).BOMRow.ComponentDefinitions.Item(1).Document
						Call ExportDXFFromIPT(oPartDoc, oFolder)
					End If
				Next 'row
			Next 'partslist
		End If
	Next 'sheet
'Functionality

End Sub

Sub ExportDXFFromIPT(oPartDoc As Document, oDestinationFolder As String)
		
	oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
	
	Try
		CustomName = Left(oPartDoc.DisplayName, Len(oPartDoc.DisplayName) -4)
		oDataMedium.FileName = oDestinationFolder &amp;amp; "\" &amp;amp; CustomName &amp;amp; ".dxf"

		Dim oCompDef As SheetMetalComponentDefinition
		oCompDef = oPartDoc.ComponentDefinition
		
		If oCompDef.HasFlatPattern = False Then
			oCompDef.Unfold
		Else
			oCompDef.FlatPattern.Edit
		End If
		
		Dim sOut As String
		sOut = "FLAT PATTERN DXF?AcadVersion=2004&amp;amp;OuterProfileLayer=IV_OUTER_PR​OFILE"
		oCompDef.DataIO.WriteDataToFile(sOut,oDataMedium.FileName)
		oCompDef.FlatPattern.ExitEdit
	Catch
		MsgBox("DXF Not Created! Part is not a sheet metal type")
	End Try
End Sub&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jan 2018 13:48:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7675158#M94193</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-01-09T13:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7675354#M94194</link>
      <description>&lt;P&gt;Now we're getting somewhere! This is great and what I'm after but still need assistance if you don't mind please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1:&amp;nbsp; I can see the relevant column is chosen by "oDxfFlagColumnIndex = 6". Designers may add or takeaway extra columns at their will and so column 6 may not always be the one. Can this be chosen using the name of the column as this would remain static?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2: The name of the exported dxf file is currently the part name. We need it to be the code we have assigned to it in the column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3: Until I go into each part and re-flat pattern it&amp;nbsp;it seems to be not exporting it. Just trying to get to the bottom of this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 14:34:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7675354#M94194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T14:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7676449#M94195</link>
      <description>&lt;P&gt;Not sure about 3. Try some google-fu or browsing the forums for help with that one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()

'Pre-Checks
	If ThisApplication.ActiveDocument.DocumentType &amp;lt;&amp;gt; kDrawingDocumentObject Then
		MessageBox.Show("Please run this rule from the drawing document", "iLogic")
		Exit Sub
	End If

	RUsure = MessageBox.Show ( _
	"This will create a DXF file for all of the asembly components that are sheet metal." _
	&amp;amp; vbLf &amp;amp; "This rule expects that the part file is saved." _
	&amp;amp; vbLf &amp;amp; " " _
	&amp;amp; vbLf &amp;amp; "Are you sure you want to create DXF for all of the assembly components?" _
	&amp;amp; vbLf &amp;amp; "This could take a while.", "iLogic - Batch Output DXFs ", MessageBoxButtons.YesNo)

	If RUsure = vbNo Then
		Exit Sub
	End If
'/Pre-Checks

'Output Config
	'oPath = ThisDoc.Path
	'oFolder = oPath &amp;amp; "\" &amp;amp; oAsmName &amp;amp; " DXF Files"
	oFolder = "C:\Users\Public\Public Documents\DXF Files"

	If Not System.IO.Directory.Exists(oFolder) Then
		System.IO.Directory.CreateDirectory(oFolder)
	End If
'/Output Config	

'Functionality
	Dim oDwgDoc As DrawingDocument
	oDwgDoc = ThisDoc.Document
	
	For Each oSheet As Sheet In oDwgDoc.Sheets
		If oSheet.PartsLists.Count &amp;gt; 0 Then
			For Each oPartsList As PartsList In oSheet.PartsLists&lt;BR /&gt;                                If oDXFCol = "" Then&lt;BR /&gt;                                    oDXFCol = GetDXFColIndex(oPartsList)&lt;BR /&gt;                                    If oDXFCol = "" Then: Msgbox("Col ID Issue, Aborting Sub!"): Exit Sub: End if&lt;BR /&gt;                                End if&lt;BR /&gt;
				For Each oPartsListRow In oPartsList.PartsListRows&lt;BR /&gt;                                        oDestinationName = oPartsListRow.Item(oDxfFlagColumnIndex).Value
					If oDestinationName &amp;lt;&amp;gt; "" Then
						'oPartDoc = oPartsListRow.ReferencedRows.Item(1).Document
						oPartDoc = oPartsListRow.ReferencedRows.Item(1).BOMRow.ComponentDefinitions.Item(1).Document
						Call ExportDXFFromIPT(oPartDoc, oFolder, oDestinationName)
					End If
				Next 'row
			Next 'partslist
		End If
	Next 'sheet
'Functionality

End Sub
&lt;BR /&gt;
Function GetDXFColIndex(oPartsList As PartsList) As Integer
    For j = 1 to oPartsList.PartsListColumns.Count
        If oPartsList.oPartsListColumns(j).Title = "DXF" Then
              GetDXFColIndex = j
              Exit Function
        End if
    Next
    MsgBox("Column of appropriate title hardcoded in script not found. [See sub GetDXFColIndex]")
End Function

&lt;BR /&gt;
Sub ExportDXFFromIPT(oPartDoc As Document, oDestinationFolder As String, oDestinationName)
		
	oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
	
	Try
		'CustomName = Left(oPartDoc.DisplayName, Len(oPartDoc.DisplayName) -4)
		oDataMedium.FileName = oDestinationFolder &amp;amp; "\" &amp;amp; oDestinationName &amp;amp; ".dxf"

		Dim oCompDef As SheetMetalComponentDefinition
		oCompDef = oPartDoc.ComponentDefinition
		
		If oCompDef.HasFlatPattern = False Then
			oCompDef.Unfold
		Else
			oCompDef.FlatPattern.Edit
		End If
		
		Dim sOut As String
		sOut = "FLAT PATTERN DXF?AcadVersion=2004&amp;amp;OuterProfileLayer=IV_OUTER_PR​OFILE"
		oCompDef.DataIO.WriteDataToFile(sOut,oDataMedium.FileName)
		oCompDef.FlatPattern.ExitEdit
	Catch
		MsgBox("DXF Not Created! Part is not a sheet metal type")
	End Try
End Sub&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 19:20:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7676449#M94195</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-01-09T19:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7676476#M94196</link>
      <description>&lt;P&gt;You can add a custom iProperty to mark the part/drawing as having flat layout.&lt;/P&gt;&lt;P&gt;You can check that iProperty in drawing instead of BOM.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 19:31:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7676476#M94196</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2018-01-09T19:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7677946#M94197</link>
      <description>&lt;P&gt;Thanks for this but I seem to get the below error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error on Line 71 : All parameters must be explicitly typed if any of them are explicitly typed&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 08:48:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7677946#M94197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-10T08:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7677963#M94198</link>
      <description>&lt;P&gt;Hi Pineapple...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We do already set Iproperties value within parts so they are identified as sheet metal and require to be dxf'd but that's on models specifically setup to be illogic driven from scratch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, this is a workaround for non-illogic models where we have hundreds of parts that aren't given any Iproperty values.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 08:53:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7677963#M94198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-10T08:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7678761#M94199</link>
      <description>&lt;P&gt;Have you (a) identified line 71? and (b) Have you tried applying what the error trace says (the plain english of it) to the line to try to find out the error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably not, but here's how:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(a)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Easy way to find what line it is on:&lt;/P&gt;
&lt;P&gt;1. Copy the text of the code.&lt;/P&gt;
&lt;P&gt;2. Go to diffchecker.com&lt;/P&gt;
&lt;P&gt;3. Paste the code.&lt;/P&gt;
&lt;P&gt;4. Use the line index on the side to find the line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the line giving issues is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub ExportDXFFromIPT(oPartDoc As Document, oDestinationFolder As String, oDestinationName)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good, line found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(b)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, the error trace says:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;All parameters must be explicitly typed if any of them are explicitly typed.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(from google:)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;parameter:&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;a numerical or other measurable factor forming one of a set that defines a system or sets the conditions of its operation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;explicitly:&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;in a clear and detailed manner, leaving no room for confusion or doubt.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;typed:&lt;/STRONG&gt;&amp;nbsp;classified in a certain manner.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A rough conversion to plain English&amp;nbsp;tell us?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"One of these things is not like the other one, and these things involve parameters and explicitly written types"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What does this mean?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Well, look for patterns.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you look in the brackets, you see writing followed by a comma repeated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Our section that includes the pattern:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;oPartDoc As Document, oDestinationFolder As String, oDestinationName&lt;/PRE&gt;
&lt;P&gt;Notice how one of the segments is not like the other ones?&lt;/P&gt;
&lt;P&gt;(Big hint: "As _________")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hmm, well what follows the 'as' you might ask?&lt;/P&gt;
&lt;P&gt;That's where you need to understand the available programming language you use, then analyze where that variable is used and apply the necessary typing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A good place to start is with the basic variable types for the programming language (easy link found through google:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/data-types/data-type-summary" target="_blank"&gt;https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/data-types/data-type-summary&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, you would luck out pretty quick and find out that "STRING" is your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you should be able to put this all together and have some working code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 13:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7678761#M94199</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-01-10T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7678774#M94200</link>
      <description>&lt;P&gt;Also, as using iProperties is a more accessible and robust method, you could have considered your workflow from the beginning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1:&lt;/P&gt;
&lt;P&gt;What does the ideal workflow look like, and how do we apply this 2 legacy files?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2:&lt;/P&gt;
&lt;P&gt;What is the code to apply the necessary conversion to the legacy files to make the act functionally like the current files?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 3:&lt;/P&gt;
&lt;P&gt;What is the code we need to continue are workflow to solve the original problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case;&lt;/P&gt;
&lt;P&gt;- Push the info from the PartsList into the iProperties for the parts, and clear the "static" status of the cell in the parts list.&lt;/P&gt;
&lt;P&gt;- Iterate through the BOM rows, or master doc in order to create the dxfs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This legacy method that forces us to use the partslist is not only inefficient, but it FORCES us to have to use the PartsLists to gather the relevant information, which is just adding another layer of complexity to the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 13:55:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7678774#M94200</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-01-10T13:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7678838#M94201</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;Hi Pineapple...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;However, this is a workaround for non-illogic models where we have hundreds of parts that aren't given any Iproperty values.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then add that iProperty to all models without iLogic.&lt;/P&gt;&lt;P&gt;Write code (VBA macro or addin) to go through all files and check if there is flat pattern in it and change iProperty accordingly.&lt;/P&gt;&lt;P&gt;You can try the code in with 10 files with and without flat pattern first to see if it work.&lt;/P&gt;&lt;P&gt;You can then run it at the end of the day to work on all files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I"m not sure if iLogic can do the following.&amp;nbsp; I only code with VBA and addin.&lt;/P&gt;&lt;P&gt;Code a event trigger on Before File Save or After File Open to check file if there is flat pattern and add iProperty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way you don't need a workaround.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 14:10:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7678838#M94201</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2018-01-10T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7681116#M94202</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without iPropeties, I tried some iLogic code to find sheet metal path and export the same to DXF as shown below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please provide sample drawing and related files? So that, we can understand structure of partslist and assembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please make sure that files are non confidential.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main() &lt;BR /&gt;
    Dim oDoc As DrawingDocument 
    oDoc = ThisApplication.ActiveDocument 
    
    Dim oSheet As Inventor.Sheet
    oSheet = oDoc.Sheets.Item(1)
    
    'Assumed that only one partslist exists in drawing sheet
    Dim oPartsList As PartsList
    oPartsList = oSheet.PartsLists.Item(1)
    
    Dim oPartListRow As PartsListRow
    For Each oPartListRow In oPartsList.PartsListRows
        If  Not oPartListRow.Item(6).Value = "" Then 'Assumed that 6th column is "DXF FILE NAME"
            Dim referDoc As Document
            referDoc = oSheet.DrawingViews.Item(1).ReferencedDocumentDescriptor.ReferencedDocument
            
            If referDoc.DocumentType = kAssemblyDocumentObject Then
                Dim assyDoc As AssemblyDocument
                assyDoc = referDoc
                Dim occName As String
                'Assumed that 2nd columne is "PART NAME". This name is used for finding the sheet metal document path
				occName = oPartListRow.Item(2).Value 'Assumed that Occurrence name and PART NAME are similar
                iptPathName = getOccPath(assyDoc, occName)
				If Not iptPathName = "" Then
					ExportDXF(iptPathName)
				End If				
            End If
        End If
    Next
    
End Sub



Public Function getOccPath(ByVal assyDoc As AssemblyDocument, ByVal occName As String) As String
    Dim assyDef As AssemblyComponentDefinition
    assyDef = assyDoc.ComponentDefinition
    
    occName = occName + ":1"
    
    Dim occPath As String
    occPath = ""
    
    Dim occ As ComponentOccurrence
    For Each occ In assyDef.Occurrences.AllLeafOccurrences
        If occ.Name = occName Then
            occPath = occ.ReferencedDocumentDescriptor.FullDocumentName
            getOccPath = occPath
        End If
    Next
    
End Function

Public Sub ExportDXF(ByVal iptPathName As String)

	Dim oSheetDoc As PartDocument
	oSheetDoc = ThisApplication.Documents.Open(iptPathName, True)
	
	If TypeOf oSheetDoc.ComponentDefinition Is SheetMetalComponentDefinition Then
		Dim oCompDef As SheetMetalComponentDefinition
		oCompDef = oSheetDoc.ComponentDefinition	

		'Desire location to save DXF file
		oFolder = "C:\Temp"
		oFileName = Left(oSheetDoc.DisplayName, Len(oSheetDoc.DisplayName) - 4)
		
		Try

			oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
			oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp; ".dxf"	

			
			If oCompDef.HasFlatPattern = False Then
			oCompDef.Unfold
			Else
			oCompDef.FlatPattern.Edit
			End If
			Dim sOut As String
			sOut = "FLAT PATTERN DXF?AcadVersion=2004&amp;amp;OuterProfileLayer=IV_OUTER_PR?OFILE"
			oCompDef.DataIO.WriteDataToFile( sOut, oDataMedium.FileName)
			
			oCompDef.FlatPattern.ExitEdit
			
			MessageBox.Show("DXF file saved at " + oDataMedium.FileName, "Inventor")
		Catch
		End Try
	Else 		
		MessageBox.Show ("Unable to export to DXF. PartDocument is not sheet metal", "Inventor")		
	End If
	
	oSheetDoc.Close
	
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please feel free to contact if there is any queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If solves problem, click on "Accept as solution" / give a "Kudo".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 05:49:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7681116#M94202</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-01-11T05:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7681501#M94203</link>
      <description>&lt;P&gt;At this time the method MechMachine is assisting with is the way I wish to go. There are better ways and for other models we do use better ways but this is more appropriate to our current situation until we spend time re-evaluating our spread sheet models.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not a programmer (hopefully in the future I can dedicate time to understanding it properly) and spend my time cutting and pasting code from other peoples generosity or existing found solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My obstacle for closing this as a working solution now is a new error as below. I'm currently trying to solve this but keep&amp;nbsp;hitting a brick wall with my lack of understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Public member 'oPartsListColumns' on type 'PartsList' not found&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 08:55:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7681501#M94203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-11T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7681516#M94204</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please provide sample drawing and related files (Non confidential files&amp;nbsp;)? So that, we can understand structure of partslist and assembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With sample drawing files, feasible solution can be arrived.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&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;</description>
      <pubDate>Thu, 11 Jan 2018 08:59:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7681516#M94204</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-01-11T08:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7682164#M94205</link>
      <description>&lt;P&gt;Step 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Read below link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/variables/how-to-access-members-of-an-object" target="_blank"&gt;https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/variables/how-to-access-members-of-an-object&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Familiarize yourself with the object model &amp;amp; overview&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-4939ABD1-A15E-473E-9376-D8208EC029EB" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-4939ABD1-A15E-473E-9376-D8208EC029EB&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 3:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Use the&amp;nbsp;API resources to find the relevant member that it should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-CC993480-55C0-4C1C-9B2F-E522B879E990" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-CC993480-55C0-4C1C-9B2F-E522B879E990&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, feel free to ask if you have any more questions! Seems like you're catching on quick though.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 13:28:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7682164#M94205</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-01-11T13:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7690071#M94206</link>
      <description>&lt;P&gt;This is a very basic model but it shows what I'm trying to do. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 08:42:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7690071#M94206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T08:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to export sheet metal flat patterns from within a drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7690351#M94207</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After downloading drawing sample, a small improvement to previous iLogic code and extended to work for drawing which is having presentation document. Code looks like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main() 

    Dim oDoc As DrawingDocument 
    oDoc = ThisApplication.ActiveDocument 
    
    Dim oSheet As Inventor.Sheet
    oSheet = oDoc.Sheets.Item(1)
    
    'Assumed that only one partslist exists in drawing sheet
    Dim oPartsList As PartsList
    oPartsList = oSheet.PartsLists.Item(1)
    
    Dim oPartListRow As PartsListRow
    For Each oPartListRow In oPartsList.PartsListRows
        If  Not oPartListRow.Item(6).Value = "" Then 'Assumed that 6th column is "DXF FILE NAME"
            Dim referDoc As Document
            referDoc = oSheet.DrawingViews.Item(1).ReferencedDocumentDescriptor.ReferencedDocument
            
            If referDoc.DocumentType = kAssemblyDocumentObject Then
				
                Dim assyDoc As AssemblyDocument
                assyDoc = referDoc
                
				Export_Through_AssyDoc(assyDoc,oPartListRow)
				
			Else If referDoc.DocumentType = kPresentationDocumentObject Then
				Dim oPresDoc As PresentationDocument
				oPresDoc = referDoc
				
				Dim assyDoc As AssemblyDocument
                assyDoc = referDoc.ReferencedDocumentDescriptors.Item(1).ReferencedDocument
				
				Export_Through_AssyDoc(assyDoc, oPartListRow)
            End If
        End If
    Next
    
End Sub

Public Sub Export_Through_AssyDoc(ByVal assyDoc As AssemblyDocument, ByVal oPartListRow As PartsListRow )
	Dim occName As String
    'Assumed that 2nd columne is "PART NAME". This name is used for finding the sheet metal document path
	occName = oPartListRow.Item(2).Value 'Assumed that Occurrence name and PART NAME are similar
    iptPathName = getOccPath(assyDoc, occName)
	If Not iptPathName = "" Then
		ExportDXF(iptPathName)
	End If	
End Sub

Public Function getOccPath(ByVal assyDoc As AssemblyDocument, ByVal occName As String) As String
    Dim assyDef As AssemblyComponentDefinition
    assyDef = assyDoc.ComponentDefinition
    
    occName = occName + ":1"
    
    Dim occPath As String
    occPath = ""
    
    Dim occ As ComponentOccurrence
    For Each occ In assyDef.Occurrences.AllLeafOccurrences
        If occ.Name = occName Then
            occPath = occ.ReferencedDocumentDescriptor.FullDocumentName
            getOccPath = occPath
        End If
    Next
    
End Function

Public Sub ExportDXF(ByVal iptPathName As String)

	Dim oSheetDoc As PartDocument
	oSheetDoc = ThisApplication.Documents.Open(iptPathName, True)
	
	If TypeOf oSheetDoc.ComponentDefinition Is SheetMetalComponentDefinition Then
		Dim oCompDef As SheetMetalComponentDefinition
		oCompDef = oSheetDoc.ComponentDefinition	

		'Desire location to save DXF file
		oFolder = "C:\Temp"
		oFileName = Left(oSheetDoc.DisplayName, Len(oSheetDoc.DisplayName) - 4)
		
		Try

			oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
			oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp; ".dxf"	

			
			If oCompDef.HasFlatPattern = False Then
			oCompDef.Unfold
			Else
			oCompDef.FlatPattern.Edit
			End If
			Dim sOut As String
			sOut = "FLAT PATTERN DXF?AcadVersion=2004&amp;amp;OuterProfileLayer=IV_OUTER_PR?OFILE"
			oCompDef.DataIO.WriteDataToFile( sOut, oDataMedium.FileName)
			
			oCompDef.FlatPattern.ExitEdit
			
			MessageBox.Show("DXF file saved at " + oDataMedium.FileName, "Inventor")
		Catch
		End Try
	Else 		
		MessageBox.Show ("Unable to export to DXF. PartDocument is not sheet metal", "Inventor")		
	End If
	
	oSheetDoc.Close
	
End Sub&lt;/PRE&gt;
&lt;P&gt;Please feel free to contact if there is any queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If problem is solved, click on "Accept as solution" / give a "Kudo".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 10:43:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-to-export-sheet-metal-flat-patterns-from-within-a-drawing/m-p/7690351#M94207</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-01-15T10:43:28Z</dc:date>
    </item>
  </channel>
</rss>

