<?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: How to add prompted text at 12,3,6 and 9 o'clock to Balloons. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7049967#M71957</link>
    <description>&lt;P&gt;One other thing is it easy to make the text follow the balloon like a symbol?&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 16:35:24 GMT</pubDate>
    <dc:creator>michael_wardas</dc:creator>
    <dc:date>2017-04-28T16:35:24Z</dc:date>
    <item>
      <title>How to add prompted text at 12,3,6 and 9 o'clock to Balloons.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7046750#M71921</link>
      <description>&lt;P&gt;We've used Inventor professional here for a number of years and struggled with attaching qty text on all 4 quadrants of the balloon based on location of the leader. I've created a symbol with prompted text (displays as '#"X) but that doesn't help me attach it to the center of a balloon (can't be done) plus it's another step done after the balloons are placed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately see the attached image to see what I want to be created when I attach a balloon. The qty beside the balloon is the qty for that particular area of interest, not the whole view nor the whole dwg.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Placing balloons Inventor 2015.JPG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/350130i05727760F36E94C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Placing balloons Inventor 2015.JPG" alt="Placing balloons Inventor 2015.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using Inventor Professional 2015&lt;/P&gt;&lt;P&gt;64-Bit Edition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Michael Wardas&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:32:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7046750#M71921</guid>
      <dc:creator>michael_wardas</dc:creator>
      <dc:date>2017-04-27T14:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to add prompted text at 12,3,6 and 9 o'clock to Balloons.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7046876#M71928</link>
      <description>&lt;P&gt;Hello Michael,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't you use the built in split balloon to do this?&lt;/P&gt;
&lt;P&gt;see my screencast: &lt;A href="http://autode.sk/2oN3tlR" target="_blank"&gt;http://autode.sk/2oN3tlR&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 15:10:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7046876#M71928</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2017-04-27T15:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add prompted text at 12,3,6 and 9 o'clock to Balloons.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7047242#M71932</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;However I'm looking to specify a qty for a particular area of interest as opposed to the total BOM qty as per my previous attached example.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 16:53:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7047242#M71932</guid>
      <dc:creator>michael_wardas</dc:creator>
      <dc:date>2017-04-27T16:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add prompted text at 12,3,6 and 9 o'clock to Balloons.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7049745#M71953</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the following VBA code to draw the text across 3'0 clock and 9'o clock. Similarly, the code can be extended for 9'o clock and 12'o clock.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On running this code, it will ask to select a balloon. After selection, 2 texts are generated and positioned at 3'o clock and 9'o clock.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()

    Dim oDrawDoc As DrawingDocument
    Set oDrawDoc = ThisApplication.ActiveDocument

    Dim oBalloon As Balloon
    Set oBalloon = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingBalloonFilter, "Select a balloon")

    Dim oStyle As BalloonStyle
    For Each oStyle In oDrawDoc.StylesManager.BalloonStyles
    
    If oStyle.Name = "Balloon Qty" Then
        Set oStyle = oDrawDoc.StylesManager.BalloonStyles.Item("Balloon Qty")
    End If
    
    Next
    
    If oStyle Is Nothing Then
        Set oStyle = oDrawDoc.StylesManager.BalloonStyles.Item(1).Copy("Balloon Qty")
    End If

    oStyle.BalloonType = BalloonTypeEnum.kCircularWithOneEntryBalloonType

    oStyle.Properties = "PartsListProperty='45575'"

    oBalloon.Style = oStyle

    Dim strQty As String
    strQty = oBalloon.BalloonValueSets.Item(1).Value
    strQty = strQty &amp;amp; "X"

    oBalloon.Style = oDrawDoc.StylesManager.BalloonStyles.Item(1)

    oBalloon.SetBalloonType (BalloonTypeEnum.kCircularWithOneEntryBalloonType)

    Call oStyle.Delete

    Dim txtPt3o As Point2d
    Set txtPt3o = ThisApplication.TransientGeometry.CreatePoint2d(oBalloon.Position.X, oBalloon.Position.Y)
    txtPt3o.X = txtPt3o.X + oBalloon.Style.BalloonDiameter / 2
    txtPt3o.Y = txtPt3o.Y + oDrawDoc.StylesManager.TextStyles.Item(1).FontSize / 2

    Dim oText3o As Inventor.GeneralNote
    Set oText3o = oDrawDoc.Sheets.Item(1).DrawingNotes.GeneralNotes.AddFitted(txtPt3o, strQty)

    Dim txtPt9o As Point2d
    Set txtPt9o = ThisApplication.TransientGeometry.CreatePoint2d(oBalloon.Position.X, oBalloon.Position.Y)
    txtPt9o.X = (txtPt9o.X - (oBalloon.Style.BalloonDiameter / 2)) - (oDrawDoc.StylesManager.TextStyles.Item(1).WidthScale * 0.6)
    txtPt9o.Y = txtPt9o.Y + oDrawDoc.StylesManager.TextStyles.Item(1).FontSize / 2

    Dim oText9o As Inventor.GeneralNote
    Set oText9o = oDrawDoc.Sheets.Item(1).DrawingNotes.GeneralNotes.AddFitted(txtPt9o, strQty)

End Sub

&lt;/PRE&gt;
&lt;P&gt;Please feel free to contact if there is any doubt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If solves your problem, click on "Accept as solution" / give a "Kudo"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 15:18:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7049745#M71953</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2017-04-28T15:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add prompted text at 12,3,6 and 9 o'clock to Balloons.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7049929#M71955</link>
      <description>&lt;P&gt;This works great!&lt;/P&gt;&lt;P&gt;I will try to add the 12 and 6 oclock positions.&lt;/P&gt;&lt;P&gt;Is there an easy way to be 'prompted' for the text when inserting so I don't have to go back and edit?&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 16:19:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7049929#M71955</guid>
      <dc:creator>michael_wardas</dc:creator>
      <dc:date>2017-04-28T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add prompted text at 12,3,6 and 9 o'clock to Balloons.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7049967#M71957</link>
      <description>&lt;P&gt;One other thing is it easy to make the text follow the balloon like a symbol?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 16:35:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7049967#M71957</guid>
      <dc:creator>michael_wardas</dc:creator>
      <dc:date>2017-04-28T16:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to add prompted text at 12,3,6 and 9 o'clock to Balloons.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7050264#M71961</link>
      <description>&lt;P&gt;I just tried messing around to see if you could attach a leader to the balloon so then you could use a leader note that would follow it... but that failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it looks like you would have to use assets or something to locate the balloon and catch the balloon location changes with an event and relocate the text notes in relation to the new geometry...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'This attached code is test I did with LeaderNotes that failed when trying to use it with balloons. Even in the API documentation, none of the objects listed for valid geometry intent include balloons...&lt;/P&gt;
&lt;PRE&gt; Sub Main()
	oDrawDoc = ThisApplication.ActiveDocument
	
	'Dim oBalloon As Balloon
	'oBalloon = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingBalloonFilter, "Select a balloon")
	oBalloon = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAllEntitiesFilter, "Select a balloon")
	
	Call AddGenNoteWithLeader(oBalloon)
