<?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: Export Drawing dimension to excel in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157826#M52049</link>
    <description>&lt;P&gt;you do most of the job &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;why we need this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oXLFile As String = "C:\TEMP\DrawingDimensions.xlsx"&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 15:11:31 GMT</pubDate>
    <dc:creator>eladm</dc:creator>
    <dc:date>2021-03-15T15:11:31Z</dc:date>
    <item>
      <title>Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10155062#M52035</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help with ilogic rule to export all drawing dimensions to Excel&lt;/P&gt;&lt;P&gt;Not VBA , some of the dimeson&amp;nbsp; have tolerance&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 08:02:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10155062#M52035</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2021-03-14T08:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157192#M52036</link>
      <description>&lt;P&gt;Could you upload a non-confidential drawing so that I can take a look?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 11:23:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157192#M52036</guid>
      <dc:creator>aelqabbany</dc:creator>
      <dc:date>2021-03-15T11:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157456#M52037</link>
      <description>&lt;LI-CODE lang="general"&gt;Dim a As Inventor.DrawingDocument = ThisDrawing.Document
Dim s As Inventor.Sheet = a.ActiveSheet


Dim i As Integer = 1
For Each b As Inventor.DrawingDimension In s.DrawingDimensions
	i=i+1
	GoExcel.CellValue("C:\TEMP\DrawingDimensions.xlsx", "Sheet1", "A" &amp;amp; i) = b.Text.Text.ToString
	Next&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;Make in your C:\Temp\DrawingDimenions.xlsx as new file first!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:03:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157456#M52037</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T13:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157568#M52038</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Not working&lt;/P&gt;&lt;P&gt;The Sheet excel is empty&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:43:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157568#M52038</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2021-03-15T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157590#M52039</link>
      <description>&lt;P&gt;Can you make a screenshot of the Excel sheet.&lt;/P&gt;
&lt;P&gt;is the sheetname "sheet1"&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:48:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157590#M52039</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T13:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157594#M52040</link>
      <description>&lt;LI-CODE lang="general"&gt;Dim a As Inventor.DrawingDocument = ThisDrawing.Document
Dim s As Inventor.Sheet = a.ActiveSheet


Dim i As Integer = 1
For Each b As Inventor.DrawingDimension In s.DrawingDimensions
	i=i+1
	GoExcel.CellValue("C:\TEMP\DrawingDimensions.xlsx", "Sheet1", "A" &amp;amp; i) = b.Text.Text.ToString
	GoExcel.Save

	Next&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:49:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157594#M52040</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T13:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157599#M52041</link>
      <description>&lt;P&gt;forgot the SAVE!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:50:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157599#M52041</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T13:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157610#M52042</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Ok , it takes the dimension , great , but I also need the tolerance ( only some of the dimension)&lt;/P&gt;&lt;P&gt;I must have dimension with tolerance to excel&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 13:54:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157610#M52042</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2021-03-15T13:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157663#M52043</link>
      <description>&lt;LI-CODE lang="general"&gt;Dim a As Inventor.DrawingDocument = ThisDrawing.Document
Dim s As Inventor.Sheet = a.ActiveSheet


Dim i As Integer = 1
For Each b As Inventor.DrawingDimension In s.DrawingDimensions
	i = i + 1
	'MsgBox (b.Tolerance.Upper)
	GoExcel.CellValue("C:\TEMP\DrawingDimensions.xlsx", "Sheet1", "A" &amp;amp; i) = b.Text.Text.ToString
	GoExcel.CellValue("B" &amp;amp; i) = b.Tolerance.Upper
	GoExcel.CellValue("C" &amp;amp; i) = b.Tolerance.Lower
	GoExcel.Save

	Next&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:10:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157663#M52043</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T14:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157672#M52044</link>
      <description>&lt;P&gt;And with a Heading will be your next question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim a As Inventor.DrawingDocument = ThisDrawing.Document
Dim s As Inventor.Sheet = a.ActiveSheet


Dim i As Integer = 1
For Each b As Inventor.DrawingDimension In s.DrawingDimensions
	i = i + 1
	
	GoExcel.CellValue("C:\TEMP\DrawingDimensions.xlsx", "Sheet1", "A" &amp;amp; i) = b.Text.Text.ToString
	GoExcel.CellValue("B" &amp;amp; i) = b.Tolerance.Upper
	GoExcel.CellValue("C" &amp;amp; i) = b.Tolerance.Lower
	
	GoExcel.CellValue("A" &amp;amp; 1) = "Dimension"
	GoExcel.CellValue("B" &amp;amp; 1) = "Tolerance Upper"
	GoExcel.CellValue("C" &amp;amp; 1) = "Tolerance Lower"
	GoExcel.Save

	Next&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157672#M52044</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T14:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157692#M52045</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The next question is the name of the excel with the name of the file &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but ,See the problems&lt;/P&gt;&lt;P&gt;1)dim with symmetric&lt;/P&gt;&lt;P&gt;&amp;nbsp;2)and extra 0&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dim.png" style="width: 954px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/893347i7D1AD3DB2E81C44E/image-size/large?v=v2&amp;amp;px=999" role="button" title="dim.png" alt="dim.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:22:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157692#M52045</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2021-03-15T14:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157775#M52046</link>
      <description>&lt;LI-CODE lang="general"&gt;AddReference "Microsoft.Office.Interop.Excel.dll"
