<?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 Export Excel file with iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960505#M23673</link>
    <description>&lt;P&gt;I want the product codes of the products included in the assembly to be sorted in excel according to the material properties. At the same time, it would be perfect if it also shows how many quantity were used in the assembly. For example, the photo below.&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 19:40:05 GMT</pubDate>
    <dc:creator>byzkc54</dc:creator>
    <dc:date>2023-05-12T19:40:05Z</dc:date>
    <item>
      <title>Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960505#M23673</link>
      <description>&lt;P&gt;I want the product codes of the products included in the assembly to be sorted in excel according to the material properties. At the same time, it would be perfect if it also shows how many quantity were used in the assembly. For example, the photo below.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 19:40:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960505#M23673</guid>
      <dc:creator>byzkc54</dc:creator>
      <dc:date>2023-05-12T19:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960509#M23674</link>
      <description>Is Export the Bill Of Material not what you need here?</description>
      <pubDate>Fri, 12 May 2023 19:43:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960509#M23674</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2023-05-12T19:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960529#M23675</link>
      <description>&lt;P&gt;yes, I forgot, I'm sorry. I just wanted to export materials that are sheet metal.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 19:54:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960529#M23675</guid>
      <dc:creator>byzkc54</dc:creator>
      <dc:date>2023-05-12T19:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960613#M23676</link>
      <description>In principle you need an filtered (sheetmetal) export of the bill of material, correct?</description>
      <pubDate>Fri, 12 May 2023 20:46:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960613#M23676</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2023-05-12T20:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960617#M23677</link>
      <description>yes, only sheet metal</description>
      <pubDate>Fri, 12 May 2023 20:48:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11960617#M23677</guid>
      <dc:creator>byzkc54</dc:creator>
      <dc:date>2023-05-12T20:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961565#M23678</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13649602"&gt;@byzkc54&lt;/a&gt;&amp;nbsp;.&amp;nbsp;I hope this is exactly what you wanted. Please check if everything works.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub main
	Dim oDoc As Document = ThisApplication.ActiveDocument
	Dim oUOM As UnitsOfMeasure = ThisApplication.UnitsOfMeasure
	If TypeOf oDoc Is AssemblyDocument Then
		Dim oADoc As AssemblyDocument = oDoc
		Dim sPath As String = System.IO.Path.GetDirectoryName(oADoc.FullFileName)
		Dim sName As String = "Sheet Metal List"
		Dim sFullNameExcel As String = sPath &amp;amp; "\" &amp;amp; sName &amp;amp; ".xlsx"
		Dim sListMaterial As New List(Of String)
		sListMaterial.AddRange(GetMaterialFromAssembly(oADoc.AllReferencedDocuments, oUOM))
		If sListMaterial.Count &amp;lt;&amp;gt; 0 Then
			sListMaterial.Sort()
			Dim oADef As AssemblyComponentDefinition = oADoc.ComponentDefinition
			Dim oBOMView As BOMView = GetBOM_OnlyParts(oADef.BOM)
			If oBOMView Is Nothing Then Exit Sub
			Dim sNameAndQty As New List(Of String)
			oExcel = CreateObject("Excel.Application")
			If Not System.IO.File.Exists(sFullNameExcel) Then
				oExcel.Visible = False
				excelWorkbook = oExcel.Workbooks.Add
				ExcelSheet = excelWorkbook.Worksheets(1)
				ExcelSheet.Name = "Sheet1"
				excelWorkbook.SaveAs(sFullNameExcel)
				excelWorkbook.Close
				oExcel.Quit
			End If
			excelWorkbook = oExcel.Workbooks.Open(sFullNameExcel)
			oSheet = excelWorkbook.Worksheets(1)
			oSheet.Cells.ClearContents
			For iMater As Integer = 1 To sListMaterial.Count Step 1
				oSheet.Cells(1, iMater).Value = sListMaterial.Item(iMater - 1)
				sNameAndQty.AddRange(GetFullNameAndQty(oBOMView.BOMRows, sListMaterial.Item(iMater-1), oUOM))
				sNameAndQty.Sort()
				If sNameAndQty.Count &amp;lt;&amp;gt; 0 Then
					For iName As Integer = 1 To sNameAndQty.Count Step 1
						oSheet.Cells(iName+1, iMater).Value = sNameAndQty.Item(iName-1)
					Next iName
				End If
				sNameAndQty.Clear()
			Next iMater
			oSheet.Columns.AutoFit()
			excelWorkbook.Save()
			excelWorkbook.Close()
		End If
	Else
		MessageBox.Show("Active document is not AssemblyDocument", "Error!",MessageBoxButtons.OK,MessageBoxIcon.Error)
	End If
