<?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: I Need to create an inspection table with stamped identifiers for each dimension. in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13722952#M176050</link>
    <description>&lt;P&gt;You're asking for a way to loop through all dimensions on a drawing sheet, place a numbered sketch symbol (like a balloon), and generate an inspection table listing the dimension values and tolerances. Great idea—this is useful for inspection drawings.&lt;/P&gt;
&lt;P&gt;Below is a basic iLogic rule that does most of the work. It:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Loops through all dimensions on the active sheet&lt;/LI&gt;
&lt;LI&gt;Places a numbered balloon (simple leader note) next to each dimension&lt;/LI&gt;
&lt;LI&gt;Fills a custom table with the dimension number, nominal value, and tolerance range&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I'm not using a sketch symbol in this example because that setup depends heavily on your template and symbol definitions. You can find several good posts on the forum explaining how to insert sketched symbols using SketchedSymbolDefinitions and SketchedSymbols.Add.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;iLogic Rule (Work-in-Progress, but functional):&lt;/P&gt;
&lt;LI-CODE lang="visual"&gt;Public Sub Main()
    Dim doc As DrawingDocument = ThisDoc.Document
    Dim sheet As Sheet = doc.ActiveSheet

    Dim table As CustomTable = PlaceCustomTable(sheet)

    For i As Integer = 1 To sheet.DrawingDimensions.Count
        Dim dimension As DrawingDimension = sheet.DrawingDimensions.Item(i)
        PlaceBalloon(sheet, dimension, i)
        AddRow(table, dimension, i)
    Next
End Sub

Private Sub AddRow(table As CustomTable, dimension As DrawingDimension, number As Integer)
    Dim value = dimension.ModelValue.ToString("F2") ' Nominal value
    Dim min = dimension.Tolerance.Lower
    Dim max = dimension.Tolerance.Upper
    Dim content As String() = {number, value, min.ToString("F2"), max.ToString("F2")}
    table.Rows.Add(0, True, content)
End Sub

Private Function PlaceCustomTable(sheet As Sheet) As CustomTable
    Dim tableInsertPoint = ThisApplication.TransientGeometry.CreatePoint2d(1, sheet.Height / 2)
    Dim columnTitles As String() = {"No", "Specification", "Min", "Max"}
    Dim table As CustomTable = sheet.CustomTables.Add("Check table", tableInsertPoint, 4, 1, columnTitles)
    table.Rows.Item(1).Delete() ' Remove the initial empty row
    Return table
End Function

Private Sub PlaceBalloon(sheet As Sheet, dimension As DrawingDimension, number As Integer)
    Dim textOrigin As Point2d = dimension.Text.Origin
    Dim leaderPoints As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection()

    ' Example offset for balloon
    leaderPoints.Add(ThisApplication.TransientGeometry.CreatePoint2d(textOrigin.X + 1, textOrigin.Y + 1))
    leaderPoints.Add(textOrigin)

    ' Simple leader note as a placeholder for a balloon/sketch symbol
    sheet.DrawingNotes.LeaderNotes.Add(leaderPoints, number)
End Sub&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 13 Jul 2025 12:34:42 GMT</pubDate>
    <dc:creator>JelteDeJong</dc:creator>
    <dc:date>2025-07-13T12:34:42Z</dc:date>
    <item>
      <title>I Need to create an inspection table with stamped identifiers for each dimension.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13722063#M176042</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I need to create a sketch symbol with a counter that loops through all dimensions and then generate an inspection table listing each dimension along with its tolerance. Sketch Symbol like a Balloon.&lt;/P&gt;&lt;P&gt;I'm beginner to this, so hope you guys help on this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 06:24:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13722063#M176042</guid>
      <dc:creator>pasupathy_baskar</dc:creator>
      <dc:date>2025-07-12T06:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: I Need to create an inspection table with stamped identifiers for each dimension.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13722182#M176045</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16309304"&gt;@pasupathy_baskar&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;This is quite a difficult task and requires writing a large piece of code. I suggest you look at similar topics and their solutions: &lt;A title="forums.autodesk.com" href="https://forums.autodesk.com/t5/inventor-programming-ilogic/inspection-dimensions-to-table/td-p/12871029" target="_blank" rel="noopener"&gt;link&lt;/A&gt;, &lt;A title="forums.autodesk.com" href="https://forums.autodesk.com/t5/inventor-forum/dimension-table-in-drawing/td-p/6803135" target="_blank" rel="noopener"&gt;link&lt;/A&gt;, &lt;A title="forums.autodesk.com" href="https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-dimension-table-for-inspection-purposes/td-p/11920522" target="_blank" rel="noopener"&gt;link&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you have any questions or suggestions, I will be happy to help.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 09:54:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13722182#M176045</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2025-07-12T09:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: I Need to create an inspection table with stamped identifiers for each dimension.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13722188#M176046</link>
      <description>&lt;P&gt;Thanks for the Reply.&lt;/P&gt;&lt;P&gt;Actually, I’m trying to develop the code myself, but I don’t have much experience with programming. I’ve searched on YouTube and online, but I couldn’t find any relevant content.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 10:14:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13722188#M176046</guid>
      <dc:creator>pasupathy_baskar</dc:creator>
      <dc:date>2025-07-12T10:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: I Need to create an inspection table with stamped identifiers for each dimension.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13722952#M176050</link>
      <description>&lt;P&gt;You're asking for a way to loop through all dimensions on a drawing sheet, place a numbered sketch symbol (like a balloon), and generate an inspection table listing the dimension values and tolerances. Great idea—this is useful for inspection drawings.&lt;/P&gt;
