<?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 batch pdf from assembly in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7808316#M81040</link>
    <description>&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;thank you for your reply. I send&amp;nbsp;short sample data.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 09:43:42 GMT</pubDate>
    <dc:creator>martinhoos</dc:creator>
    <dc:date>2018-02-26T09:43:42Z</dc:date>
    <item>
      <title>ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7798226#M80827</link>
      <description>&lt;P&gt;Hello Forum,&lt;/P&gt;&lt;P&gt;i tried to modify the folowing code from Curtis&amp;nbsp;Waguespack&amp;nbsp;- but i failed!&amp;nbsp; In our System the drawings and the components are saved in several folders and subfolders below the workspace! Is it possible to Change the code, that ilogic is looking trough all of the folders and subfolders?&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'define the active document as an assembly file
Dim oAsmDoc As AssemblyDocument
oAsmDoc = ThisApplication.ActiveDocument
oAsmName = Left(oAsmDoc.DisplayName, Len(oAsmDoc.DisplayName) -4)

'check that the active document is an assembly file
If ThisApplication.ActiveDocument.DocumentType &amp;lt;&amp;gt; kAssemblyDocumentObject Then
MessageBox.Show("Please run this rule from the assembly file.", "iLogic")
Exit Sub
End If

'get user input
RUsure = MessageBox.Show ( _
"This will create a PDF file for all of the asembly components that have drawings files." _
&amp;amp; vbLf &amp;amp; "This rule expects that the drawing file shares the same name and location as the component." _
&amp;amp; vbLf &amp;amp; " " _
&amp;amp; vbLf &amp;amp; "Are you sure you want to create PDF Drawings for all of the assembly components?" _
&amp;amp; vbLf &amp;amp; "This could take a while.", "iLogic  - Batch Output PDFs ",MessageBoxButtons.YesNo)

If RUsure = vbNo Then
Return
Else
End If

'- - - - - - - - - - - - -PDF setup - - - - - - - - - - - -
oPath = ThisDoc.Path
PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")
oContext = ThisApplication.TransientObjects.CreateTranslationContext
oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
oOptions = ThisApplication.TransientObjects.CreateNameValueMap
oDataMedium = ThisApplication.TransientObjects.CreateDataMedium

If PDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then
'oOptions.Value("All_Color_AS_Black") = 0
oOptions.Value("Remove_Line_Weights") = 1
oOptions.Value("Vector_Resolution") = 400
oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
'oOptions.Value("Custom_Begin_Sheet") = 2
'oOptions.Value("Custom_End_Sheet") = 4
End If

'get PDF target folder path
oFolder = oPath &amp;amp; "\" &amp;amp; oAsmName &amp;amp; " PDF Files"

'Check for the PDF folder and create it if it does not exist
If Not System.IO.Directory.Exists(oFolder) Then
    System.IO.Directory.CreateDirectory(oFolder)
End If
'- - - - - - - - - - - - -

'- - - - - - - - - - - - -Component Drawings - - - - - - - - - - - -
'look at the files referenced by the assembly
Dim oRefDocs As DocumentsEnumerator
oRefDocs = oAsmDoc.AllReferencedDocuments
Dim oRefDoc As Document

'work the the drawing files for the referenced models
'this expects that the model has a drawing of the same path and name 
For Each oRefDoc In oRefDocs
idwPathName = Left(oRefDoc.FullDocumentName, Len(oRefDoc.FullDocumentName) - 3) &amp;amp; "idw"
'check to see that the model has a drawing of the same path and name 
If(System.IO.File.Exists(idwPathName)) Then
		Dim oDrawDoc As DrawingDocument
	oDrawDoc = ThisApplication.Documents.Open(idwPathName, True)
	oFileName = Left(oRefDoc.DisplayName, Len(oRefDoc.DisplayName) -3)

	On Error Resume Next ' if PDF exists and is open or read only, resume next
	 'Set the PDF target file name
	oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp; "pdf"
	'Write out the PDF
	Call PDFAddIn.SaveCopyAs(oDrawDoc, oContext, oOptions, oDataMedium)
	'close the file
	oDrawDoc.Close