End Sub

Private Function GetBOM_OnlyParts(oBOM As BOM) As BOMView
	Dim sLanguageBOM As String
	If Not oBOM.PartsOnlyViewEnabled Then oBOM.PartsOnlyViewEnabled = True
	Select Case ThisApplication.LanguageCode
	Case "en-US"
		sLanguageBOM = "Parts Only"
	End Select
	Return oBOM.BOMViews.Item(sLanguageBOM)
End Function

Private Function GetFullNameAndQty(ByVal oBOMRows As BOMRowsEnumerator, ByVal sMatName As String, ByVal oUOM As UnitsOfMeasure) As List(Of String)
	Dim sNameAndQty As New List(Of String)
	For Each oRow As BOMRow In oBOMRows
		If TypeOf oRow.ComponentDefinitions.Item(1) Is SheetMetalComponentDefinition Then
			Dim oSheetDef As SheetMetalComponentDefinition = oRow.ComponentDefinitions.Item(1)
			Dim oPartDoc As PartDocument = oSheetDef.Document
			Dim sPartNumb As String = oPartDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value
			Dim sMaterial As String = oPartDoc.ActiveMaterial.DisplayName
			Dim dThick As Double = oUOM.ConvertUnits(oSheetDef.Thickness.Value, "cm", "mm")
			If sMaterial &amp;amp; " " &amp;amp; dThick &amp;amp; "mm" = sMatName Then
				sNameAndQty.Add("6-01" &amp;amp; sPartNumb &amp;amp; "_" &amp;amp; oRow.ItemQuantity &amp;amp; "Qty")
			End If
		End If
	Next
	Return sNameAndQty
End Function

Private Function GetMaterialFromAssembly(ByVal oRefDocs As DocumentsEnumerator, ByVal oUOM As UnitsOfMeasure) As List(Of String)
	Dim sListMaterial, sListFinal As New List(Of String)
	For Each oRefDoc As Document In oRefDocs
		If TypeOf oRefDoc Is PartDocument Then
			Dim oPartDoc As PartDocument = oRefDoc
			If TypeOf oPartDoc.ComponentDefinition Is SheetMetalComponentDefinition Then
				Dim oSheetDef As SheetMetalComponentDefinition = oPartDoc.ComponentDefinition
				Dim sMaterial As String = oPartDoc.ActiveMaterial.DisplayName
				Dim dThick As Double = oUOM.ConvertUnits(oSheetDef.Thickness.Value, "cm", "mm")
				If Not sListMaterial.Contains(sMaterial &amp;amp; " " &amp;amp; dThick &amp;amp; "mm") Then
					sListMaterial.Add(sMaterial &amp;amp; " " &amp;amp; dThick &amp;amp; "mm")
				End If
			End If
		End If
	Next
	Return sListMaterial
