<?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: Get ChamferNote Values and Tolerances in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-chamfernote-values-and-tolerances/m-p/8122567#M86497</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6276684"&gt;@avincent&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try below VBA code to determine values and tolerances of chamfer notes. Usually, tolerances will return in integer values which can mapped to respective &lt;STRONG&gt;LinearPrecisionEnum &lt;/STRONG&gt;using below Inventor 2019 help documentation link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-FBD80F0D-AF01-47AA-BC61-8DB782ACAE0D" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-FBD80F0D-AF01-47AA-BC61-8DB782ACAE0D&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()

    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oSheet As Sheet
    Set oSheet = oDoc.ActiveSheet
    
    Dim oChamferNote As ChamferNote
    Set oChamferNote = oSheet.DrawingNotes.ChamferNotes.Item(1)
    
    Debug.Print oChamferNote.Text
    
    Dim oStyle As DimensionStyle
    Set oStyle = oChamferNote.DimensionStyle
    
    Dim oLinear As LinearPrecisionEnum
    oLinear = oStyle.LinearPrecision
    
    Debug.Print "Linear precision : " &amp;amp; oLinear
    
    Dim oAngular As LinearPrecisionEnum
    oAngular = oStyle.AngularPrecision
     
    Debug.Print "Angular precision : " &amp;amp; oAngular
End Sub
&lt;/PRE&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 09:41:25 GMT</pubDate>
    <dc:creator>chandra.shekar.g</dc:creator>
    <dc:date>2018-07-11T09:41:25Z</dc:date>
    <item>
      <title>Get ChamferNote Values and Tolerances</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-chamfernote-values-and-tolerances/m-p/8121489#M86439</link>
      <description>&lt;P&gt;I'm writing a macro in Microsoft Visual Basic for Applications for Autodesk Inventor Professional 2019. The intention for the macro is to automatically generate in-process inspection documents to accompany manufacturing process prints to the machine shop floor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the values and tolerances associated with a given ChamferNote? I believe that this question has been answered in the negative in this forum for versions of the software prior to 2010, with references to future improvements. I'm not seeing any more recent discussion of the issue. I'm not finding an answer to this question in the Inventor API Reference Manual.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 19:08:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-chamfernote-values-and-tolerances/m-p/8121489#M86439</guid>
      <dc:creator>avincent</dc:creator>
      <dc:date>2018-07-10T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get ChamferNote Values and Tolerances</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-chamfernote-values-and-tolerances/m-p/8122567#M86497</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6276684"&gt;@avincent&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try below VBA code to determine values and tolerances of chamfer notes. Usually, tolerances will return in integer values which can mapped to respective &lt;STRONG&gt;LinearPrecisionEnum &lt;/STRONG&gt;using below Inventor 2019 help documentation link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-FBD80F0D-AF01-47AA-BC61-8DB782ACAE0D" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-FBD80F0D-AF01-47AA-BC61-8DB782ACAE0D&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()

    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oSheet As Sheet
    Set oSheet = oDoc.ActiveSheet
    
    Dim oChamferNote As ChamferNote
    Set oChamferNote = oSheet.DrawingNotes.ChamferNotes.Item(1)
    
    Debug.Print oChamferNote.Text
    
    Dim oStyle As DimensionStyle
    Set oStyle = oChamferNote.DimensionStyle
    
    Dim oLinear As LinearPrecisionEnum
    oLinear = oStyle.LinearPrecision
    
    Debug.Print "Linear precision : " &amp;amp; oLinear
    
    Dim oAngular As LinearPrecisionEnum
    oAngular = oStyle.AngularPrecision
     
    Debug.Print "Angular precision : " &amp;amp; oAngular
End Sub
&lt;/PRE&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 09:41:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-chamfernote-values-and-tolerances/m-p/8122567#M86497</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-07-11T09:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get ChamferNote Values and Tolerances</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-chamfernote-values-and-tolerances/m-p/8124103#M86535</link>
      <description>&lt;P&gt;Thanks for the response. It appears that this provides the precision level of the default dimension.&lt;/P&gt;&lt;P&gt;I'm hoping to get the linear and angular tolerance ranges when the default dimensions are not used.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 18:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-chamfernote-values-and-tolerances/m-p/8124103#M86535</guid>
      <dc:creator>avincent</dc:creator>
      <dc:date>2018-07-11T18:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get ChamferNote Values and Tolerances</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-chamfernote-values-and-tolerances/m-p/8125124#M86559</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6276684"&gt;@avincent&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Custom tolerances&amp;nbsp;of chamfer note are available&amp;nbsp;through&amp;nbsp;&lt;STRONG&gt;FormattedChamferNote&lt;/STRONG&gt; API&amp;nbsp;as XML tags as shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;Distance1 &lt;FONT color="#ff0000"&gt;Precision='3'&lt;/FONT&gt; AlternatePrecision='0' UpperTolerance='0.000000' LowerTolerance='0.000000' ToleranceType='kSymmetricTolerance' TolerancePrecision='2' ToleranceAlternatePrecision='2'&amp;gt;&amp;lt;/Distance1&amp;gt; X &amp;lt;Angle &lt;FONT color="#ff0000"&gt;Precision='2'&lt;/FONT&gt; UpperTolerance='0.000000' LowerTolerance='0.000000' ToleranceType='kSymmetricTolerance' TolerancePrecision='2'&amp;gt;&amp;lt;/Angle&amp;gt; Chamfer&lt;/PRE&gt;
&lt;P&gt;VBA code:&lt;/P&gt;
&lt;PRE&gt;Sub Main()
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oSheet As Sheet
    Set oSheet = oDoc.ActiveSheet
    
    Dim oChamferNote As ChamferNote
    Set oChamferNote = oSheet.DrawingNotes.ChamferNotes.Item(1)
    
    Debug.Print oChamferNote.FormattedChamferNote
End Sub&lt;/PRE&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 06:48:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/get-chamfernote-values-and-tolerances/m-p/8125124#M86559</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-07-12T06:48:23Z</dc:date>
    </item>
  </channel>
</rss>

