<?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: Can tool dialog of model display banner image? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460593#M15504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;if the same technique can be used for tools based on models (and/or Python script tools)?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know how it's done for custom tools, but for script and model tools you can alter the dialog by using a custom stylesheet - not very well documented, but you can start from Esri's which are in the install folder. The stylesheet may be specified on the script or model tool property's &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;General&lt;/SPAN&gt;&lt;SPAN&gt; tab.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 03:11:58 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2013-02-28T03:11:58Z</dc:date>
    <item>
      <title>Can tool dialog of model display banner image?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460592#M15503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a tool which is a model created using ModelBuilder at ArcGIS 10.0 SP5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On its tool dialog I would like to display an image (logo) as a banner along the top.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have seen this done on another custom tool (which is not a model) and am wondering how it was done, and if the same technique can be used for tools based on models (and/or Python script tools)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 22:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460592#M15503</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2013-02-27T22:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can tool dialog of model display banner image?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460593#M15504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;if the same technique can be used for tools based on models (and/or Python script tools)?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know how it's done for custom tools, but for script and model tools you can alter the dialog by using a custom stylesheet - not very well documented, but you can start from Esri's which are in the install folder. The stylesheet may be specified on the script or model tool property's &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;General&lt;/SPAN&gt;&lt;SPAN&gt; tab.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 03:11:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460593#M15504</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-02-28T03:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can tool dialog of model display banner image?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460594#M15505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Curtis&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your reply plus another &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/46817-python-script-tool-stylesheet-help!!!"&gt;&lt;STRONG&gt;thread&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN&gt; were the pointers I needed to find and copy &lt;/SPAN&gt;&lt;STRONG&gt;MdDlgContent.xsl&lt;/STRONG&gt;&lt;SPAN&gt; from &lt;/SPAN&gt;&lt;STRONG&gt;C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Stylesheets&lt;/STRONG&gt;&lt;SPAN&gt; to &lt;/SPAN&gt;&lt;STRONG&gt;C:\temp&lt;/STRONG&gt;&lt;SPAN&gt; as &lt;/SPAN&gt;&lt;STRONG&gt;C:\temp\PolyGeo_Banner.xsl&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then edited the *.xsl as below to reference a *.gif in the same folder before setting the *.xsl as the Stylesheet on the General tab of my tool Properties to get my image showing at bottom right of the tool dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changes made to the *.xsl were setting the image file like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;xsl:variable name="BackgroundImage"&amp;gt;url(C:\temp\PolyGeo_Banner.gif)&amp;lt;/xsl:variable&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and further down I uncommented out this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;nbsp;&amp;nbsp; background-image :&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:value-of select="$BackgroundImage" /&amp;gt;;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 08:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460594#M15505</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2013-02-28T08:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can tool dialog of model display banner image?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460595#M15506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for this thread, I was able to put a background image on our tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't seem to make the image appear using a relative path. Is that possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 02:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460595#M15506</guid>
      <dc:creator>janssencanicula</dc:creator>
      <dc:date>2014-02-27T02:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can tool dialog of model display banner image?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460596#M15507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I can't seem to make the image appear using a relative path.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Neither can I ... but you can drop the image into a folder in the Desktop install... using a variable (MdElementDialogInfo/CommonPath) that is set somewhere in the xsl framework they have set up. Would be nice if this were easier, as you need admin access to drop things in the install folders on most deployments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's how I did it (in my copy of MdDlgContent.xsl, stored in a relative path to my toolbox with my python scripts):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;xsl:variable name="BackgroundImage"&amp;gt;url(&amp;lt;xsl:value-of select="MdElementDialogInfo/CommonPath"/&amp;gt;/usgs.gif)&amp;lt;/xsl:variable&amp;gt;
&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This finds my file here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;C:\ArcGIS\Desktop10.2\ArcToolbox\Common\usgs.gif&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got this all working at 10.0, they may have a better way now...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:30:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460596#M15507</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T20:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can tool dialog of model display banner image?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460597#M15508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have modified a MdDlgContent.xsl for a toolbox I have developed in ArcGIS 10.3. The toolbox GUI is supposed to be symbolised with the background image ( &amp;lt;Toolname&amp;gt;.gif) located in the Share\&amp;lt;Toolname&amp;gt;\Stylesheet\Pics folder. This works fine when I use the absolute path to the gif-file. But in order to make the gif appear independent of where the toolbox is installed by the user I would like to have a relative path to the background image. I am not familiar with stylesheets- could anyone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 12:38:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-tool-dialog-of-model-display-banner-image/m-p/460597#M15508</guid>
      <dc:creator>FrankHanssen</dc:creator>
      <dc:date>2016-07-18T12:38:43Z</dc:date>
    </item>
  </channel>
</rss>

