<?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 snipped code balloon issue in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/snipped-code-balloon-issue/m-p/13048989#M5813</link>
    <description>&lt;PRE&gt;&lt;SPAN&gt;while using the below code error is showing &lt;BR /&gt;please find error in the code&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Sheet_1&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDrawing&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;.&lt;SPAN&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN&gt;"Sheet:1"&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;VIEW1&lt;/SPAN&gt; = &lt;SPAN&gt;Sheet_1&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN&gt;"VIEW1"&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ptCyl&lt;/SPAN&gt; = &lt;SPAN&gt;VIEW1&lt;/SPAN&gt;.&lt;SPAN&gt;SheetPoint&lt;/SPAN&gt;(-0.3, -0.4)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;balloon3&lt;/SPAN&gt; = &lt;SPAN&gt;Sheet_1&lt;/SPAN&gt;.&lt;SPAN&gt;Balloons&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Assembly8"&lt;/SPAN&gt;,
{&lt;SPAN&gt;ptCyl&lt;/SPAN&gt;}, &lt;SPAN&gt;VIEW1&lt;/SPAN&gt;.&lt;SPAN&gt;GetIntent&lt;/SPAN&gt;(&lt;SPAN&gt;"Part5:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"balloon"&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gokulraj2662000_0-1727416945185.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1414994iF32E99452545662A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gokulraj2662000_0-1727416945185.png" alt="gokulraj2662000_0-1727416945185.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gokulraj2662000_2-1727417159543.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1414997i8BAC90349858D93D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gokulraj2662000_2-1727417159543.png" alt="gokulraj2662000_2-1727417159543.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;please help how to use the balloon snipped code&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2024 06:07:03 GMT</pubDate>
    <dc:creator>gokulraj2662000</dc:creator>
    <dc:date>2024-09-27T06:07:03Z</dc:date>
    <item>
      <title>snipped code balloon issue</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/snipped-code-balloon-issue/m-p/13048989#M5813</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;while using the below code error is showing &lt;BR /&gt;please find error in the code&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Sheet_1&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDrawing&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;.&lt;SPAN&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN&gt;"Sheet:1"&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;VIEW1&lt;/SPAN&gt; = &lt;SPAN&gt;Sheet_1&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN&gt;"VIEW1"&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ptCyl&lt;/SPAN&gt; = &lt;SPAN&gt;VIEW1&lt;/SPAN&gt;.&lt;SPAN&gt;SheetPoint&lt;/SPAN&gt;(-0.3, -0.4)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;balloon3&lt;/SPAN&gt; = &lt;SPAN&gt;Sheet_1&lt;/SPAN&gt;.&lt;SPAN&gt;Balloons&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Assembly8"&lt;/SPAN&gt;,
{&lt;SPAN&gt;ptCyl&lt;/SPAN&gt;}, &lt;SPAN&gt;VIEW1&lt;/SPAN&gt;.&lt;SPAN&gt;GetIntent&lt;/SPAN&gt;(&lt;SPAN&gt;"Part5:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"balloon"&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gokulraj2662000_0-1727416945185.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1414994iF32E99452545662A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gokulraj2662000_0-1727416945185.png" alt="gokulraj2662000_0-1727416945185.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gokulraj2662000_2-1727417159543.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1414997i8BAC90349858D93D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gokulraj2662000_2-1727417159543.png" alt="gokulraj2662000_2-1727417159543.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;please help how to use the balloon snipped code&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 06:07:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/snipped-code-balloon-issue/m-p/13048989#M5813</guid>
      <dc:creator>gokulraj2662000</dc:creator>
      <dc:date>2024-09-27T06:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: snipped code balloon issue</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/snipped-code-balloon-issue/m-p/13049063#M5814</link>
      <description>&lt;P&gt;"assembly8" doesn't have an occurrence number?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Snippet says componentA:1 which suggests it needs a number.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 06:48:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/snipped-code-balloon-issue/m-p/13049063#M5814</guid>
      <dc:creator>James_Willo</dc:creator>
      <dc:date>2024-09-27T06:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: snipped code balloon issue</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/snipped-code-balloon-issue/m-p/13055451#M5815</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16073699"&gt;@gokulraj2662000&lt;/a&gt;.&amp;nbsp; Below are a couple links to the online help documentation for a couple of the methods you are using in that one line of code, just for reference, and further reading.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=979c9200-c948-e626-a621-b7993fc1969e" target="_blank" rel="noopener"&gt;IManagedBalloons.Add Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=120aeb0f-8dec-55da-6882-21e69c442dda" target="_blank" rel="noopener"&gt;IManagedDrawingView.GetIntent Method (ComponentArgument, String, PointIntentEnum, CurveChoiceSpec)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first method (Function) being used in Line 11 is the IManagedBalloons.Add method.&lt;/P&gt;
&lt;P&gt;The first 'input' that method is asking for is the 'name' you want to assign to the new balloon you are about to add.&amp;nbsp; I do not think what you specify as this name is important.&amp;nbsp; However, I am not sure if it allows you to specify the same name for multiple balloons or not.&amp;nbsp; The documentation is not clear about that little detail.&lt;/P&gt;
&lt;P&gt;The second thing it is asking for is an IEnumerable(Of &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=e7fa255f-9a6a-8c00-4399-2c0185c3b6db" target="_blank" rel="noopener"&gt;DocumentUnitsPoint2d&lt;/A&gt;) for specifying the points of the leader.&lt;/P&gt;
&lt;P&gt;The third thing it is asking for is a &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-GeometryIntent" target="_blank" rel="noopener"&gt;GeometryIntent&lt;/A&gt;, which is what ties things like dimensions or leaders to geometry in views, among other uses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To specify the required GeometryIntent input, you are using the other method named IManagedDrawingView.GetIntent.&amp;nbsp; That method asks for 2 required inputs, and also has 2 additional inputs that are optional, but are sometimes needed, in more complex situations.&lt;/P&gt;
&lt;P&gt;The first thing that method asks for as input, is a &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=b637fd33-4bd6-f918-be0f-a13a8f646789" target="_blank" rel="noopener"&gt;ComponentArgument&lt;/A&gt;.&amp;nbsp; This can just be one of 3 different types of things:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A String - the exact name of the assembly component, as it appears in the model browser tree&lt;/LI&gt;
&lt;LI&gt;An array of Strings - used when the component being specified is not a top level component, where the array of Strings contains the exact names of the component representing the top level sub-assembly component, then the name of the component below that, and so on, including the name of the component you are interested in as the last String in the array.&lt;/LI&gt;
&lt;LI&gt;Or a &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=15e09066-250d-4037-a98b-9acf6a2d0c7f" target="_blank" rel="noopener"&gt;ManagedComponentOccurrence&lt;/A&gt; object.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In your case, you are attempting to use the first option...the direct name of the component occurrence ("Part5:1") as the first input for this method.&amp;nbsp; That will only work if that component is in the top level of the assembly directly.&amp;nbsp; Then the second input that method is asking for is the 'entity name'.&amp;nbsp; You are specifying "balloon" there.&amp;nbsp; If there is not an entity within that part you are specifying, that is named "balloon", then it will not be able to find it, and will likely throw an error.&amp;nbsp; Have you assigned the "balloon" name to an entity (face, edge, vertex) within that specified part yet?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 17:41:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/snipped-code-balloon-issue/m-p/13055451#M5815</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-09-30T17:41:15Z</dc:date>
    </item>
  </channel>
</rss>

