<?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 rule: IDW with Flat Pattern in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-rule-idw-with-flat-pattern/m-p/5511209#M386157</link>
    <description>&lt;P&gt;Hi Mike&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how i changed your code. just changed the "C:\Temp\test.dxf" &amp;nbsp;to&amp;nbsp;ThisDoc.PathAndFileName(False) &amp;amp; ".dxf"&amp;nbsp;&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;PRE&gt;Dim oDoc As DrawingDocument
Dim oSheet As Sheet
Dim oSheets As Sheets

Try
	oDoc = ThisDrawing.Document
Catch
	MsgBox("Must be ran on a drawing document!",vbOKOnly,"Error")
	Exit Sub
End Try

oSheets = oDoc.Sheets
For Each oSheet In oSheets
	Try
		If oSheet.DrawingViews.Item(1).ReferencedDocumentDescriptor.ReferencedDocument.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then
			Try
				oDoc.SaveAs(ThisDoc.PathAndFileName(False) &amp;amp; ".dxf", True)
			Catch
				MsgBox("Error saving file",vbOKOnly,"Error")
				Exit Sub
			End Try
		End If
	Catch
		MsgBox("Error detecting file type - probably no views on sheet: " &amp;amp; oSheet.Name,vbOKOnly,"Error")
	End Try
Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Feb 2015 14:13:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-18T14:13:29Z</dc:date>
  </channel>
</rss>

