<?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: Ataching leader note to sketched symbol in drawing in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833250#M177302</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3472477"&gt;@omartin&lt;/a&gt;, I'm not completely sure I understand the request, but here is an example that adds leaders to an existing symbol.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps, Curtis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSegment&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingCurveSegment&lt;/SPAN&gt;
&lt;SPAN&gt;oSegment&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingCurveSegmentFilter&lt;/SPAN&gt;, &lt;SPAN&gt;"Select an edge"&lt;/SPAN&gt;)

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oSegment&lt;/SPAN&gt; &lt;SPAN&gt;is&lt;/SPAN&gt; &lt;SPAN&gt;nothing&lt;/SPAN&gt; &lt;SPAN&gt;then&lt;/SPAN&gt; &lt;SPAN&gt;exit&lt;/SPAN&gt; &lt;SPAN&gt;sub&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSymbol&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SketchedSymbol&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;

&lt;SPAN&gt;oSymbol&lt;/SPAN&gt; = &lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;SketchedSymbols&lt;/SPAN&gt;(1)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMidPoint&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN&gt;oSymbol&lt;/SPAN&gt;.&lt;SPAN&gt;Position&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;SelectPt&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN&gt;oSegment&lt;/SPAN&gt;.&lt;SPAN&gt;Parent&lt;/SPAN&gt;.&lt;SPAN&gt;MidPoint&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectCollection&lt;/SPAN&gt;
&lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateObjectCollection&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oGeometryIntent&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;GeometryIntent&lt;/SPAN&gt;
&lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oSymbol&lt;/SPAN&gt;.&lt;SPAN&gt;Position&lt;/SPAN&gt;)

&lt;SPAN&gt;oGeometryIntent&lt;/SPAN&gt; = &lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;CreateGeometryIntent&lt;/SPAN&gt;(&lt;SPAN&gt;oSegment&lt;/SPAN&gt;.&lt;SPAN&gt;Parent&lt;/SPAN&gt;)

&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oGeometryIntent&lt;/SPAN&gt;)


&lt;SPAN&gt;'oSymbol.LeaderClipping = True&lt;/SPAN&gt;
&lt;SPAN&gt;'oSymbol.LeaderVisible = True&lt;/SPAN&gt;

&lt;SPAN&gt;Try&lt;/SPAN&gt;
	&lt;SPAN&gt;oSymbol&lt;/SPAN&gt;.&lt;SPAN&gt;Leader&lt;/SPAN&gt;.&lt;SPAN&gt;AddLeader&lt;/SPAN&gt;(&lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt;)