End Function&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 14:02:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961565#M23678</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2023-05-13T14:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961610#M23679</link>
      <description>Thank you Mr Andrii.&lt;BR /&gt;Your code is working perfectly. But i just have one more question. I wonder if you can make it work when there is a suppress part in the assembly?&lt;BR /&gt;Because when I have a suppress part in my assembly, your code does not run.</description>
      <pubDate>Sat, 13 May 2023 14:43:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961610#M23679</guid>
      <dc:creator>byzkc54</dc:creator>
      <dc:date>2023-05-13T14:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961629#M23680</link>
      <description>&lt;P&gt;No problem, try this code:&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub main
	Dim oDoc As Document = ThisApplication.ActiveDocument
	Dim oUOM As UnitsOfMeasure = ThisApplication.UnitsOfMeasure
	If TypeOf oDoc Is AssemblyDocument Then
		Dim oADoc As AssemblyDocument = oDoc
		Dim sPath As String = System.IO.Path.GetDirectoryName(oADoc.FullFileName)
		Dim sName As String = "Sheet Metal List"
		Dim sFullNameExcel As String = sPath &amp;amp; "\" &amp;amp; sName &amp;amp; ".xlsx"
		Dim sListMaterial As New List(Of String)
		sListMaterial.AddRange(GetMaterialFromAssembly(oADoc.AllReferencedDocuments, oUOM))
		If sListMaterial.Count &amp;lt;&amp;gt; 0 Then
			sListMaterial.Sort()
			Dim oADef As AssemblyComponentDefinition = oADoc.ComponentDefinition
			Dim oBOMView As BOMView = GetBOM_OnlyParts(oADef.BOM)
			If oBOMView Is Nothing Then Exit Sub
			Dim sNameAndQty As New List(Of String)
			oExcel = CreateObject("Excel.Application")
			If Not System.IO.File.Exists(sFullNameExcel) Then
				oExcel.Visible = False
				excelWorkbook = oExcel.Workbooks.Add
				ExcelSheet = excelWorkbook.Worksheets(1)
				ExcelSheet.Name = "Sheet1"
				excelWorkbook.SaveAs(sFullNameExcel)
				excelWorkbook.Close
				oExcel.Quit
			End If
			excelWorkbook = oExcel.Workbooks.Open(sFullNameExcel)
			oSheet = excelWorkbook.Worksheets(1)
			oSheet.Cells.ClearContents
			For iMater As Integer = 1 To sListMaterial.Count Step 1
				oSheet.Cells(1, iMater).Value = sListMaterial.Item(iMater - 1)
				sNameAndQty.AddRange(GetFullNameAndQty(oBOMView.BOMRows, sListMaterial.Item(iMater-1), oUOM))
				sNameAndQty.Sort()
				If sNameAndQty.Count &amp;lt;&amp;gt; 0 Then
					For iName As Integer = 1 To sNameAndQty.Count Step 1
						oSheet.Cells(iName+1, iMater).Value = sNameAndQty.Item(iName-1)
					Next iName
				End If
				sNameAndQty.Clear()
			Next iMater
			oSheet.Columns.AutoFit()
			excelWorkbook.Save()
			excelWorkbook.Close()
		End If
	Else
		MessageBox.Show("Active document is not AssemblyDocument", "Error!",MessageBoxButtons.OK,MessageBoxIcon.Error)
	End If
End Sub

Private Function GetBOM_OnlyParts(oBOM As BOM) As BOMView
	Dim sLanguageBOM As String
	If Not oBOM.PartsOnlyViewEnabled Then oBOM.PartsOnlyViewEnabled = True
	Select Case ThisApplication.LanguageCode
	Case "en-US"
		sLanguageBOM = "Parts Only"
	End Select
	Return oBOM.BOMViews.Item(sLanguageBOM)
End Function

Private Function GetFullNameAndQty(ByVal oBOMRows As BOMRowsEnumerator, ByVal sMatName As String, ByVal oUOM As UnitsOfMeasure) As List(Of String)
	Dim sNameAndQty As New List(Of String)
	For Each oRow As BOMRow In oBOMRows
		If oRow.ItemQuantity &amp;lt;&amp;gt; 0 Then
			If TypeOf oRow.ComponentDefinitions.Item(1) Is SheetMetalComponentDefinition Then
				Dim oSheetDef As SheetMetalComponentDefinition = oRow.ComponentDefinitions.Item(1)
				Dim oPartDoc As PartDocument = oSheetDef.Document
				Dim sPartNumb As String = oPartDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value
				Dim sMaterial As String = oPartDoc.ActiveMaterial.DisplayName
				Dim dThick As Double = oUOM.ConvertUnits(oSheetDef.Thickness.Value, "cm", "mm")
				If sMaterial &amp;amp; " " &amp;amp; dThick &amp;amp; "mm" = sMatName Then
					sNameAndQty.Add("6-01" &amp;amp; sPartNumb &amp;amp; "_" &amp;amp; oRow.ItemQuantity &amp;amp; "Qty")
				End If
			End If
		End if
	Next
	Return sNameAndQty