Else
'If the model has no drawing of the same path and name - do nothing
End If
Next
'- - - - - - - - - - - - -

'- - - - - - - - - - - - -Top Level Drawing - - - - - - - - - - - -
oAsmDrawing = ThisDoc.ChangeExtension(".idw")
oAsmDrawingDoc = ThisApplication.Documents.Open(oAsmDrawing, True)
oAsmDrawingName = Left(oAsmDrawingDoc.DisplayName, Len(oAsmDrawingDoc.DisplayName) -3)
'write out the PDF for the Top Level Assembly Drawing file
On Error Resume Next ' if PDF exists and is open or read only, resume next
 'Set the PDF target file name
oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oAsmDrawingName &amp;amp; "pdf"
'Write out the PDF
Call PDFAddIn.SaveCopyAs(oAsmDrawingDoc, oContext, oOptions, oDataMedium)
'Close the top level drawing
oAsmDrawingDoc.Close
'- - - - - - - - - - - - -

MessageBox.Show("New Files Created in: " &amp;amp; vbLf &amp;amp; oFolder, "iLogic")
'open the folder where the new ffiles are saved
Shell("explorer.exe " &amp;amp; oFolder,vbNormalFocus)&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Feb 2018 07:55:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7798226#M80827</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-22T07:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7798253#M80828</link>
      <description>could you please show an example of the folder structure.&lt;BR /&gt;Like:&lt;BR /&gt;&lt;BR /&gt;Assembly Folder.&lt;BR /&gt;|_Drawing Folder</description>
      <pubDate>Thu, 22 Feb 2018 08:08:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7798253#M80828</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-22T08:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7799270#M80846</link>
      <description>&lt;P&gt;Hello Brandeneurope,&lt;/P&gt;&lt;P&gt;our folder structure is "normaly" like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;workspace&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2D-Ableitung&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ABS-Teile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Blechteile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Einzelteile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Rohrleitungen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Zusammenbau&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This are the folders that we have in the standard, but &lt;STRONG&gt;we can create new folders in each project&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;If it is possible,&amp;nbsp;look through&amp;nbsp;all folders below the workspace?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Regards Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 12:30:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7799270#M80846</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-22T12:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7799377#M80849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to know where the drawings are stored.&lt;/P&gt;&lt;P&gt;ie in the same folder as the model files or a specific folder above or below, then how is the folder structure look like?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 13:08:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7799377#M80849</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-22T13:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7799456#M80855</link>
      <description>&lt;P&gt;Hi Brandeneurope,&lt;/P&gt;&lt;P&gt;the drawings are stored in the folder&amp;nbsp;"2D-Ableitung".&lt;/P&gt;&lt;P&gt;The Folder structure looks like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;workspace&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2D-Ableitung&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ABS-Teile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Blechteile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Einzelteile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Rohrleitungen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Zusammenbau&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Martin&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 13:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7799456#M80855</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-22T13:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7808287#M81038</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3445343"&gt;@martinhoos&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could please provide sample assembly, parts and associated drawings to test iLogic code?&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;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 09:32:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7808287#M81038</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-02-26T09:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7808316#M81040</link>
      <description>&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;thank you for your reply. I send&amp;nbsp;short sample data.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 09:43:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7808316#M81040</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-26T09:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7811472#M81090</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3445343"&gt;@martinhoos&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With samples, understood the folder structures. Try the below&amp;nbsp;modified iLogic code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()
	Dim oAsmDoc As AssemblyDocument
	oAsmDoc = ThisApplication.ActiveDocument
	oAsmName = Left(oAsmDoc.DisplayName, Len(oAsmDoc.DisplayName) - 4)
	

	'check that the active document is an assembly file
	If ThisApplication.ActiveDocument.DocumentType &amp;lt;&amp;gt; kAssemblyDocumentObject Then
	MessageBox.Show("Please run this rule from the assembly file.", "iLogic")
	Exit Sub
	End If
	'get user input
	If MessageBox.Show ( _
	"This will create a PDF file for all of the asembly components that have drawings files." _
	&amp;amp; vbLf &amp;amp; "This rule expects that the drawing file shares the same name and location as the component." _
	&amp;amp; vbLf &amp;amp; " " _
	&amp;amp; vbLf &amp;amp; "Are you sure you want to create PDF Drawings for all of the assembly components?" _
	&amp;amp; vbLf &amp;amp; "This could take a while.", "iLogic - Batch Output PDFs ",MessageBoxButtons.YesNo) = vbNo Then
	Exit Sub
	End If
	Dim PDFAddIn As TranslatorAddIn
	Dim oContext As TranslationContext
	Dim oOptions As NameValueMap
	Dim oDataMedium As DataMedium
	Call ConfigurePDFAddinSettings(PDFAddIn, oContext, oOptions, oDataMedium)
	
	oPath = ThisDoc.Path
	oFolder = oPath &amp;amp; "\" &amp;amp; oAsmName &amp;amp; " PDF Files\"
	oPath = System.IO.Directory.GetParent(oPath).FullName 		
	
	If System.IO.Directory.Exists(oFolder) = False Then
		System.IO.Directory.CreateDirectory(oFolder)
	End If
	'- - - - - - - - - - - - -Component Drawings - - - - - - - - - - - -'look at the files referenced by the assembly
	Dim oRefDoc As Document
	Dim fileName As String 
	' For Each oRefDoc In oRefDocs = oAsmDoc.AllReferencedDocuments
	For Each oRefDoc In oAsmDoc.AllReferencedDocuments
		oFileName = Left(oRefDoc.DisplayName, Len(oRefDoc.DisplayName) - 3)		
		
		For Each fileName In System.IO.Directory.GetFiles(oPath, "*.idw",System.IO.SearchOption.AllDirectories)
			If fileName.EndsWith(oFileName + "idw") = True Then
				Dim oDrawDoc As DrawingDocument
				oDrawDoc = ThisApplication.Documents.Open(fileName, True)
				On Error Resume Next
				oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp; "pdf"
				Call PDFAddIn.SaveCopyAs(oDrawDoc, oContext, oOptions, oDataMedium)
				oDrawDoc.Close
				On Error GoTo 0
			End If
		Next		
	Next
	'- - - - - - - - - - - - -
	'- - - - - - - - - - - - -Top Level Drawing - - - - - - - - - - - -
	Dim oAsmDrawingName As String = ThisDoc.FileName(False) 'without extension	

	For Each fileName In System.IO.Directory.GetFiles(oPath, "*.idw", System.IO.SearchOption.AllDirectories)	

		If fileName.EndsWith(oAsmDrawingName + ".idw") = True Then
			Dim oAsmDrawingDoc As DrawingDocument
			oAsmDrawingDoc = ThisApplication.Documents.Open(fileName, True)				
			On Error Resume Next
			oDataMedium.FileName = oFolder &amp;amp; oAsmDrawingName &amp;amp; ".pdf"		

			Call PDFAddIn.SaveCopyAs(oAsmDrawingDoc, oContext, oOptions, oDataMedium)
			oAsmDrawingDoc.Close
			On Error GoTo 0
		End If
	Next	
	MessageBox.Show("New Files Created in: " &amp;amp; vbLf &amp;amp; oFolder, "iLogic")
	Shell("explorer.exe " &amp;amp; oFolder,vbNormalFocus)
