<?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 API ServiceButtonItem.ItemPath displays &amp;quot;Unable to Open File&amp;quot; dialog in Fabrication CADmep Forum</title>
    <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/api-servicebuttonitem-itempath-displays-quot-unable-to-open-file/m-p/9585976#M4559</link>
    <description>&lt;P&gt;I'm using the Fabrication API in Fabrication CADmep 2020 to update thousands of&amp;nbsp;ServiceButtonItem ItemPaths because the ITM files have been moved to new folders. When I set the&amp;nbsp;ServiceButtonItem.ItemPath to the new ITM location, a dialog pops up (see below) indicating the ITM file can't be found at the old location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a number of reasons why this is bad...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. First and foremost, an API call should never result in a dialog being displayed. It interrupts our code and there is no viable workaround.&lt;/P&gt;&lt;P&gt;2. Why is the original path even being checked? If I'm changing the ItemPath, I know its incorrect.&lt;/P&gt;&lt;P&gt;3. Because the dialog keeps popping up, the user will have to click OK thousands of times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only work-around that I can think of is to temporarily copy the ITM file from the new location to the old location, then delete it after I've reset the ItemPath. This presents other challenges because the folder may no longer exist, and if I create it, I have to add logic to remove the entire folder chain when I'm done. This means I have to check every folder in the old path to see if it is empty before removing it. That's a pretty crappy workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk, can you please verify this bug.&lt;/P&gt;&lt;P&gt;Also, another member of my team, Gregor Vilkner posted a couple of other issues in the API a few weeks ago and there has been no response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="mszanto_0-1592421054750.jpeg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/784931i07BD5356B3518654/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mszanto_0-1592421054750.jpeg" alt="mszanto_0-1592421054750.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 19:44:10 GMT</pubDate>
    <dc:creator>mszanto</dc:creator>
    <dc:date>2020-06-17T19:44:10Z</dc:date>
    <item>
      <title>API ServiceButtonItem.ItemPath displays "Unable to Open File" dialog</title>
      <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/api-servicebuttonitem-itempath-displays-quot-unable-to-open-file/m-p/9585976#M4559</link>
      <description>&lt;P&gt;I'm using the Fabrication API in Fabrication CADmep 2020 to update thousands of&amp;nbsp;ServiceButtonItem ItemPaths because the ITM files have been moved to new folders. When I set the&amp;nbsp;ServiceButtonItem.ItemPath to the new ITM location, a dialog pops up (see below) indicating the ITM file can't be found at the old location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a number of reasons why this is bad...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. First and foremost, an API call should never result in a dialog being displayed. It interrupts our code and there is no viable workaround.&lt;/P&gt;&lt;P&gt;2. Why is the original path even being checked? If I'm changing the ItemPath, I know its incorrect.&lt;/P&gt;&lt;P&gt;3. Because the dialog keeps popping up, the user will have to click OK thousands of times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only work-around that I can think of is to temporarily copy the ITM file from the new location to the old location, then delete it after I've reset the ItemPath. This presents other challenges because the folder may no longer exist, and if I create it, I have to add logic to remove the entire folder chain when I'm done. This means I have to check every folder in the old path to see if it is empty before removing it. That's a pretty crappy workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk, can you please verify this bug.&lt;/P&gt;&lt;P&gt;Also, another member of my team, Gregor Vilkner posted a couple of other issues in the API a few weeks ago and there has been no response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="mszanto_0-1592421054750.jpeg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/784931i07BD5356B3518654/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mszanto_0-1592421054750.jpeg" alt="mszanto_0-1592421054750.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 19:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fabrication-cadmep-forum/api-servicebuttonitem-itempath-displays-quot-unable-to-open-file/m-p/9585976#M4559</guid>
      <dc:creator>mszanto</dc:creator>
      <dc:date>2020-06-17T19:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: API ServiceButtonItem.ItemPath displays "Unable to Open File" dialog</title>
      <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/api-servicebuttonitem-itempath-displays-quot-unable-to-open-file/m-p/9672386#M4589</link>
      <description>&lt;P&gt;A service button allow more than one ITM mapped to it.&amp;nbsp; My assumption is that, the original path still exists but you are then assigning a new itm.&amp;nbsp; This would produce the warning your getting.&amp;nbsp; I'm away from my computer for a while so cant test this out.&amp;nbsp; Run it on a button and see if you see multiple paths to itms.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 15:32:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fabrication-cadmep-forum/api-servicebuttonitem-itempath-displays-quot-unable-to-open-file/m-p/9672386#M4589</guid>
      <dc:creator>nathan.chapman</dc:creator>
      <dc:date>2020-08-04T15:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: API ServiceButtonItem.ItemPath displays "Unable to Open File" dialog</title>
      <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/api-servicebuttonitem-itempath-displays-quot-unable-to-open-file/m-p/9694457#M4597</link>
      <description>&lt;P&gt;I know you are trying to do this through the API. Have you also considered the button repair tool and using excel to rename all of your folder paths? While this is not a solution to&amp;nbsp;&lt;EM&gt;your&lt;/EM&gt; issue. it could pose a solution to the original problem.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 05:44:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fabrication-cadmep-forum/api-servicebuttonitem-itempath-displays-quot-unable-to-open-file/m-p/9694457#M4597</guid>
      <dc:creator>craigjonnson</dc:creator>
      <dc:date>2020-08-17T05:44:34Z</dc:date>
    </item>
  </channel>
</rss>

