<?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: Checking if hole note leader points to geometry or thread symbol in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/checking-if-hole-note-leader-points-to-geometry-or-thread-symbol/m-p/11579168#M30060</link>
    <description>&lt;P&gt;Checking isn't the problem. But finding the correct curve and attaching the hole note to it seems at least very difficult if not impossible.&lt;/P&gt;
&lt;P&gt;here is the code to check if it's attached to geometry or symbol.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim leader As HoleThreadNote = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingDefaultFilter, "Select a hole note")
Dim drawingCurve As DrawingCurve = leader.Edge

If drawingCurve.ProjectedCurveType = Curve2dTypeEnum.kCircleCurve2d Then
    MsgBox("Hole note is attached to geometry")
Else
    MsgBox("Hole note is attached to symbol")
End If&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 26 Nov 2022 10:19:35 GMT</pubDate>
    <dc:creator>JelteDeJong</dc:creator>
    <dc:date>2022-11-26T10:19:35Z</dc:date>
    <item>
      <title>Checking if hole note leader points to geometry or thread symbol</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/checking-if-hole-note-leader-points-to-geometry-or-thread-symbol/m-p/11578495#M30059</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was just wondering if anyone knew how to check whether a hole note leader was attached to the geometry of the hole/thread feature or the thread symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there I'd be curious to know if it would be possible to automatically move it to the other, depending on which one it's on. From what little experience I have this seems like it might be pretty complex, so I'm hoping it's actually easy or there's someone out there who knows how to do it already!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 19:36:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/checking-if-hole-note-leader-points-to-geometry-or-thread-symbol/m-p/11578495#M30059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-25T19:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if hole note leader points to geometry or thread symbol</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/checking-if-hole-note-leader-points-to-geometry-or-thread-symbol/m-p/11579168#M30060</link>
      <description>&lt;P&gt;Checking isn't the problem. But finding the correct curve and attaching the hole note to it seems at least very difficult if not impossible.&lt;/P&gt;
&lt;P&gt;here is the code to check if it's attached to geometry or symbol.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim leader As HoleThreadNote = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingDefaultFilter, "Select a hole note")
Dim drawingCurve As DrawingCurve = leader.Edge

If drawingCurve.ProjectedCurveType = Curve2dTypeEnum.kCircleCurve2d Then
    MsgBox("Hole note is attached to geometry")
Else
    MsgBox("Hole note is attached to symbol")
End If&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 26 Nov 2022 10:19:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/checking-if-hole-note-leader-points-to-geometry-or-thread-symbol/m-p/11579168#M30060</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-11-26T10:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if hole note leader points to geometry or thread symbol</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/checking-if-hole-note-leader-points-to-geometry-or-thread-symbol/m-p/11582459#M30061</link>
      <description>Thanks very much!</description>
      <pubDate>Mon, 28 Nov 2022 14:19:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/checking-if-hole-note-leader-points-to-geometry-or-thread-symbol/m-p/11582459#M30061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-28T14:19:07Z</dc:date>
    </item>
  </channel>
</rss>