End Sub

Sub ConfigurePDFAddinSettings(ByRef PDFAddIn As TranslatorAddIn, ByRef oContext As TranslationContext, ByRef oOptions As NameValueMap, ByRef oDataMedium As DataMedium)
	oPath = ThisDoc.Path
	PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")
	oContext = ThisApplication.TransientObjects.CreateTranslationContext
	oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
	oOptions = ThisApplication.TransientObjects.CreateNameValueMap
	oOptions.Value("All_Color_AS_Black") = 1
	oOptions.Value("Remove_Line_Weights") = 0
	oOptions.Value("Vector_Resolution") = 400
	oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
	oOptions.Value("Custom_Begin_Sheet") = 1
	oOptions.Value("Custom_End_Sheet") = 1
	oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
End Sub
&lt;/PRE&gt;
&lt;P&gt;Please feel free to contact if there is&amp;nbsp;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>Tue, 27 Feb 2018 07:10:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7811472#M81090</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-02-27T07:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7814650#M81148</link>
      <description>&lt;P&gt;Hello Chandra,&lt;/P&gt;&lt;P&gt;thanks for your reply - your code is great.&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 05:53:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7814650#M81148</guid>
      <dc:creator>martinhoos</dc:creator>
      <dc:date>2018-02-28T05:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7942229#M83416</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify your code to work how we need it to.&lt;/P&gt;&lt;P&gt;I am having a couple issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have tried to append the rev number to the pdf filename - for some reason, it is appending the rev number of the assembly to all of the pdfs&lt;/LI&gt;&lt;LI&gt;It is leaving drawings of the assembly and the sub assemblies open after it is complete&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I am sure it is something simple. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have done so far:&lt;/P&gt;&lt;PRE&gt;Sub Main()
	Dim oDoc As Document
    oDoc = ThisDoc.Document
    oDocName = System.IO.Path.GetDirectoryName(oDoc.FullFileName) &amp;amp; "\" &amp;amp; System.IO.Path.GetFileNameWithoutExtension(oDoc.FullFileName)
    
    If Not (oDoc.DocumentType = kAssemblyDocumentObject Or oDoc.DocumentType = kDrawingDocumentObject) Then
        MessageBox.Show("Please run this rule from the assembly or assembly drawing file.", "iLogic")
        Exit Sub
    End If
	
	'get user input
	If MessageBox.Show ( _
	"This will create a PDF file for all of the asembly components that have drawings files." _
	&amp;amp; vbLf &amp;amp; "This rule expects that the drawing file shares the same name and location as the component." _
	&amp;amp; vbLf &amp;amp; " " _
	&amp;amp; vbLf &amp;amp; "Are you sure you want to create PDF Drawings for all of the assembly components?" _
	&amp;amp; vbLf &amp;amp; "This could take a while.", "iLogic - Batch Output PDFs ",MessageBoxButtons.YesNo) = vbNo Then
	Exit Sub
	End If
	Dim PDFAddIn As TranslatorAddIn
	Dim oContext As TranslationContext
	Dim oOptions As NameValueMap
	Dim oDataMedium As DataMedium
	Call ConfigurePDFAddinSettings(PDFAddIn, oContext, oOptions, oDataMedium)
	
	oPath = ThisDoc.Path
	oFolder = "C:\PDF" &amp;amp; "\" &amp;amp; oAsmName &amp;amp; " PDF Files\"
	oPath = System.IO.Directory.GetParent(oPath).FullName 		
	
	If System.IO.Directory.Exists(oFolder) = False Then
		System.IO.Directory.CreateDirectory(oFolder)
	End If
	
	'- - - - - - - - - - - - -Component Drawings - - - - - - - - - - - -'look at the files referenced by the assembly
	Dim oRefDoc As Document
	Dim fileName As String
	
	For Each oRefDoc In oDoc.AllReferencedDocuments
	oFileName = Left(oRefDoc.DisplayName, Len(oRefDoc.DisplayName) - 4)		
		
		For Each fileName In System.IO.Directory.GetFiles(oPath, "*.idw",System.IO.SearchOption.AllDirectories)
			If fileName.EndsWith(oFileName + ".idw") = True Then
				Dim oDrawDoc As DrawingDocument
				oDrawDoc = ThisApplication.Documents.Open(fileName, True)				
				On Error Resume Next
				oRevNum = iProperties.Value("Project", "Revision Number")
				oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp; "-R" &amp;amp; oRevNum &amp;amp; ".pdf"
				Call PDFAddIn.SaveCopyAs(oDrawDoc, oContext, oOptions, oDataMedium)
				oDrawDoc.Close
				On Error GoTo 0
			End If
		Next		
	Next
	'- - - - - - - - - - - - -
	
	'- - - - - - - - - - - - -Top Level Drawing - - - - - - - - - - - -
	Dim oAsmDrawingName As String = ThisDoc.FileName(False) 'without extension	

	For Each fileName In System.IO.Directory.GetFiles(oPath, "*.idw", System.IO.SearchOption.AllDirectories)	

		If fileName.EndsWith(oAsmDrawingName + ".idw") = True Then
			Dim oAsmDrawingDoc As DrawingDocument
			oAsmDrawingDoc = ThisApplication.Documents.Open(fileName, True)
			oAsmRevNum = iProperties.Value("Project", "Revision Number")
			On Error Resume Next
			oDataMedium.FileName = oFolder &amp;amp; oAsmDrawingName &amp;amp; "-R" &amp;amp; oAsmRevNum &amp;amp; ".pdf"		

			Call PDFAddIn.SaveCopyAs(oAsmDrawingDoc, oContext, oOptions, oDataMedium)
			oAsmDrawingDoc.Close
			On Error GoTo 0
		End If
	Next	
	MessageBox.Show("New Files Created in: " &amp;amp; vbLf &amp;amp; oFolder, "iLogic")
	Shell("explorer.exe " &amp;amp; oFolder,vbNormalFocus)
