<?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: System.IO.FileNotFoundException: Could not find file in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/system-io-filenotfoundexception-could-not-find-file/m-p/9634414#M33082</link>
    <description>&lt;P&gt;SOLVED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The type of the image was .png. However, in addition to that I was including .png in the naming as well (ToolTip_Image.png). The .png in the naming is extra. Thus, while executing code Revit was trying to find a file called ToolTip_image with the extension .png while my files name was ToolTip_Image.png with the extension .png.&lt;/P&gt;&lt;P&gt;All I had to do was to name my file ToolTip_Image (without .png extension) and leave the code as it was (@"file path\ToolTipImage.png)&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 12:40:18 GMT</pubDate>
    <dc:creator>IrakliA</dc:creator>
    <dc:date>2020-07-14T12:40:18Z</dc:date>
    <item>
      <title>System.IO.FileNotFoundException: Could not find file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/system-io-filenotfoundexception-could-not-find-file/m-p/9634358#M33081</link>
      <description>&lt;P&gt;&lt;SPAN class="style-scope yt-formatted-string"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="style-scope yt-formatted-string"&gt;I am trying to create a panel and attach a tooltip image. However, once I open my Revit file, I the warning that the file cannot be found:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="style-scope yt-formatted-string"&gt;System.IO.FileNotFoundException: Could not find file&lt;/SPAN&gt; &lt;SPAN class="style-scope yt-formatted-string"&gt;'C:\_blog\cbb\res\tooltip\Toottip_Image_320x320.png'&lt;/SPAN&gt; &lt;SPAN class="style-scope yt-formatted-string"&gt;File name: 'C:\_blog\cbb\res\tooltip\Toottip_Image_320x320.png'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="style-scope yt-formatted-string"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="style-scope yt-formatted-string"&gt;The code with which I am trying to access the file looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="style-scope yt-formatted-string"&gt;var TagWallLayersBtnData = new PushButtonData("TagWallLayersBtnData", "Tag Wall\nLayers", Assembly.GetExecutingAssembly().Location, "cbb.TagWallLayersCommand")&lt;BR /&gt;{&lt;BR /&gt;ToolTipImage = new BitmapImage(new Uri(@"C:\_blog\cbb\res\tooltip_TagWallLayers_320x320.png")),&lt;BR /&gt;ToolTip = "This is some sample tooltip text, replace it later..."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="style-scope yt-formatted-string"&gt;If you have a common experience, how can I solve the issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="style-scope yt-formatted-string"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 12:11:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/system-io-filenotfoundexception-could-not-find-file/m-p/9634358#M33081</guid>
      <dc:creator>IrakliA</dc:creator>
      <dc:date>2020-07-14T12:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: System.IO.FileNotFoundException: Could not find file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/system-io-filenotfoundexception-could-not-find-file/m-p/9634414#M33082</link>
      <description>&lt;P&gt;SOLVED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The type of the image was .png. However, in addition to that I was including .png in the naming as well (ToolTip_Image.png). The .png in the naming is extra. Thus, while executing code Revit was trying to find a file called ToolTip_image with the extension .png while my files name was ToolTip_Image.png with the extension .png.&lt;/P&gt;&lt;P&gt;All I had to do was to name my file ToolTip_Image (without .png extension) and leave the code as it was (@"file path\ToolTipImage.png)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 12:40:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/system-io-filenotfoundexception-could-not-find-file/m-p/9634414#M33082</guid>
      <dc:creator>IrakliA</dc:creator>
      <dc:date>2020-07-14T12:40:18Z</dc:date>
    </item>
  </channel>
</rss>

