- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
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:
System.IO.FileNotFoundException: Could not find file 'C:\_blog\cbb\res\tooltip\Toottip_Image_320x320.png' File name: 'C:\_blog\cbb\res\tooltip\Toottip_Image_320x320.png'
...
The code with which I am trying to access the file looks like this:
var TagWallLayersBtnData = new PushButtonData("TagWallLayersBtnData", "Tag Wall\nLayers", Assembly.GetExecutingAssembly().Location, "cbb.TagWallLayersCommand")
{
ToolTipImage = new BitmapImage(new Uri(@"C:\_blog\cbb\res\tooltip_TagWallLayers_320x320.png")),
ToolTip = "This is some sample tooltip text, replace it later..."
If you have a common experience, how can I solve the issue?
Thanks in advance
Solved! Go to Solution.