&lt;P&gt;Below is a basic iLogic rule that does most of the work. It:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Loops through all dimensions on the active sheet&lt;/LI&gt;
&lt;LI&gt;Places a numbered balloon (simple leader note) next to each dimension&lt;/LI&gt;
&lt;LI&gt;Fills a custom table with the dimension number, nominal value, and tolerance range&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I'm not using a sketch symbol in this example because that setup depends heavily on your template and symbol definitions. You can find several good posts on the forum explaining how to insert sketched symbols using SketchedSymbolDefinitions and SketchedSymbols.Add.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;iLogic Rule (Work-in-Progress, but functional):&lt;/P&gt;
&lt;LI-CODE lang="visual"&gt;Public Sub Main()
    Dim doc As DrawingDocument = ThisDoc.Document
    Dim sheet As Sheet = doc.ActiveSheet

    Dim table As CustomTable = PlaceCustomTable(sheet)

    For i As Integer = 1 To sheet.DrawingDimensions.Count
        Dim dimension As DrawingDimension = sheet.DrawingDimensions.Item(i)
        PlaceBalloon(sheet, dimension, i)
        AddRow(table, dimension, i)
    Next
End Sub

Private Sub AddRow(table As CustomTable, dimension As DrawingDimension, number As Integer)
    Dim value = dimension.ModelValue.ToString("F2") ' Nominal value
    Dim min = dimension.Tolerance.Lower
    Dim max = dimension.Tolerance.Upper
    Dim content As String() = {number, value, min.ToString("F2"), max.ToString("F2")}
    table.Rows.Add(0, True, content)
End Sub

Private Function PlaceCustomTable(sheet As Sheet) As CustomTable
    Dim tableInsertPoint = ThisApplication.TransientGeometry.CreatePoint2d(1, sheet.Height / 2)
    Dim columnTitles As String() = {"No", "Specification", "Min", "Max"}
    Dim table As CustomTable = sheet.CustomTables.Add("Check table", tableInsertPoint, 4, 1, columnTitles)
    table.Rows.Item(1).Delete() ' Remove the initial empty row
    Return table
End Function

Private Sub PlaceBalloon(sheet As Sheet, dimension As DrawingDimension, number As Integer)
    Dim textOrigin As Point2d = dimension.Text.Origin
    Dim leaderPoints As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection()

    ' Example offset for balloon
    leaderPoints.Add(ThisApplication.TransientGeometry.CreatePoint2d(textOrigin.X + 1, textOrigin.Y + 1))
    leaderPoints.Add(textOrigin)

    ' Simple leader note as a placeholder for a balloon/sketch symbol
    sheet.DrawingNotes.LeaderNotes.Add(leaderPoints, number)
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 13 Jul 2025 12:34:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13722952#M176050</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2025-07-13T12:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: I Need to create an inspection table with stamped identifiers for each dimension.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13723995#M176064</link>
      <description>&lt;P&gt;Thanks for your response. I appreciate your time and input.&lt;/P&gt;&lt;P&gt;I Check the code, Balloon dimension and table value look vary, If you finish this kindly let me know&lt;/P&gt;&lt;P&gt;And&amp;nbsp;I will try on my end.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 12:32:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/i-need-to-create-an-inspection-table-with-stamped-identifiers/m-p/13723995#M176064</guid>
      <dc:creator>pasupathy_baskar</dc:creator>
      <dc:date>2025-07-14T12:32:31Z</dc:date>
    </item>
  </channel>
</rss>