End Function

Private Function GetMaterialFromAssembly(ByVal oRefDocs As DocumentsEnumerator, ByVal oUOM As UnitsOfMeasure) As List(Of String)
	Dim sListMaterial, sListFinal As New List(Of String)
	For Each oRefDoc As Document In oRefDocs
		If TypeOf oRefDoc Is PartDocument Then
			Dim oPartDoc As PartDocument = oRefDoc
			If TypeOf oPartDoc.ComponentDefinition Is SheetMetalComponentDefinition Then
				Dim oSheetDef As SheetMetalComponentDefinition = oPartDoc.ComponentDefinition
				Dim sMaterial As String = oPartDoc.ActiveMaterial.DisplayName
				Dim dThick As Double = oUOM.ConvertUnits(oSheetDef.Thickness.Value, "cm", "mm")
				If Not sListMaterial.Contains(sMaterial &amp;amp; " " &amp;amp; dThick &amp;amp; "mm") Then
					sListMaterial.Add(sMaterial &amp;amp; " " &amp;amp; dThick &amp;amp; "mm")
				End If
			End If
		End If
	Next
	Return sListMaterial
End Function&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 13 May 2023 14:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961629#M23680</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2023-05-13T14:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961651#M23681</link>
      <description>&lt;P&gt;:((&amp;nbsp;&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="byzkc54_0-1683991196461.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1214060iB9A422F171A85FC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="byzkc54_0-1683991196461.png" alt="byzkc54_0-1683991196461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 15:20:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961651#M23681</guid>
      <dc:creator>byzkc54</dc:creator>
      <dc:date>2023-05-13T15:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel file with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961729#M23682</link>
      <description>&lt;P&gt;It looks like you are using an older version of 2022 Inventor. I hope the new changes will help you.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub main
	Dim oDoc As Document = ThisApplication.ActiveDocument
	Dim oUOM As UnitsOfMeasure = ThisApplication.UnitsOfMeasure
	If TypeOf oDoc Is AssemblyDocument Then
		Dim oADoc As AssemblyDocument = oDoc
		Dim sPath As String = System.IO.Path.GetDirectoryName(oADoc.FullFileName)
		Dim sName As String = "Sheet Metal List"
		Dim sFullNameExcel As String = sPath &amp;amp; "\" &amp;amp; sName &amp;amp; ".xlsx"
		Dim sListMaterial As New List(Of String)
		Dim oADef As AssemblyComponentDefinition = oADoc.ComponentDefinition
		Dim oBOMView As BOMView = GetBOM_OnlyParts(oADef.BOM)
		If oBOMView Is Nothing Then Exit Sub
		sListMaterial.AddRange(GetMaterialFromAssembly(oBOMView.BOMRows, oUOM))
		If sListMaterial.Count &amp;lt;&amp;gt; 0 Then
			sListMaterial.Sort()
			Dim sNameAndQty As New List(Of String)
			oExcel = CreateObject("Excel.Application")
			If Not System.IO.File.Exists(sFullNameExcel) Then
				oExcel.Visible = False
				excelWorkbook = oExcel.Workbooks.Add
				ExcelSheet = excelWorkbook.Worksheets(1)
				ExcelSheet.Name = "Sheet1"
				excelWorkbook.SaveAs(sFullNameExcel)
				excelWorkbook.Close
				oExcel.Quit
			End If
			excelWorkbook = oExcel.Workbooks.Open(sFullNameExcel)
			oSheet = excelWorkbook.Worksheets(1)
			oSheet.Cells.ClearContents
			For iMater As Integer = 1 To sListMaterial.Count Step 1
				oSheet.Cells(1, iMater).Value = sListMaterial.Item(iMater - 1)
				sNameAndQty.AddRange(GetFullNameAndQty(oBOMView.BOMRows, sListMaterial.Item(iMater-1), oUOM))
				sNameAndQty.Sort()
				If sNameAndQty.Count &amp;lt;&amp;gt; 0 Then
					For iName As Integer = 1 To sNameAndQty.Count Step 1
						oSheet.Cells(iName+1, iMater).Value = sNameAndQty.Item(iName-1)
					Next iName
				End If
				sNameAndQty.Clear()
			Next iMater
			oSheet.Columns.AutoFit()
			excelWorkbook.Save()
			excelWorkbook.Close()
		End If
	Else
		MessageBox.Show("Active document is not AssemblyDocument", "Error!",MessageBoxButtons.OK,MessageBoxIcon.Error)
	End If
End Sub

Private Function GetBOM_OnlyParts(oBOM As BOM) As BOMView
	Dim sLanguageBOM As String
	If Not oBOM.PartsOnlyViewEnabled Then oBOM.PartsOnlyViewEnabled = True
	Select Case ThisApplication.LanguageCode
	Case "en-US"
		sLanguageBOM = "Parts Only"
	End Select
	Return oBOM.BOMViews.Item(sLanguageBOM)
End Function

Private Function GetFullNameAndQty(ByVal oBOMRows As BOMRowsEnumerator, ByVal sMatName As String, ByVal oUOM As UnitsOfMeasure) As List(Of String)
	Dim sNameAndQty As New List(Of String)
	For Each oRow As BOMRow In oBOMRows
		If oRow.ItemQuantity &amp;lt;&amp;gt; 0 Then
			If TypeOf oRow.ComponentDefinitions.Item(1) Is SheetMetalComponentDefinition Then
				Dim oSheetDef As SheetMetalComponentDefinition = oRow.ComponentDefinitions.Item(1)
				Dim oPartDoc As PartDocument = oSheetDef.Document
				Dim sPartNumb As String = oPartDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value
				Dim sMaterial As String = oPartDoc.ActiveMaterial.DisplayName
				Dim dThick As Double = oUOM.ConvertUnits(oSheetDef.Thickness.Value, "cm", "mm")
				If sMaterial &amp;amp; " " &amp;amp; dThick &amp;amp; "mm" = sMatName Then
					sNameAndQty.Add("6-01" &amp;amp; sPartNumb &amp;amp; "_" &amp;amp; oRow.ItemQuantity &amp;amp; "Qty")
				End If
			End If
		End if
	Next
	Return sNameAndQty
End Function

Private Function GetMaterialFromAssembly(ByVal oBOMRows As BOMRowsEnumerator, ByVal oUOM As UnitsOfMeasure) As List(Of String)
	Dim sListMaterial, sListFinal As New List(Of String)
	For Each oRow As BOMRow In oBOMRows
		If oRow.ItemQuantity &amp;lt;&amp;gt; 0 Then
			If TypeOf oRow.ComponentDefinitions.Item(1) Is SheetMetalComponentDefinition Then
				Dim oSheetDef As SheetMetalComponentDefinition = oRow.ComponentDefinitions.Item(1)
				Dim oPartDoc As PartDocument = oSheetDef.Document
				Dim sMaterial As String = oPartDoc.ActiveMaterial.DisplayName
				Dim dThick As Double = oUOM.ConvertUnits(oSheetDef.Thickness.Value, "cm", "mm")
				If Not sListMaterial.Contains(sMaterial &amp;amp; " " &amp;amp; dThick &amp;amp; "mm") Then
					sListMaterial.Add(sMaterial &amp;amp; " " &amp;amp; dThick &amp;amp; "mm")
				End If
			End If
		End If
	Next
	Return sListMaterial
End Function&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 16:44:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-excel-file-with-ilogic/m-p/11961729#M23682</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2023-05-13T16:44:38Z</dc:date>
    </item>
  </channel>
</rss>

