<?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: Unable to create balloon from workpoint in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8668343#M95735</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1116822"&gt;@chrisdrogers&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, workfeatures (like work point , workplanes) are not supported to create balloon via Inventor API. Even through UI, centermark(workpoint) can not be used to create balloons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please log this wish list at ideastation using below link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2019 12:13:51 GMT</pubDate>
    <dc:creator>chandra.shekar.g</dc:creator>
    <dc:date>2019-03-19T12:13:51Z</dc:date>
    <item>
      <title>Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8662740#M95656</link>
      <description>&lt;P&gt;I am using the Create a balloon API sample in the Inventor API sample.&amp;nbsp; I need to be able to attach the balloon to a parts work point.&amp;nbsp; I get an "unspecified error" when trying to call Sheet.Balloons.Add() with the Geometry Intent of a work point.&amp;nbsp; Is using work points for balloons restricted?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 23:26:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8662740#M95656</guid>
      <dc:creator>chrisdrogers</dc:creator>
      <dc:date>2019-03-15T23:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8665118#M95691</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1116822"&gt;@chrisdrogers&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please share the iLogic you have so far. It's easy to miss something important when working with Dimension objects in the Inventor drawing Environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:56:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8665118#M95691</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2019-03-18T09:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8665968#M95703</link>
      <description>&lt;P&gt;I am not using iLogic.&amp;nbsp; I am using C# with the Inventor API.&amp;nbsp; I have no issues connecting a dimension to a work point.&amp;nbsp; The only annotation that I cannot use with a work point through the Inventor API is a balloon. A very simplified version of the code is below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var objectCollection = this.InventorHost.TransientObjects.CreateObjectCollection();&lt;/P&gt;
&lt;P&gt;objectCollection.Add(ivTextOrigin);&lt;BR /&gt;objectCollection.Add(geometryIntentofWorkpoint);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this.Balloon = this.Sheet.Balloons.Add(objectCollection);&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8665968#M95703</guid>
      <dc:creator>chrisdrogers</dc:creator>
      <dc:date>2019-03-18T14:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8666034#M95704</link>
      <description>&lt;P&gt;Fair enough; can you share a drawing with the same geometry that is failing as in your example? (Autodesk will ask for it anyway when they see/reply to this post)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, have you seen this example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/ADN-DevTech/Inventor-Training-Material/blob/master/Module%2015%20-%20Drawing%20Advanced/Sample%20Module%2015%20C%23/InvEXE/InvEXE/Form1.cs#L237" target="_blank"&gt;https://github.com/ADN-DevTech/Inventor-Training-Material/blob/master/Module%2015%20-%20Drawing%20Advanced/Sample%20Module%2015%20C%23/InvEXE/InvEXE/Form1.cs#L237&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public void CreateBalloon()
            {
             // Set a reference to the drawing document.
             // This assumes a drawing document is active.
              DrawingDocument oDrawDoc = (DrawingDocument)_InvApplication.ActiveDocument;

             // Set a reference to the active sheet.
             Sheet oActiveSheet  = oDrawDoc.ActiveSheet;

             // Set a reference to the drawing curve segment.
             // This assumes that a drwaing curve is selected.
             DrawingCurveSegment oDrawingCurveSegment   = oDrawDoc.SelectSet[1];

             // Set a reference to the drawing curve.
             DrawingCurve oDrawingCurve = oDrawingCurveSegment.Parent;

             // Get the mid point of the selected curve
             // assuming that the selection curve is linear
             Point2d oMidPoint  = oDrawingCurve.MidPoint;

             // Set a reference to the TransientGeometry object.
             TransientGeometry oTG  = _InvApplication.TransientGeometry;

             ObjectCollection oLeaderPoints  = _InvApplication.TransientObjects.CreateObjectCollection();

             // Create a couple of leader points.
             oLeaderPoints.Add(oTG.CreatePoint2d(oMidPoint.X + 10, oMidPoint.Y + 10));
             oLeaderPoints.Add(oTG.CreatePoint2d(oMidPoint.X + 10, oMidPoint.Y + 5));

             // Add the GeometryIntent to the leader points collection.
             // This is the geometry that the balloon will attach to.
             GeometryIntent oGeometryIntent  = oActiveSheet.CreateGeometryIntent(oDrawingCurve);
             oLeaderPoints.Add(oGeometryIntent);

             // Set a reference to the parent drawing view of the selected curve
             DrawingView oDrawingView   = oDrawingCurve.Parent;

             // Set a reference to the referenced model document
             Document oModelDoc = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument;

             // Check if a partslist or a balloon has already been created for this model
             bool IsDrawingBOMDefined = false;
             IsDrawingBOMDefined = oDrawDoc.DrawingBOMs.IsDrawingBOMDefined(oModelDoc.FullFileName);

             Balloon oBalloon = null;


             if (IsDrawingBOMDefined) {
              // Just create the balloon with the leader points
              // All other arguments can be ignored
              oBalloon = oDrawDoc.ActiveSheet.Balloons.Add(oLeaderPoints);

             } else {
              // First check if the 'structured' BOM view has been enabled in the model

              // Set a reference to the model's BOM object
                 AssemblyDocument oAssDoc = (AssemblyDocument)oModelDoc;
                 AssemblyComponentDefinition oComDef = oAssDoc.ComponentDefinition;
              BOM oBOM =  oComDef.BOM;


              if (oBOM.StructuredViewEnabled) {
               // Level needs to be specified
               // Numbering options have already been defined
               // Get the Level ('All levels' or 'First level only')
               // from the model BOM view - must use the same here
               PartsListLevelEnum Level = default(PartsListLevelEnum);
               if (oBOM.StructuredViewFirstLevelOnly) {
                Level = PartsListLevelEnum.kStructured;
               } else {
                Level = PartsListLevelEnum.kStructuredAllLevels;
               }

               // Create the balloon by specifying just the level
               oBalloon = oActiveSheet.Balloons.Add(oLeaderPoints,null , Level);

              } else {
               // Level and numbering options must be specified
               // The corresponding model BOM view will automatically be enabled
               NameValueMap oNumberingScheme  = _InvApplication.TransientObjects.CreateNameValueMap();

               // Add the option for a comma delimiter
               oNumberingScheme.Add("Delimiter", ",");

               // Create the balloon by specifying the level and numbering scheme
               oBalloon = oActiveSheet.Balloons.Add(oLeaderPoints,null , PartsListLevelEnum.kStructuredAllLevels, oNumberingScheme);
              }
             }
            }&lt;/PRE&gt;