Imports exe = Microsoft.Office.Interop.Excel

Dim oXLFile As String = "C:\TEMP\DrawingDimensions.xlsx"
Dim oSheet As String = "Sheet1"

Dim oExcel As New Microsoft.Office.Interop.Excel.ApplicationClass
Dim oWB As Microsoft.Office.Interop.Excel.Workbook = oExcel.Workbooks.Open(oXLFile)
Dim oWS As Microsoft.Office.Interop.Excel.Worksheet = oWB.Worksheets.Item(oSheet)

Dim oCells As Microsoft.Office.Interop.Excel.Range = oWS.Cells

oCells.item(2,1).value= "sjgjsagjlk"'b.Text.Text.ToString

Dim a As Inventor.DrawingDocument = ThisDrawing.Document
Dim s As Inventor.Sheet = a.ActiveSheet


Dim i As Integer = 1
For Each b As Inventor.DrawingDimension In s.DrawingDimensions
	i = i + 1
'	'MsgBox (b.Tolerance.Upper)
	
oCells.item(i,1).value = b.Text.Text.ToString
oCells.item(i,2).value = b.Tolerance.Upper
oCells.item(i,3).value  = b.Tolerance.Lower
	
oCells.item(1,1).value  = "Dimension"
oCells.item(1,2).value = "Tolerance Upper"
oCells.item(1,3).value = "Tolerance Lower"
'	GoExcel.Save()

	Next
	oWB.saveas("C:\TEMP\"&amp;amp; a.DisplayName &amp;amp; ".xlsx")
oWB.close
	&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:48:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157775#M52046</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T14:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157786#M52047</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The tolerance is divided by 10&lt;/P&gt;&lt;P&gt;for example : 100+0.2 = the result is 0.02&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:54:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157786#M52047</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2021-03-15T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157805#M52048</link>
      <description>&lt;P&gt;We are coming closer:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;AddReference "Microsoft.Office.Interop.Excel.dll"
Imports exe = Microsoft.Office.Interop.Excel

Dim oXLFile As String = "C:\TEMP\DrawingDimensions.xlsx"
Dim oSheet As String = "Sheet1"

Dim oExcel As New Microsoft.Office.Interop.Excel.ApplicationClass
Dim oWB As Microsoft.Office.Interop.Excel.Workbook = oExcel.Workbooks.Open(oXLFile)
Dim oWS As Microsoft.Office.Interop.Excel.Worksheet = oWB.Worksheets.Item(oSheet)

Dim oCells As Microsoft.Office.Interop.Excel.Range = oWS.Cells

oCells.item(2,1).value= "sjgjsagjlk"'b.Text.Text.ToString

Dim a As Inventor.DrawingDocument = ThisDrawing.Document
Dim s As Inventor.Sheet = a.ActiveSheet


Dim i As Integer = 1
For Each b As Inventor.DrawingDimension In s.DrawingDimensions
	i = i + 1
'	'MsgBox (b.Tolerance.Upper)
	
oCells.item(i,1).value = b.Text.Text.ToString
oCells.item(i,2).value = b.Tolerance.Upper*10
oCells.item(i,3).value  = b.Tolerance.Lower*10
	
oCells.item(1,1).value  = "Dimension"
oCells.item(1,2).value = "Tolerance Upper"
oCells.item(1,3).value = "Tolerance Lower"
'	GoExcel.Save()

	Next
	oWB.saveas("C:\TEMP\"&amp;amp; a.DisplayName &amp;amp; ".xlsx")
oWB.close
	&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:04:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157805#M52048</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T15:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157826#M52049</link>
      <description>&lt;P&gt;you do most of the job &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;why we need this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oXLFile As String = "C:\TEMP\DrawingDimensions.xlsx"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:11:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157826#M52049</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2021-03-15T15:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157879#M52050</link>
      <description>&lt;P&gt;That is the template!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:33:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157879#M52050</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T15:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157887#M52051</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AddReference "Microsoft.Office.Interop.Excel.dll"
Imports exe = Microsoft.Office.Interop.Excel

'Dim oXLFile As String = "C:\TEMP\DrawingDimensions.xlsx"
Dim oSheet As String = "Sheet1"

Dim oExcel As New Microsoft.Office.Interop.Excel.ApplicationClass
Dim oWB As Microsoft.Office.Interop.Excel.Workbook = oExcel.Workbooks.add
Dim oWS As Microsoft.Office.Interop.Excel.Worksheet = oWB.Worksheets.Item(oSheet)

Dim oCells As Microsoft.Office.Interop.Excel.Range = oWS.Cells

Dim a As Inventor.DrawingDocument = ThisDrawing.Document
Dim s As Inventor.Sheet = a.ActiveSheet

Dim i As Integer = 1
For Each b As Inventor.DrawingDimension In s.DrawingDimensions
	i = i + 1
'	'MsgBox (b.Tolerance.Upper)
	
oCells.item(i,1).value = b.Text.Text.ToString
oCells.item(i,2).value = b.Tolerance.Upper*10
oCells.item(i,3).value  = b.Tolerance.Lower*10
	
oCells.item(1,1).value  = "Dimension"
oCells.item(1,2).value = "Tolerance Upper"
oCells.item(1,3).value = "Tolerance Lower"
'	GoExcel.Save()

	Next
	oWB.saveas("C:\TEMP\"&amp;amp; a.DisplayName &amp;amp; ".xlsx")
oWB.close
	&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without template use this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:38:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10157887#M52051</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-15T15:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10158136#M52052</link>
      <description>&lt;P&gt;The symmetric still make problem&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dim2.png" style="width: 957px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/893427iA05EED38A3CF1F3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="dim2.png" alt="dim2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 16:59:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10158136#M52052</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2021-03-15T16:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10163397#M52053</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you fix the code ? It not export the symmetric tolerance value for min. and max. , only one of them&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:56:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10163397#M52053</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2021-03-17T08:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export Drawing dimension to excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10164530#M52054</link>
      <description>&lt;P&gt;Sure:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;AddReference "Microsoft.Office.Interop.Excel.dll"
Imports exe = Microsoft.Office.Interop.Excel

'Dim oXLFile As String = "C:\TEMP\DrawingDimensions.xlsx"
Dim oSheet As String = "Sheet1"

Dim oExcel As New Microsoft.Office.Interop.Excel.ApplicationClass
Dim oWB As Microsoft.Office.Interop.Excel.Workbook = oExcel.Workbooks.add'.Open(oXLFile)
Dim oWS As Microsoft.Office.Interop.Excel.Worksheet = oWB.Worksheets.Item(oSheet)

Dim oCells As Microsoft.Office.Interop.Excel.Range = oWS.Cells

'oCells.item(2,1).value= b.Text.Text.ToString

Dim a As Inventor.DrawingDocument = ThisDrawing.Document
Dim s As Inventor.Sheet = a.ActiveSheet


Dim i As Integer = 1
For Each b As Inventor.DrawingDimension In s.DrawingDimensions
	i = i + 1
'MsgBox (b.Text.Text &amp;amp; " " &amp;amp; b.Tolerance.ToleranceType)
	
	If b.Tolerance.ToleranceType = 31236 Then
		oCells.item(i,1).value = b.Text.Text
		oCells.item(i,2).value = b.Tolerance.Upper*10
		oCells.item(i,3).value  = b.Tolerance.Lower*10
	
		oCells.item(1,1).value  = "Dimension"
		oCells.item(1,2).value = "Tolerance Upper"
		oCells.item(1,3).value = "Tolerance Lower"
		End If
If b.Tolerance.ToleranceType = 31233 Then
		oCells.item(i,1).value = b.Text.Text
		oCells.item(i,2).value = b.Tolerance.Upper*10
		oCells.item(i,3).value  = b.Tolerance.Lower*10
	
		oCells.item(1,1).value  = "Dimension"
		oCells.item(1,2).value = "Tolerance Upper"
		oCells.item(1,3).value = "Tolerance Lower"
		End If
If b.Tolerance.ToleranceType = 31235 Then
		oCells.item(i,1).value = b.Text.Text
		oCells.item(i,2).value = "+/-" &amp;amp; b.Tolerance.Upper*10
		'oCells.item(i,3).value  = "+/-" &amp;amp;b.Tolerance.Lower*10.ToString
	
		oCells.item(1,1).value  = "Dimension"
		oCells.item(1,2).value = "Tolerance Upper"
		oCells.item(1,3).value = "Tolerance Lower"
		End If


	Next
	oWB.saveas("C:\TEMP\"&amp;amp; a.DisplayName &amp;amp; ".xlsx")
oWB.close
	&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Mar 2021 16:10:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-drawing-dimension-to-excel/m-p/10164530#M52054</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-17T16:10:07Z</dc:date>
    </item>
  </channel>
</rss>

