<?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: Auto balloon using iLogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/8953093#M100309</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Herm Jan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We upgraded to Inventor Pro 2019, I have tried to run this code through the VBA EDITOR and will not run.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Run time error '5':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Invalid procedure call or argument.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The debug has gone to this line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set oDrawingCurveSegment = oDrawDoc.SelectSet.Item(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 13:02:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-07T13:02:59Z</dc:date>
    <item>
      <title>Auto balloon using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6958095#M70965</link>
      <description>&lt;P&gt;hey guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to find a way to auto-balloon all part on drawing created using iLogic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently my assembly is driven by iLogic, iLogic also generates&amp;nbsp;the idw but I can't find a way to balloon the part other than manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a code snippet for auto balloon?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 12:24:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6958095#M70965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-20T12:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Auto balloon using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6961715#M71026</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;look here:&amp;nbsp; &lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-coding-to-create-automated-drawing/m-p/3412839" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-coding-to-create-automated-drawing/m-p/3412839&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;to create a balloon with VBA, this is the code from the Inventor help:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub CreateBalloon()
    &lt;SPAN style="color: blue;"&gt;' Set a reference to the drawing document.&lt;/SPAN&gt;
    &lt;SPAN style="color: blue;"&gt;' This assumes a drawing document is active.&lt;/SPAN&gt;
    Dim oDrawDoc As DrawingDocument
    Set oDrawDoc = ThisApplication.ActiveDocument

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the active sheet.&lt;/SPAN&gt;
    Dim oActiveSheet As Sheet
    Set oActiveSheet = oDrawDoc.ActiveSheet

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the drawing curve segment.&lt;/SPAN&gt;
    &lt;SPAN style="color: blue;"&gt;' This assumes that a drwaing curve is selected.&lt;/SPAN&gt;
    Dim oDrawingCurveSegment As DrawingCurveSegment
    Set oDrawingCurveSegment = oDrawDoc.SelectSet.Item(1)

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the drawing curve.&lt;/SPAN&gt;
    Dim oDrawingCurve As DrawingCurve
    Set oDrawingCurve = oDrawingCurveSegment.Parent

    &lt;SPAN style="color: blue;"&gt;' Get the mid point of the selected curve&lt;/SPAN&gt;
    &lt;SPAN style="color: blue;"&gt;' assuming that the selection curve is linear&lt;/SPAN&gt;
    Dim oMidPoint As Point2d
    Set oMidPoint = oDrawingCurve.MidPoint

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the TransientGeometry object.&lt;/SPAN&gt;
    Dim oTG As TransientGeometry
    Set oTG = ThisApplication.TransientGeometry

    Dim oLeaderPoints As ObjectCollection
    Set oLeaderPoints = ThisApplication.TransientObjects.CreateObjectCollection

    &lt;SPAN style="color: blue;"&gt;' Create a couple of leader points.&lt;/SPAN&gt;
    Call oLeaderPoints.Add(oTG.CreatePoint2d(oMidPoint.X + 10, oMidPoint.Y + 10))
    Call oLeaderPoints.Add(oTG.CreatePoint2d(oMidPoint.X + 10, oMidPoint.Y + 5))

    &lt;SPAN style="color: blue;"&gt;' Add the GeometryIntent to the leader points collection.&lt;/SPAN&gt;
    &lt;SPAN style="color: blue;"&gt;' This is the geometry that the balloon will attach to.&lt;/SPAN&gt;
    Dim oGeometryIntent As GeometryIntent
    Set oGeometryIntent = oActiveSheet.CreateGeometryIntent(oDrawingCurve)
    Call oLeaderPoints.Add(oGeometryIntent)

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the parent drawing view of the selected curve&lt;/SPAN&gt;
    Dim oDrawingView As DrawingView
    Set oDrawingView = oDrawingCurve.Parent

    &lt;SPAN style="color: blue;"&gt;' Set a reference to the referenced model document&lt;/SPAN&gt;
    Dim oModelDoc As Document
    Set oModelDoc = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument

    &lt;SPAN style="color: blue;"&gt;' Check if a partslist or a balloon has already been created for this model&lt;/SPAN&gt;
    Dim IsDrawingBOMDefined As Boolean
    IsDrawingBOMDefined = oDrawDoc.DrawingBOMs.IsDrawingBOMDefined(oModelDoc.FullFileName)

    Dim oBalloon As Balloon

    If IsDrawingBOMDefined Then

        &lt;SPAN style="color: blue;"&gt;' Just create the balloon with the leader points&lt;/SPAN&gt;
        &lt;SPAN style="color: blue;"&gt;' All other arguments can be ignored&lt;/SPAN&gt;
        Set oBalloon = oDrawDoc.ActiveSheet.Balloons.Add(oLeaderPoints)
    Else

        &lt;SPAN style="color: blue;"&gt;' First check if the 'structured' BOM view has been enabled in the model&lt;/SPAN&gt;

        &lt;SPAN style="color: blue;"&gt;' Set a reference to the model's BOM object&lt;/SPAN&gt;
        Dim oBOM As BOM
        Set oBOM = oModelDoc.ComponentDefinition.BOM

        If oBOM.StructuredViewEnabled Then

            &lt;SPAN style="color: blue;"&gt;' Level needs to be specified&lt;/SPAN&gt;
            &lt;SPAN style="color: blue;"&gt;' Numbering options have already been defined&lt;/SPAN&gt;
            &lt;SPAN style="color: blue;"&gt;' Get the Level ('All levels' or 'First level only')&lt;/SPAN&gt;
            &lt;SPAN style="color: blue;"&gt;' from the model BOM view - must use the same here&lt;/SPAN&gt;
            Dim Level As PartsListLevelEnum
            If oBOM.StructuredViewFirstLevelOnly Then
                Level = kStructured
            Else
                Level = kStructuredAllLevels
            End If

            &lt;SPAN style="color: blue;"&gt;' Create the balloon by specifying just the level&lt;/SPAN&gt;
            Set oBalloon = oActiveSheet.Balloons.Add(oLeaderPoints, , Level)
        Else

            &lt;SPAN style="color: blue;"&gt;' Level and numbering options must be specified&lt;/SPAN&gt;
            &lt;SPAN style="color: blue;"&gt;' The corresponding model BOM view will automatically be enabled&lt;/SPAN&gt;
            Dim oNumberingScheme As NameValueMap
            Set oNumberingScheme = ThisApplication.TransientObjects.CreateNameValueMap

            &lt;SPAN style="color: blue;"&gt;' Add the option for a comma delimiter&lt;/SPAN&gt;
            oNumberingScheme.Add "Delimiter", ","

            &lt;SPAN style="color: blue;"&gt;' Create the balloon by specifying the level and numbering scheme&lt;/SPAN&gt;
            Set oBalloon = oActiveSheet.Balloons.Add(oLeaderPoints, , kStructuredAllLevels, oNumberingScheme)
        End If
    End If
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 15:50:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6961715#M71026</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2017-03-21T15:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Auto balloon using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6970352#M71129</link>
      <description>&lt;P&gt;Yeah I based my code for automated drawing almost entirely on this thread. But there's no mention of balloon in the thread. At least didn't see any.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the code. I'll have a look at it pretty soon. You mentioned you got it from inventor help? I haven't seen anything this detailed in inventor help, where did you find it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 11:41:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6970352#M71129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T11:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Auto balloon using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6970645#M71133</link>
      <description>&lt;P&gt;it comes from the help in Inventor:&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="APIhelp.png" style="width: 533px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/336616i1062A96B37901C21/image-size/large?v=v2&amp;amp;px=999" role="button" title="APIhelp.png" alt="APIhelp.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 12:57:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6970645#M71133</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2017-03-24T12:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Auto balloon using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6979387#M71217</link>
      <description>&lt;P&gt;I looked at the code from the help. It will add a balloon to the midpoint of the line that is selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My guess is that with a For loop I could go and add a balloon to each of the part. But how would I tell it to go and look for line 1 of part1 and then line 1 of part2?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 18:14:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/6979387#M71217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T18:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Auto balloon using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/8203631#M87744</link>
      <description>&lt;P&gt;Have you achieved your goal?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't you know how to automate check&amp;nbsp;for ballooning all&amp;nbsp;ItemRefs in PartList (manually you just check&amp;nbsp;if there is a "balloon sign" in each cell of first column when in PartList editing mode)?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 11:15:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/8203631#M87744</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2018-08-16T11:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Auto balloon using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/8203844#M87755</link>
      <description>&lt;P&gt;Got it - DrawingBOMRow.Ballooned Property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for have disturbed.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 12:25:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/8203844#M87755</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2018-08-16T12:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Auto balloon using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/8953093#M100309</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Herm Jan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We upgraded to Inventor Pro 2019, I have tried to run this code through the VBA EDITOR and will not run.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Run time error '5':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Invalid procedure call or argument.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The debug has gone to this line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set oDrawingCurveSegment = oDrawDoc.SelectSet.Item(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 13:02:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/8953093#M100309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T13:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Auto balloon using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/8987085#M100704</link>
      <description>&lt;P&gt;this line will only work if you first have selected a line.&lt;/P&gt;&lt;P&gt;so select a line, (that wil than be in the "SelectSet") than run the code&lt;/P&gt;&lt;P&gt;if nothing is in the selectset, you will get an error.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 09:11:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-balloon-using-ilogic/m-p/8987085#M100704</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2019-08-26T09:11:44Z</dc:date>
    </item>
  </channel>
</rss>