End Sub

Sub ConfigurePDFAddinSettings(ByRef PDFAddIn As TranslatorAddIn, ByRef oContext As TranslationContext, ByRef oOptions As NameValueMap, ByRef oDataMedium As DataMedium)
	oPath = ThisDoc.Path
	PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")
	oContext = ThisApplication.TransientObjects.CreateTranslationContext
	oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
	oOptions = ThisApplication.TransientObjects.CreateNameValueMap
	oOptions.Value("All_Color_AS_Black") = 0
	oOptions.Value("Remove_Line_Weights") = 0
	oOptions.Value("Vector_Resolution") = 400
	oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
	'oOptions.Value("Custom_Begin_Sheet") = 1
	'oOptions.Value("Custom_End_Sheet") = 1
	oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
End Sub&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Apr 2018 16:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7942229#M83416</guid>
      <dc:creator>cmcconnell</dc:creator>
      <dc:date>2018-04-18T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7942503#M83422</link>
      <description>&lt;P&gt;1. The "basic" iProperty call only corresponds to the DOCUMENT of which the rule is run from. You need to add in a document identifier to get it to access iProperties from another file (only valid for files that are children of the current document).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;iproperties.Value(System.IO.Path.GetFileName(filename), "Project", "Part Number")&lt;/PRE&gt;