&lt;SPAN&gt;Catch&lt;/SPAN&gt; 
	&lt;SPAN&gt;'if the symbol already has a leader&lt;/SPAN&gt;
	&lt;SPAN&gt;oSymbol&lt;/SPAN&gt;.&lt;SPAN&gt;Leader&lt;/SPAN&gt;.&lt;SPAN&gt;RootNode&lt;/SPAN&gt;.&lt;SPAN&gt;AddLeader&lt;/SPAN&gt;(&lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 17:10:07 GMT</pubDate>
    <dc:creator>Curtis_Waguespack</dc:creator>
    <dc:date>2025-10-01T17:10:07Z</dc:date>
    <item>
      <title>Ataching leader note to sketched symbol in drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833109#M177300</link>
      <description>&lt;P&gt;Trying to attach a leader note to a sketched symbol, but I get errors when adding geometry intent (commenting out the line adding the intent will add the leader but it is not attached)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were just to add a leader manually to the sketchedsymbol and move around the symbol, this leader is attached as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from this manual leader I inspected the properties on the leaderNode with the attachedEntity property and tried to copy the values when creating the geomtryIntent, but did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a bunch if different things but here is the simplest version I would think should of worked but I get an, "Expecting object to be local" error.&lt;/P&gt;&lt;P&gt;other times I would get a, "Method 'Add' of object 'LeaderNotes' failed"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just working in the vb editor right now on IV2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got some clues form topics such as below: where they talk about hidden leaders to attach to, but cant seem to find out how where to find these nodes to attach to:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-programming-forum/insert-drawing-sketched-symbol-behind-drawingview/m-p/12007050#M22912" target="_blank" rel="noopener"&gt;Insert Drawing Sketched Symbol Behind DrawingView&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-programming-forum/leader-note-node-from-sketched-symbol/m-p/10456351#M48135" target="_blank" rel="noopener"&gt;Leader note/node from Sketched Symbol&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my sketchedSymbols defintion I moved the point where I am trying to attach to to 0,0 in its sketch space&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="omartin_1-1759332298133.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1575435i7990D6B66C0D41FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="omartin_1-1759332298133.png" alt="omartin_1-1759332298133.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual"&gt;Public Sub AddLeaderNotetestxx()
    Dim trg As TransientGeometry
    Set trg = ThisApplication.TransientGeometry
    
    Dim oDrawDoc As DrawingDocument
    Set oDrawDoc = ThisApplication.activeDocument
    
    Dim sk As SketchedSymbol
   
    Dim oActiveSheet As Sheet
    Set oActiveSheet = oDrawDoc.ActiveSheet

    Set sk = oActiveSheet.SketchedSymbols(1).leader.Parent

    Dim oMidPoint As Point2d
    Set oMidPoint = sk.Position

    Dim oLeaderPoints As ObjectCollection
  
    Set oLeaderPoints = ThisApplication.TransientObjects.CreateObjectCollection
    
    Dim oGeometryIntent As GeometryIntent
    Call oLeaderPoints.Add(trg.CreatePoint2d(oMidPoint.x + 5, oMidPoint.Y + 5))
    Call oLeaderPoints.Add(trg.CreatePoint2d(sk.Position.x, sk.Position.Y + 1.1))
    
    Set oGeometryIntent = oActiveSheet.CreateGeometryIntent(sk.leader.Parent, trg.CreatePoint2d(sk.Position.x, sk.Position.Y + 1.1))
    
    Call oLeaderPoints.Add(oGeometryIntent)

    Dim sText As String
    sText = "API Leader Note"

    Dim oLeaderNote As LeaderNote
    Set oLeaderNote = oActiveSheet.DrawingNotes.LeaderNotes.Add(oLeaderPoints, sText)
    
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 15:29:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833109#M177300</guid>
      <dc:creator>omartin</dc:creator>
      <dc:date>2025-10-01T15:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ataching leader note to sketched symbol in drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833250#M177302</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3472477"&gt;@omartin&lt;/a&gt;, I'm not completely sure I understand the request, but here is an example that adds leaders to an existing symbol.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps, Curtis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSegment&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingCurveSegment&lt;/SPAN&gt;
&lt;SPAN&gt;oSegment&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingCurveSegmentFilter&lt;/SPAN&gt;, &lt;SPAN&gt;"Select an edge"&lt;/SPAN&gt;)

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oSegment&lt;/SPAN&gt; &lt;SPAN&gt;is&lt;/SPAN&gt; &lt;SPAN&gt;nothing&lt;/SPAN&gt; &lt;SPAN&gt;then&lt;/SPAN&gt; &lt;SPAN&gt;exit&lt;/SPAN&gt; &lt;SPAN&gt;sub&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSymbol&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SketchedSymbol&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;

&lt;SPAN&gt;oSymbol&lt;/SPAN&gt; = &lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;SketchedSymbols&lt;/SPAN&gt;(1)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMidPoint&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN&gt;oSymbol&lt;/SPAN&gt;.&lt;SPAN&gt;Position&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;SelectPt&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt; = &lt;SPAN&gt;oSegment&lt;/SPAN&gt;.&lt;SPAN&gt;Parent&lt;/SPAN&gt;.&lt;SPAN&gt;MidPoint&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectCollection&lt;/SPAN&gt;
&lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateObjectCollection&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oGeometryIntent&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;GeometryIntent&lt;/SPAN&gt;
&lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oSymbol&lt;/SPAN&gt;.&lt;SPAN&gt;Position&lt;/SPAN&gt;)

&lt;SPAN&gt;oGeometryIntent&lt;/SPAN&gt; = &lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;CreateGeometryIntent&lt;/SPAN&gt;(&lt;SPAN&gt;oSegment&lt;/SPAN&gt;.&lt;SPAN&gt;Parent&lt;/SPAN&gt;)

&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oGeometryIntent&lt;/SPAN&gt;)


&lt;SPAN&gt;'oSymbol.LeaderClipping = True&lt;/SPAN&gt;
&lt;SPAN&gt;'oSymbol.LeaderVisible = True&lt;/SPAN&gt;

&lt;SPAN&gt;Try&lt;/SPAN&gt;
	&lt;SPAN&gt;oSymbol&lt;/SPAN&gt;.&lt;SPAN&gt;Leader&lt;/SPAN&gt;.&lt;SPAN&gt;AddLeader&lt;/SPAN&gt;(&lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt;)
