<?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 Get Tolerance for HoleThreadNote in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-tolerance-for-holethreadnote/m-p/9254728#M104629</link>
    <description>&lt;P&gt;I need some help.&lt;/P&gt;&lt;P&gt;I want to collect all tolerances used in a drawing view.&lt;/P&gt;&lt;P&gt;Collecting the drawing tolerances for DrawingDimensions works fine. But it is a problem to get the tolerances defined for&amp;nbsp; holefeatures in parts model.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.JPG" style="width: 789px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/717595i691DA53BEE78BC76/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.JPG" alt="Unbenannt.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;HoleThreadNote first = sheet.DrawingNotes.HoleThreadNotes.Cast&amp;lt;HoleThreadNote&amp;gt; ().First ();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;string a = first.Text.Text;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// a = "n3,00 H7 DURCH"&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;string holTol = first.Tolerance.HoleTolerance;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// holTol = ""; &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;string shaftTol = first.Tolerance.ShaftTolerance;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// shaftTol = "";&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Is there another method to get the "model" tolerances? Only possible by parsing the text string?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Thank you!&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Regards&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Petra&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Jan 2020 13:33:12 GMT</pubDate>
    <dc:creator>Hillebrand</dc:creator>
    <dc:date>2020-01-16T13:33:12Z</dc:date>
    <item>
      <title>Get Tolerance for HoleThreadNote</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-tolerance-for-holethreadnote/m-p/9254728#M104629</link>
      <description>&lt;P&gt;I need some help.&lt;/P&gt;&lt;P&gt;I want to collect all tolerances used in a drawing view.&lt;/P&gt;&lt;P&gt;Collecting the drawing tolerances for DrawingDimensions works fine. But it is a problem to get the tolerances defined for&amp;nbsp; holefeatures in parts model.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.JPG" style="width: 789px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/717595i691DA53BEE78BC76/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.JPG" alt="Unbenannt.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;HoleThreadNote first = sheet.DrawingNotes.HoleThreadNotes.Cast&amp;lt;HoleThreadNote&amp;gt; ().First ();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;string a = first.Text.Text;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// a = "n3,00 H7 DURCH"&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;string holTol = first.Tolerance.HoleTolerance;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// holTol = ""; &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;string shaftTol = first.Tolerance.ShaftTolerance;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// shaftTol = "";&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Is there another method to get the "model" tolerances? Only possible by parsing the text string?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Thank you!&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Regards&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Petra&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Jan 2020 13:33:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-tolerance-for-holethreadnote/m-p/9254728#M104629</guid>
      <dc:creator>Hillebrand</dc:creator>
      <dc:date>2020-01-16T13:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get Tolerance for HoleThreadNote</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-tolerance-for-holethreadnote/m-p/9259792#M104729</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code get Tolerance object that is corresponding to HoleThreadNote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub test()
    Dim oSheet As Sheet
    Set oSheet = ThisApplication.ActiveDocument.ActiveSheet
    Dim oHoleThreadNote As HoleThreadNote
    Set oHoleThreadNote = oSheet.DrawingNotes.HoleThreadNotes(1)
    
    Dim oFace As Face
    For Each oFace In oHoleThreadNote.Intent.Geometry.ModelGeometry.Faces
        If TypeOf oFace.CreatedByFeature Is HoleFeature Then
            Dim oHoleFeature As HoleFeature
            Set oHoleFeature = oFace.CreatedByFeature
            Dim oTolerance As Tolerance
            Set oTolerance = oHoleFeature.HoleDiameter.Tolerance
            Debug.Print oTolerance.HoleTolerance
            Exit For
        End If
    Next oFace
    
End Sub&lt;/PRE&gt;&lt;P&gt;oHoleThreadNote.Intent.Geometry.ModelGeometry is pointing the edge in the part model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freeradical.jp" target="_blank" rel="noopener"&gt;Freeradical&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2020 07:43:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-tolerance-for-holethreadnote/m-p/9259792#M104729</guid>
      <dc:creator>HideoYamada</dc:creator>
      <dc:date>2020-01-19T07:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get Tolerance for HoleThreadNote</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-tolerance-for-holethreadnote/m-p/9261182#M104747</link>
      <description>&lt;P&gt;Works perfect!&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 09:59:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-tolerance-for-holethreadnote/m-p/9261182#M104747</guid>
      <dc:creator>Hillebrand</dc:creator>
      <dc:date>2020-01-20T09:59:28Z</dc:date>
    </item>
  </channel>
</rss>