&lt;P&gt;2. You should probably remove the error catching surrounding the iProperties/save commands.&lt;/P&gt;
&lt;P&gt;2. Use Application.SilentOperation = True at the start of the code, and Application.SilentOperation = False at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()
	Dim oDoc As Document
    oDoc = ThisDoc.Document
    oDocName = System.IO.Path.GetDirectoryName(oDoc.FullFileName) &amp;amp; "\" &amp;amp; System.IO.Path.GetFileNameWithoutExtension(oDoc.FullFileName)
    
    If Not (oDoc.DocumentType = kAssemblyDocumentObject Or oDoc.DocumentType = kDrawingDocumentObject) Then
        MessageBox.Show("Please run this rule from the assembly or assembly drawing file.", "iLogic")
        Exit Sub
    End If
 &lt;BR /&gt;&lt;STRONG&gt;    Application.SilentOperation = True&lt;/STRONG&gt;
	'get user input
	If MessageBox.Show ( _
	"This will create a PDF file for all of the asembly components that have drawings files." _
	&amp;amp; vbLf &amp;amp; "This rule expects that the drawing file shares the same name and location as the component." _
	&amp;amp; vbLf &amp;amp; " " _
	&amp;amp; vbLf &amp;amp; "Are you sure you want to create PDF Drawings for all of the assembly components?" _
	&amp;amp; vbLf &amp;amp; "This could take a while.", "iLogic - Batch Output PDFs ",MessageBoxButtons.YesNo) = vbNo Then
	Exit Sub
	End If
	Dim PDFAddIn As TranslatorAddIn
	Dim oContext As TranslationContext
	Dim oOptions As NameValueMap
	Dim oDataMedium As DataMedium
	Call ConfigurePDFAddinSettings(PDFAddIn, oContext, oOptions, oDataMedium)
	
	oPath = ThisDoc.Path
	oFolder = "C:\PDF" &amp;amp; "\" &amp;amp; oAsmName &amp;amp; " PDF Files\"
	oPath = System.IO.Directory.GetParent(oPath).FullName 		
	
	If System.IO.Directory.Exists(oFolder) = False Then
		System.IO.Directory.CreateDirectory(oFolder)
	End If
	
	'- - - - - - - - - - - - -Component Drawings - - - - - - - - - - - -'look at the files referenced by the assembly
	Dim oRefDoc As Document
	Dim fileName As String
	
	For Each oRefDoc In oDoc.AllReferencedDocuments
	oFileName = Left(oRefDoc.DisplayName, Len(oRefDoc.DisplayName) - 4)		
		
		For Each fileName In System.IO.Directory.GetFiles(oPath, "*.idw",System.IO.SearchOption.AllDirectories)
			If fileName.EndsWith(oFileName + ".idw") = True Then
				Dim oDrawDoc As DrawingDocument
				oDrawDoc = ThisApplication.Documents.Open(fileName, True)				
				oRevNum = iProperties.Value(System.IO.Path.GetFileName(fileName), "Project", "Revision Number")
				oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp; "-R" &amp;amp; oRevNum &amp;amp; ".pdf"
				Call PDFAddIn.SaveCopyAs(oDrawDoc, oContext, oOptions, oDataMedium)
				oDrawDoc.Close(True)
			End If
		Next		
	Next
	'- - - - - - - - - - - - -
	
	'- - - - - - - - - - - - -Top Level Drawing - - - - - - - - - - - -
	Dim oAsmDrawingName As String = ThisDoc.FileName(False) 'without extension	

	For Each fileName In System.IO.Directory.GetFiles(oPath, "*.idw", System.IO.SearchOption.AllDirectories)	

		If fileName.EndsWith(oAsmDrawingName + ".idw") = True Then
			Dim oAsmDrawingDoc As DrawingDocument
			oAsmDrawingDoc = ThisApplication.Documents.Open(fileName, True)
			oAsmRevNum = iProperties.Value("Project", "Revision Number")
			oDataMedium.FileName = oFolder &amp;amp; oAsmDrawingName &amp;amp; "-R" &amp;amp; oAsmRevNum &amp;amp; ".pdf"		
			Call PDFAddIn.SaveCopyAs(oAsmDrawingDoc, oContext, oOptions, oDataMedium)
			&lt;STRONG&gt;oAsmDrawingDoc.Close(True)&lt;/STRONG&gt;
		End If
	Next	&lt;BR /&gt;        &lt;BR /&gt;        &lt;STRONG&gt;Application.SilentOperation = False&lt;/STRONG&gt;
	MessageBox.Show("New Files Created in: " &amp;amp; vbLf &amp;amp; oFolder, "iLogic")
	Shell("explorer.exe " &amp;amp; oFolder,vbNormalFocus)
