<?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: Inventor AIP Samples in the API Help Fail. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8885864#M99069</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5352440"&gt;@clutsa&lt;/a&gt;,&amp;nbsp;thanks for the quick response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, those two buttons did show up in the File Browser, I was thinking they would be added to the top ribbon instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I just tried was closing the Inventor session (not saving the AppProject) and started a new Inventor session. After verifying I did&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;not&lt;/U&gt;&amp;nbsp;&lt;/STRONG&gt;have the buttons in the File Browser, I re-ran the Sub with breakstops on oFileBrowserControls looking for the .AddButton command. There still isn't the command listed in Watches panel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If .AddButton is available for the API to call, why isn't it shown in a Watch?&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2019 16:36:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-02T16:36:37Z</dc:date>
    <item>
      <title>Inventor AIP Samples in the API Help Fail.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8885340#M99049</link>
      <description>&lt;P&gt;Good morning all, I'm trying to learn the AIP. Going through some of the example in the API help section, there are several samples (about every other one) that fail when I run them. I have tried running them in a ZeroDocument/part/assembly environment and with no changes to the code or outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, when I try to run the "Add commands to the application menu API Sample" (shown at the end), here is what I see:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="INV_Demo2.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/653237i2098B92BEE528931/image-size/medium?v=v2&amp;amp;px=400" role="button" title="INV_Demo2.PNG" alt="INV_Demo2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Placing a watch on oFileBrowserControls agrees with the error that the .AddButton command isn't found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I check with Intelisense, it does show up as an available method:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="INV_Demo1.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/653236i77B7522F33CEAE83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="INV_Demo1.PNG" alt="INV_Demo1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API samples inside the API help documentation are meant to be stand-alone subs, right?&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub AddCommandsToFileBrowser()
    ' Get the application menu controls collection
    Dim oFileBrowserControls As CommandControls
    Set oFileBrowserControls = ThisApplication.UserInterfaceManager.FileBrowserControls

    ' Get the "Zoom All" and "Home View" commands
    Dim oDef1 As ButtonDefinition
    Set oDef1 = ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomAllCmd")

    Dim oDef2 As ButtonDefinition
    Set oDef2 = ThisApplication.CommandManager.ControlDefinitions.Item("AppIsometricViewCmd")

    ' Create button controls, positioned before the "Manage" control
    Call oFileBrowserControls.AddButton(oDef1, True, True, "Manage", True)
    Call oFileBrowserControls.AddButton(oDef2, True, True, "Manage", True)
    Call oFileBrowserControls.AddSeparator("Manage", True)
End Sub&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jul 2019 13:31:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8885340#M99049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T13:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor AIP Samples in the API Help Fail.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8885369#M99050</link>
      <description>&lt;P&gt;The trick here is "Fails every other one" The code worked the first time and fails the second because it can't add the button again. Do you have the buttons below? Those aren't standard (in that location) if those are there the code worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FileView.PNG" style="width: 132px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/653241iE8973E119AD18E6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FileView.PNG" alt="FileView.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 13:42:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8885369#M99050</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2019-07-02T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor AIP Samples in the API Help Fail.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8885864#M99069</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5352440"&gt;@clutsa&lt;/a&gt;,&amp;nbsp;thanks for the quick response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, those two buttons did show up in the File Browser, I was thinking they would be added to the top ribbon instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I just tried was closing the Inventor session (not saving the AppProject) and started a new Inventor session. After verifying I did&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;not&lt;/U&gt;&amp;nbsp;&lt;/STRONG&gt;have the buttons in the File Browser, I re-ran the Sub with breakstops on oFileBrowserControls looking for the .AddButton command. There still isn't the command listed in Watches panel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If .AddButton is available for the API to call, why isn't it shown in a Watch?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 16:36:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8885864#M99069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T16:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor AIP Samples in the API Help Fail.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8885910#M99072</link>
      <description>&lt;P&gt;I'm kind of confused what you're asking but I think the answer you're looking for is... AddButton() is a method(rule/action) of&amp;nbsp;&lt;SPAN&gt;oFileBrowserControls object, not a variable. So in the watch window you wouldn't see the methods available but you could find them in the object browser. The screen-cast&amp;nbsp;below was for someone else but you'll get the idea.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/4512e647-9698-4c0d-8678-74bd0965deef" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 16:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8885910#M99072</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2019-07-02T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor AIP Samples in the API Help Fail.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8886142#M99074</link>
      <description>&lt;P&gt;Light bulb moment!&lt;/P&gt;&lt;P&gt;Yes, you are exactly right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been learning vb.net using Visual Studio, and grew accustomed and spoiled on being able to watch for methods and variables inside the watch window. Like you stated, VBA does not support watching methods.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the assistance!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:33:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-aip-samples-in-the-api-help-fail/m-p/8886142#M99074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T18:33:01Z</dc:date>
    </item>
  </channel>
</rss>

