<?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 Inserting/Adding all Balloons from Parts List in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inserting-adding-all-balloons-from-parts-list/m-p/5690222#M117334</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am automating my drawing and I couldnt find a way to add new balloons from my parts list into the drawing. I saw several posts that renumbers or finds which item is not ballooned but i was looking at adding balloons on a drawing without any initial balloons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a section of the code I used but I couldnt not get past the [virtualcomponent as object] part:&lt;/P&gt;&lt;P&gt;'PARTS LIST&lt;BR /&gt;Dim oPartslist As PartsList&lt;BR /&gt;oPartslist = SSheet.PartsLists.Add(oPartDocS, oTG.CreatePoint2d(0.965, 26.828), PartsListLevelEnum.kFirstLevelComponents, , , False)&lt;/P&gt;&lt;P&gt;' Add balloon from parts list&lt;/P&gt;&lt;P&gt;Dim oObjBalloon As ObjectCollection&lt;BR /&gt;oObjBalloon = invApp.TransientObjects.CreateObjectCollection&lt;BR /&gt;Call oObjBalloon.Add(oTG.CreatePoint2d(22, 17))&lt;BR /&gt;Call oObjBalloon.Add(oTG.CreatePoint2d(20, 19.3))&lt;BR /&gt;Dim oBalloon As Balloon&lt;BR /&gt;oBalloon = SSheet.Balloons.Add(oObjBalloon, oPartslist.PartsListRows.Item(1)) &amp;nbsp;' This is where I think I have the virtual component not well defined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2015 20:15:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-23T20:15:00Z</dc:date>
    <item>
      <title>Inserting/Adding all Balloons from Parts List</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inserting-adding-all-balloons-from-parts-list/m-p/5690222#M117334</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am automating my drawing and I couldnt find a way to add new balloons from my parts list into the drawing. I saw several posts that renumbers or finds which item is not ballooned but i was looking at adding balloons on a drawing without any initial balloons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a section of the code I used but I couldnt not get past the [virtualcomponent as object] part:&lt;/P&gt;&lt;P&gt;'PARTS LIST&lt;BR /&gt;Dim oPartslist As PartsList&lt;BR /&gt;oPartslist = SSheet.PartsLists.Add(oPartDocS, oTG.CreatePoint2d(0.965, 26.828), PartsListLevelEnum.kFirstLevelComponents, , , False)&lt;/P&gt;&lt;P&gt;' Add balloon from parts list&lt;/P&gt;&lt;P&gt;Dim oObjBalloon As ObjectCollection&lt;BR /&gt;oObjBalloon = invApp.TransientObjects.CreateObjectCollection&lt;BR /&gt;Call oObjBalloon.Add(oTG.CreatePoint2d(22, 17))&lt;BR /&gt;Call oObjBalloon.Add(oTG.CreatePoint2d(20, 19.3))&lt;BR /&gt;Dim oBalloon As Balloon&lt;BR /&gt;oBalloon = SSheet.Balloons.Add(oObjBalloon, oPartslist.PartsListRows.Item(1)) &amp;nbsp;' This is where I think I have the virtual component not well defined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 20:15:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inserting-adding-all-balloons-from-parts-list/m-p/5690222#M117334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-23T20:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting/Adding all Balloons from Parts List</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inserting-adding-all-balloons-from-parts-list/m-p/5707666#M117335</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample that adds a balloon, though only temporarily in this case.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2013/11/get-itemnumber-from-the-drawingcurve.html" target="_self"&gt;http://adndevblog.typepad.com/manufacturing/2013/11/get-itemnumber-from-the-drawingcurve.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You just have to remove the&lt;/P&gt;
&lt;PRE&gt;Call oTransaction.Abort&lt;/PRE&gt;
&lt;P&gt;... part of the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 19:38:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inserting-adding-all-balloons-from-parts-list/m-p/5707666#M117335</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2015-07-06T19:38:11Z</dc:date>
    </item>
  </channel>
</rss>