&lt;P&gt;(I assume this ^ is similar to the API Example? - I haven't checked it yet)&lt;/P&gt;
&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:45:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8666034#M95704</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2019-03-18T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8666148#M95706</link>
      <description>&lt;P&gt;Yes, in the example you supplied and the Autodesk help, it is using a drawing curve to attain the geometry intent used.&amp;nbsp; I need to be able to use a work point to attain the geometry intent which will be used for the attachment point of the balloon.&amp;nbsp; I can use a drawing curve successfully, but when I switch to a work point I get an informative "Unspecified error".&amp;nbsp; I just need to know if it is possible to use work points for a balloon.&amp;nbsp; I do not see that specified anywhere in the API Reference or forum.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 15:14:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8666148#M95706</guid>
      <dc:creator>chrisdrogers</dc:creator>
      <dc:date>2019-03-18T15:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8666289#M95709</link>
      <description>&lt;P&gt;In theory, once the Work Features are brought into the drawing (using the "Include WorkFeatures" function) there should be no reason why you can't use a WorkPoint to drive a location for a balloon.&lt;/P&gt;
&lt;P&gt;What the above function does however is create a "CenterMark" object which has 5 point2d objects including its position:&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="2019-03-18 15_39_27-Reply to Message - Autodesk Community.png" style="width: 899px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/615181i43F8DF93FDCC8111/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-03-18 15_39_27-Reply to Message - Autodesk Community.png" alt="2019-03-18 15_39_27-Reply to Message - Autodesk Community.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, unless I'm mistaken this is the only way of working with (and including) WorkFeature geometry in a drawing view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your solution needs to rely upon the user manually pulling the work features into the part using the built-in (manual) tools, or have the user select the relevant &lt;EM&gt;model.ipt&lt;/EM&gt; browsernode and automatically run the "Include Work Features" command- something I just attempted to look up using the Event Viewer application without success!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Neither of which are particularly slick solutions. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@F462EEC827775DA92CB03B7FC147D389/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have a code example showing how to pull WorkFeatures into a drawing view (using the API) otherwise I would share it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 15:53:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8666289#M95709</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2019-03-18T15:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8666326#M95711</link>
      <description>&lt;P&gt;The drawings I am creating are fully automated and not reliant on any user interaction or selection. I am successfully using work points for linear dimensions, ordinate dimensions, leader notes, etc.&amp;nbsp; In order to use the work point, you have to create a workpoint proxy, SetIncludeStatus = true, and create a center mark at this location by using Sheet.Centermarks.AddByWorkFeature(proxy, view).&amp;nbsp; Once you have the center mark then you call Sheet.CreateGeometryIntent(centerMark, IntentTypeEnum.kPoint2dIntent).&amp;nbsp; This returns the GeometryIntent for the centermark/work point.&amp;nbsp; I use this exact logic for multiple annotations successfully, but when using this GeometryIntent for balloons it fails.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 16:04:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8666326#M95711</guid>
      <dc:creator>chrisdrogers</dc:creator>
      <dc:date>2019-03-18T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8668343#M95735</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1116822"&gt;@chrisdrogers&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, workfeatures (like work point , workplanes) are not supported to create balloon via Inventor API. Even through UI, centermark(workpoint) can not be used to create balloons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please log this wish list at ideastation using below link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:13:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8668343#M95735</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2019-03-19T12:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8669562#M95770</link>
      <description>&lt;P&gt;Since this functionality does not exist, I have created an Inventor Idea as you requested here:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/allow-balloons-to-work-with-work-points/idi-p/8668749" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ideas/allow-balloons-to-work-with-work-points/idi-p/8668749&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anyone is inclined, please follow that link and vote on the idea to get it in versions of Inventor.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 18:31:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/8669562#M95770</guid>
      <dc:creator>chrisdrogers</dc:creator>
      <dc:date>2019-03-19T18:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create balloon from workpoint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/12529901#M163147</link>
      <description>&lt;P&gt;Hey Chris,&lt;BR /&gt;Did you ever figure out a solution to this?&amp;nbsp;&amp;nbsp; I'm going through the EXACT same process as you for auto-generating balloons.&amp;nbsp; I've already placed Named Workpoints, pulled them in, generated proper geometry intent coordinates....only for it to fail right when I go to generate the balloons.&amp;nbsp; I've correctly established that it has something to do with Workpoints not maintaining any sort of association with the models that they are pulled from, but besides going back to that suggested code that someone posted earlier in this thread, I wanted to know if you found any sort of work around?&amp;nbsp; I've found that that suggested code doesn't always work (hence why I changed to this method).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be awesome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 18:16:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-create-balloon-from-workpoint/m-p/12529901#M163147</guid>
      <dc:creator>W_Barnett</dc:creator>
      <dc:date>2024-01-30T18:16:29Z</dc:date>
    </item>
  </channel>
</rss>