End Sub

Dim oDrawDoc As DrawingDocument

Sub AddGenNoteWithLeader(oBalloon As Object)
		
		Dim ballPt3o As Point2d
		ballPt3o = ThisApplication.TransientGeometry.CreatePoint2d(oBalloon.Position.X, oBalloon.Position.Y)
		
		Dim txtPt3o As Point2d
		txtPt3o = ThisApplication.TransientGeometry.CreatePoint2d(oBalloon.Position.X, oBalloon.Position.Y)
		
		txtPt3o.X = ballPt3o.X + 5'+ oBalloon.Style.BalloonDiameter / 2
		txtPt3o.Y = ballPt3o.Y + 4'+ oDrawDoc.StylesManager.TextStyles.Item(1).FontSize / 2
		
		
		Dim oLeaderPoints As ObjectCollection
		oLeaderPoints = ThisApplication.TransientObjects.CreateObjectCollection
		
	'Where to place the text
		oLeaderPoints.Add(txtPt3o)
		
	'What to attach leader arrow to	
		Dim oGeometryIntent As GeometryIntent
		'oGeometryIntent = ThisApplication.ActiveDocument.ActiveSheet.CreateGeometryIntent(oCurve)
		'oGeometryIntent = oDrawDoc.ActiveSheet.CreateGeometryIntent(ballPt3o, ballPt3o)
		oGeometryIntent = oDrawDoc.ActiveSheet.CreateGeometryIntent(oBalloon)
		
		oLeaderPoints.Add(oGeometryIntent)
		
		Dim oText3o As Inventor.LeaderNote
		
	Try	
		oText3o = oDrawDoc.Sheets.Item(1).DrawingNotes.LeaderNotes.Add(oLeaderPoints, "Hey")
		oText3o.LeaderVisible = False
	Catch
		MsgBox("You is has failed")
	End Try

End Sub&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 18:40:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7050264#M71961</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-04-28T18:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add prompted text at 12,3,6 and 9 o'clock to Balloons.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7054243#M71974</link>
      <description>&lt;P&gt;Hi Micheal,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One other thing is it easy to make the text follow the balloon like a symbol?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;Please name the symbol with example image. Let you know the possibility.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Is there an easy way to be 'prompted' for the text when inserting so I don't have to go back and edit?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;Yes, It can be achieved through a Windows application which contains textbox.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;Required text can be entered in that textbox.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 04:33:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-add-prompted-text-at-12-3-6-and-9-o-clock-to-balloons/m-p/7054243#M71974</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2017-05-02T04:33:44Z</dc:date>
    </item>
  </channel>
</rss>