End Sub

Sub ConfigurePDFAddinSettings(ByRef PDFAddIn As TranslatorAddIn, ByRef oContext As TranslationContext, ByRef oOptions As NameValueMap, ByRef oDataMedium As DataMedium)
	oPath = ThisDoc.Path
	PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")
	oContext = ThisApplication.TransientObjects.CreateTranslationContext
	oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
	oOptions = ThisApplication.TransientObjects.CreateNameValueMap
	oOptions.Value("All_Color_AS_Black") = 0
	oOptions.Value("Remove_Line_Weights") = 0
	oOptions.Value("Vector_Resolution") = 400
	oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
	'oOptions.Value("Custom_Begin_Sheet") = 1
	'oOptions.Value("Custom_End_Sheet") = 1
	oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 18:24:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7942503#M83422</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-04-18T18:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7943117#M83436</link>
      <description>&lt;P&gt;Thanks for the response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are speaking a bit over my head. Here is what I did:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I modified the line you provided for my oRevNum variable and placed that in the component drawings area. It makes oRevNum = nothing. SO I end up with filename-R.pdf.&lt;/LI&gt;&lt;LI&gt;This is over my head. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@F462EEC827775DA92CB03B7FC147D389/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/LI&gt;&lt;LI&gt;When I put theses 2 lines in, where you suggest, I get an error when I save the rule:&amp;nbsp; &lt;EM&gt;'Application' is ambiguous, imported from the namespaces or types 'Inventor, System.Windows.Forms'.&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Adding (true) to the close operations seems to have fixed the leaving drawings open issue.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is what my code looks like now:&lt;/P&gt;&lt;PRE&gt;Sub Main()
	Dim oDoc As Document
    oDoc = ThisDoc.Document
    oDocName = System.IO.Path.GetDirectoryName(oDoc.FullFileName) &amp;amp; "\" &amp;amp; System.IO.Path.GetFileNameWithoutExtension(oDoc.FullFileName)
    
    If Not (oDoc.DocumentType = kAssemblyDocumentObject Or oDoc.DocumentType = kDrawingDocumentObject) Then
        MessageBox.Show("Please run this rule from the assembly or assembly drawing file.", "iLogic")
        Exit Sub
    End If
	
	&lt;STRONG&gt;Application.SilentOperation = True&lt;/STRONG&gt;
		'get user input
		If MessageBox.Show ( _
		"This will create a PDF file for all of the assembly components that have drawing files." _
		&amp;amp; vbLf &amp;amp; "This rule expects that the drawing file shares the same name and location as the component." _
		&amp;amp; vbLf &amp;amp; " " _
		&amp;amp; vbLf &amp;amp; "Are you sure you want to create PDF Drawings for all of the assembly components?" _
		&amp;amp; vbLf &amp;amp; "This could take a while.", "iLogic - Batch Output PDFs ",MessageBoxButtons.YesNo) = vbNo Then
		Exit Sub
		End If
		Dim PDFAddIn As TranslatorAddIn
		Dim oContext As TranslationContext
		Dim oOptions As NameValueMap
		Dim oDataMedium As DataMedium
		Call ConfigurePDFAddinSettings(PDFAddIn, oContext, oOptions, oDataMedium)
	
		oPath = ThisDoc.Path
		oFolder = "C:\PDF" &amp;amp; "\" &amp;amp; oAsmName &amp;amp; " PDF Files\"
		oPath = System.IO.Directory.GetParent(oPath).FullName 		
		
		If System.IO.Directory.Exists(oFolder) = False Then
			System.IO.Directory.CreateDirectory(oFolder)
		End If
		
		'- - - - - - - - - - - - -Component Drawings - - - - - - - - - - - -'look at the files referenced by the assembly
		Dim oRefDoc As Document
		Dim fileName As String
		
		For Each oRefDoc In oDoc.AllReferencedDocuments
		oFileName = Left(oRefDoc.DisplayName, Len(oRefDoc.DisplayName) - 4)		
			
			For Each fileName In System.IO.Directory.GetFiles(oPath, "*.idw",System.IO.SearchOption.AllDirectories)
				If fileName.EndsWith(oFileName + ".idw") = True Then
					Dim oDrawDoc As DrawingDocument
					oDrawDoc = ThisApplication.Documents.Open(fileName, True)				
					On Error Resume Next
					&lt;STRONG&gt;oRevNum = iProperties.Value(System.IO.Path.GetFileName(fileName), "Project", "Revision Number")&lt;/STRONG&gt;
					oDataMedium.FileName = oFolder &amp;amp; "\" &amp;amp; oFileName &amp;amp; "-R" &amp;amp; oRevNum &amp;amp; ".pdf"
					Call PDFAddIn.SaveCopyAs(oDrawDoc, oContext, oOptions, oDataMedium)
					&lt;STRONG&gt;oDrawDoc.Close(True)&lt;/STRONG&gt;
					On Error GoTo 0
				End If
			Next		
		Next
		'- - - - - - - - - - - - -
		
		'- - - - - - - - - - - - -Top Level Drawing - - - - - - - - - - - -
		Dim oAsmDrawingName As String = ThisDoc.FileName(False) 'without extension	

		For Each fileName In System.IO.Directory.GetFiles(oPath, "*.idw", System.IO.SearchOption.AllDirectories)	

			If fileName.EndsWith(oAsmDrawingName + ".idw") = True Then
				Dim oAsmDrawingDoc As DrawingDocument
				oAsmDrawingDoc = ThisApplication.Documents.Open(fileName, True)
				oAsmRevNum = iProperties.Value("Project", "Revision Number")
				On Error Resume Next
				oDataMedium.FileName = oFolder &amp;amp; oAsmDrawingName &amp;amp; "-R" &amp;amp; oAsmRevNum &amp;amp; ".pdf"		

				Call PDFAddIn.SaveCopyAs(oAsmDrawingDoc, oContext, oOptions, oDataMedium)
				&lt;STRONG&gt;oAsmDrawingDoc.Close(True)&lt;/STRONG&gt;
				On Error GoTo 0
			End If
		Next	
	
	&lt;STRONG&gt;Application.SilentOperation = False&lt;/STRONG&gt;
	MessageBox.Show("New Files Created in: " &amp;amp; vbLf &amp;amp; oFolder, "iLogic")
	Shell("explorer.exe " &amp;amp; oFolder,vbNormalFocus)
