<?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: Specifying Location Of Images For Ribbon (Relative Path) in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/specifying-location-of-images-for-ribbon-relative-path/m-p/3414743#M56241</link>
    <description>&lt;P&gt;here a sample of my code for create my name of file containing the data of my prog :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim objAssemblyInfo As ApplicationServices.AssemblyInfo = My.Application.Info&lt;BR /&gt;&lt;BR /&gt;My.Settings.GlobalFichierConfig = objAssemblyInfo.DirectoryPath &amp;amp; "\" &amp;amp; _&lt;BR /&gt;                                  objAssemblyInfo.Title + ".cfg"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;with the objAssemblyInfo you retrieve info of your Dll.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Apr 2012 10:39:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-16T10:39:51Z</dc:date>
    <item>
      <title>Specifying Location Of Images For Ribbon (Relative Path)</title>
      <link>https://forums.autodesk.com/t5/net-forum/specifying-location-of-images-for-ribbon-relative-path/m-p/3414527#M56240</link>
      <description>&lt;P&gt;I'm trying to specify the image source for ribbon images using relative syntax but having no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;button.LargeImage = &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;BitmapImage&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;Uri&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#a31515" size="2"&gt;@"c:\\folderA\\folderB\\image.png"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;) ); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;it works just fine. But it relies on absolute syntax, which is daft since it forces the code to be installed in a specific directory﻿ (or the images). &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I've tried ﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;button.LargeImage = &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;BitmapImage&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;Uri&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#a31515" size="2"&gt;@"images\\image.png"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;UriKind&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;.Relative) ); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;and &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;button.LargeImage = &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;BitmapImage&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;Uri&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#a31515" size="2"&gt;@"images/image.png"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#2b91af" size="2"&gt;&lt;FONT color="#2b91af" size="2"&gt;UriKind&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;.Relative) ); &lt;/FONT&gt;﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;and I've tried placing the ﻿images subdirectory with the png file relative to the assembly, to the project source folder and even relative to AutoCAD itself - and in none of the cases do I get an image. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Can anyone shed any light on this for me? I'd like the images subfolder to be relative to the compiled assembly. ﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;﻿&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2012 07:42:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/specifying-location-of-images-for-ribbon-relative-path/m-p/3414527#M56240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-16T07:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Location Of Images For Ribbon (Relative Path)</title>
      <link>https://forums.autodesk.com/t5/net-forum/specifying-location-of-images-for-ribbon-relative-path/m-p/3414743#M56241</link>
      <description>&lt;P&gt;here a sample of my code for create my name of file containing the data of my prog :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim objAssemblyInfo As ApplicationServices.AssemblyInfo = My.Application.Info&lt;BR /&gt;&lt;BR /&gt;My.Settings.GlobalFichierConfig = objAssemblyInfo.DirectoryPath &amp;amp; "\" &amp;amp; _&lt;BR /&gt;                                  objAssemblyInfo.Title + ".cfg"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;with the objAssemblyInfo you retrieve info of your Dll.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2012 10:39:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/specifying-location-of-images-for-ribbon-relative-path/m-p/3414743#M56241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-16T10:39:51Z</dc:date>
    </item>
  </channel>
</rss>