&lt;SPAN&gt;Catch&lt;/SPAN&gt; 
	&lt;SPAN&gt;'if the symbol already has a leader&lt;/SPAN&gt;
	&lt;SPAN&gt;oSymbol&lt;/SPAN&gt;.&lt;SPAN&gt;Leader&lt;/SPAN&gt;.&lt;SPAN&gt;RootNode&lt;/SPAN&gt;.&lt;SPAN&gt;AddLeader&lt;/SPAN&gt;(&lt;SPAN&gt;oLeaderPoints&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 17:10:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833250#M177302</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2025-10-01T17:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ataching leader note to sketched symbol in drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833283#M177306</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;&amp;nbsp;thanks for the reply!!&lt;/P&gt;&lt;P&gt;I was actually referring to adding a separate LeaderTextNote, that is attached to the sketchedSymbol (so when the symbol moves the note moves)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the pic, the sketchedSymbol is the 25 with the line in the middle, the "im attached" LeaderNote, is a note I placed manually to try and see how it was attached,&amp;nbsp; for testing purposes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the drawing intent is somehow attached to the sketchedSymbol instead of a drawingCurve.&lt;/P&gt;&lt;P&gt;Hope that is a better explanation. I attached a drawing as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="omartin_0-1759339525051.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1575462i149996C5D15DB0AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="omartin_0-1759339525051.png" alt="omartin_0-1759339525051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 17:44:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833283#M177306</guid>
      <dc:creator>omartin</dc:creator>
      <dc:date>2025-10-01T17:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ataching leader note to sketched symbol in drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833302#M177308</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3472477"&gt;@omartin&lt;/a&gt;.&amp;nbsp; I would suggest just specifying the SketchedSymbol object as the first input for the CreateGeometryIntent method, instead of&amp;nbsp;SketchedSymbol.Leader.Parent.&amp;nbsp; Then, for the second input into that method, which needs to be a point on that object's geometry, we may have some options.&amp;nbsp; If the SketchedSymbol had a visible leader, then we could likely use the 'position' of one of the leader nodes.&amp;nbsp; But if it does not have a leader, and maybe not even attached to anything, then we may have to fall back to getting the actual geometry included within the symbol.&amp;nbsp; To do that, we would have to step down into its &lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-SketchedSymbolDefinition" target="_blank"&gt;SketchedSymbolDefinition&lt;/A&gt;, then the &lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=GUID-DrawingSketch" target="_blank"&gt;DrawingSketch&lt;/A&gt; associated with that definition.&amp;nbsp; Then find the piece of geometry (for example a SketchLine), then get the StartPoint or EndPoint of that Line, then the Point2D associated with that SketchPoint.&amp;nbsp; As long as it is 'real' visible geometry.&amp;nbsp; Then, I'm guessing that we would likely have to translate that point from sketch space to sheet space, which could be done with the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=DrawingSketch_SketchToSheetSpace" target="_blank" rel="noopener"&gt;DrawingSketch.SketchToSheetSpace&lt;/A&gt;&amp;nbsp;method.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 17:55:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833302#M177308</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-10-01T17:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ataching leader note to sketched symbol in drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833321#M177309</link>
      <description>&lt;P&gt;Right, let me give&amp;nbsp;&amp;nbsp;it a shot with the sketch definitions and&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=DrawingSketch_SketchToSheetSpace" target="_blank" rel="noopener nofollow noreferrer"&gt;DrawingSketch.SketchToSheetSpace&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 18:05:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833321#M177309</guid>
      <dc:creator>omartin</dc:creator>
      <dc:date>2025-10-01T18:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ataching leader note to sketched symbol in drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833361#M177311</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp; thanks for replying!&lt;/P&gt;&lt;P&gt;Im still getting the expecting object to be local error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the skecthedSymbol's sketch definition space, the point I'm connecting to is&amp;nbsp;@0,0&lt;/P&gt;&lt;P&gt;when I use the&amp;nbsp;&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2026/ENU/?guid=DrawingSketch_SketchToSheetSpace" target="_blank" rel="noopener nofollow noreferrer"&gt;DrawingSketch.SketchToSheetSpace&lt;/A&gt;&amp;nbsp;() I still get 0,0 returned&lt;/P&gt;&lt;P&gt;But even If I hard code the coordinates (by taking them from the note that I manually added) it still does not work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to add a leader, and use the root node but no luck...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="omartin_0-1759344448289.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1575483i32A2CE148D0C2031/image-size/medium?v=v2&amp;amp;px=400" role="button" title="omartin_0-1759344448289.png" alt="omartin_0-1759344448289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;according to the docs, it lists sketchedEntites as valid input for the createIntent function but not sketchedSymbols.&lt;/P&gt;&lt;P&gt;I also tried using the sketchline, with varioous points but a no go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it is just not possible or a bug ...But Why is works manaully&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public Sub AddLeaderNotetestxx()
    Dim trg As TransientGeometry
    Set trg = ThisApplication.TransientGeometry
    
    Dim oDrawDoc As DrawingDocument
    Set oDrawDoc = ThisApplication.activeDocument
    
    Dim sk As SketchedSymbol
    Dim ds As DrawingSketch
   
    Dim oActiveSheet As Sheet
    Set oActiveSheet = oDrawDoc.ActiveSheet

    Set sk = oActiveSheet.SketchedSymbols(1)
    Set ds = sk.Definition.Sketch
    
    Dim sl As SketchLine
    Set sl = ds.SketchLines(1)
    
    Dim oMidPoint As Point2d
    Set oMidPoint = ds.SketchToSheetSpace(sl.Geometry.StartPoint)

    Dim oLeaderPoints As ObjectCollection
  
    Set oLeaderPoints = ThisApplication.TransientObjects.CreateObjectCollection
    
    Dim oGeometryIntent As GeometryIntent
    
    Call oLeaderPoints.Add(trg.CreatePoint2d(oMidPoint.x + 5, oMidPoint.Y + 5))
    Call oLeaderPoints.Add(trg.CreatePoint2d(sk.Position.x, sk.Position.Y + 1.1))
    Set oGeometryIntent = oActiveSheet.CreateGeometryIntent(sk, sk.leader.RootNode.Position)
'also tried
' Set oGeometryIntent = oActiveSheet.CreateGeometryIntent(sk, omidpoint)
' Set oGeometryIntent = oActiveSheet.CreateGeometryIntent(sk, trg.CreatePoint2d(sk.Position.x, sk.Position.Y + 1.1) (this is the start point of the line on the sheetpace)
    
    Call oLeaderPoints.Add(oGeometryIntent)

    Dim sText As String
    sText = "API Leader Note"
    

    Dim oLeaderNote As LeaderNote
    Set oLeaderNote = oActiveSheet.DrawingNotes.LeaderNotes.Add(oLeaderPoints, sText)
    
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 18:58:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13833361#M177311</guid>
      <dc:creator>omartin</dc:creator>
      <dc:date>2025-10-01T18:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ataching leader note to sketched symbol in drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13834852#M177318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3472477"&gt;@omartin&lt;/a&gt;.&amp;nbsp; I was just making educated guesses at what might work above, without actually trying it myself at the time, due to lots of things going on.&amp;nbsp; I thought I remembered this being possible, but its very possible I was wrong.&amp;nbsp; I just got to a slow point at work, so I tried out several things myself, but couldn't make it 'attach' to the sketched symbol either.&amp;nbsp; When inspecting the GeometryIntent of the manually placed LeaderNote that is properly attached, the GeometryIntnent.IntentType = kPoint2dIntent, but then the&amp;nbsp;GeometryIntnent.Geometry property also had a value of type "SketchedSymbol", which allows it access to the properties of the SketchedSymbol.&amp;nbsp; So, the user interface tools allow us to make this connection / attachment, but it is all handled automatically behind the scenes, and we don't know how they are able to make it happen.&lt;/P&gt;
&lt;P&gt;I do not understand how to replicate that by Inventor API code in Inventor 2024 though, because it seems like we've tried about every possible combination.&amp;nbsp;&amp;nbsp;Since a DrawingDimension is one of the types of objects that we can specify as the first input for creating a GeometryIntent, it would seem like providing a SketchedSymbol would also work, due to certain similarities.&amp;nbsp; LeaderNotes use a DimensionStyle to dictate their style, just like a DrawingDimension, then the SketchedSymbol uses a LeaderStyle, which the DimensionStyle also uses, so I made the assumption that they may be compatible.&amp;nbsp; I have seen several cases where other types of objects would work for Inventor API methods, other than the ones mentioned in their 'help' documentation, so I was hoping this might be another case of that type of situation.&amp;nbsp; Maybe they just haven't exposed that specific functionality to us users yet, I don't know.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 19:05:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13834852#M177318</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-10-02T19:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ataching leader note to sketched symbol in drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13834947#M177322</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;, no worries thanks for taking the time to look at it.&amp;nbsp;You are probably right the userInteraction must have some background stuff happening not available pragmatically (or some other steps may need to happen).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through out the years both you and Curtis's input were a big help, I'm still digging up your old posts!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going to have to accept defeat on this one ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Posterity:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I found some other clues, when placed manually, the geometryIntent's parent is a leaderNode object but when using the createIntent function it is a sheet object (could have something to do with the not local error)&lt;/LI&gt;&lt;LI&gt;If you were to place the leader using the command manager and sendkeys, so your leader lands on the sketched geometry, It seems to work. Problem is a reliable way to get the screen coordinates&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 20:22:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ataching-leader-note-to-sketched-symbol-in-drawing/m-p/13834947#M177322</guid>
      <dc:creator>omartin</dc:creator>
      <dc:date>2025-10-02T20:22:58Z</dc:date>
    </item>
  </channel>
</rss>