End Sub

Sub ConfigurePDFAddinSettings(ByRef PDFAddIn As TranslatorAddIn, ByRef oContext As TranslationContext, ByRef oOptions As NameValueMap, ByRef oDataMedium As DataMedium)
	oPath = ThisDoc.Path
	PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")
	oContext = ThisApplication.TransientObjects.CreateTranslationContext
	oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
	oOptions = ThisApplication.TransientObjects.CreateNameValueMap
	oOptions.Value("All_Color_AS_Black") = 0
	oOptions.Value("Remove_Line_Weights") = 0
	oOptions.Value("Vector_Resolution") = 400
	oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
	'oOptions.Value("Custom_Begin_Sheet") = 1
	'oOptions.Value("Custom_End_Sheet") = 1
	oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
End Sub

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 22:20:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7943117#M83436</guid>
      <dc:creator>cmcconnell</dc:creator>
      <dc:date>2018-04-18T22:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7946839#M83495</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this for the Rev number problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;oRevNum = oDrawDoc.PropertySets.Item("Inventor Summary Information").Item("Revision Number").Value&lt;/PRE&gt;&lt;PRE&gt;oAsmRevNum = oAsmDrawingDoc.PropertySets.Item("Inventor Summary Information").Item("Revision Number").Value&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Apr 2018 05:02:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7946839#M83495</guid>
      <dc:creator>Jesper_S</dc:creator>
      <dc:date>2018-04-20T05:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7948313#M83515</link>
      <description>&lt;P&gt;That seems to have cured it! thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 15:28:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/7948313#M83515</guid>
      <dc:creator>corym</dc:creator>
      <dc:date>2018-04-20T15:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/8982351#M100632</link>
      <description>&lt;P&gt;Hi. How can I make this work in Inventor 2015? I guess that add-in&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;is not found because the rule creates folders but no PDFs. I usually just use the native Inventor export to pdf button, which seems to have the same options as the one referenced in the rule, but not sure if it's a different add-in. I did a google search for that ID to try to find out what add-in that is, but all I found were more rules referring to the same add-in.&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:31:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/8982351#M100632</guid>
      <dc:creator>SometimesInventorMakesMeAngry</dc:creator>
      <dc:date>2019-08-22T20:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic batch pdf from assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/8989062#M100740</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6881685"&gt;@SometimesInventorMakesMeAngry&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for inconvenience,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To test the scenario, Inventor 2015 is unavailable in my system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 05:09:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-batch-pdf-from-assembly/m-p/8989062#M100740</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2019-08-27T05:09:43Z</dc:date>
    </item>
  </channel>
</rss>

