<?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: How to expand categories  by default in python toolbox? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1212127#M65549</link>
    <description>&lt;P&gt;I that this too will need a little ArcGIS Pro SDK.&amp;nbsp; The only properties that a Parameter contains is displayName, name, datatype, parameterType, and direction. Pro's UI will default to display depending on the data type of the parameter- what are the data types of the parameters?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 18:55:49 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-09-13T18:55:49Z</dc:date>
    <item>
      <title>How to expand categories  by default in python toolbox?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1212064#M65541</link>
      <description>&lt;P&gt;When opening a new tool/toolbox, the categories are closed/condensed by default.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="josh_is_fine_0-1663089199900.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51045iA23E65B5FCF2F2D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="josh_is_fine_0-1663089199900.png" alt="josh_is_fine_0-1663089199900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What would I add to my script to make the categories expanded by default?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 17:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1212064#M65541</guid>
      <dc:creator>JoshMakesMaps</dc:creator>
      <dc:date>2022-09-13T17:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand categories  by default in python toolbox?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1212127#M65549</link>
      <description>&lt;P&gt;I that this too will need a little ArcGIS Pro SDK.&amp;nbsp; The only properties that a Parameter contains is displayName, name, datatype, parameterType, and direction. Pro's UI will default to display depending on the data type of the parameter- what are the data types of the parameters?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 18:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1212127#M65549</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-09-13T18:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand categories  by default in python toolbox?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1212133#M65550</link>
      <description>&lt;P&gt;Datatypes include&amp;nbsp;GPLayout, DEFolder, GPBoolean, GPString, GPLong.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 19:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1212133#M65550</guid>
      <dc:creator>JoshMakesMaps</dc:creator>
      <dc:date>2022-09-13T19:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand categories  by default in python toolbox?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1212176#M65551</link>
      <description>&lt;P&gt;I did a little digging and this might be doable by setting the stylesheet property of a &lt;EM&gt;python Toolbox class&lt;/EM&gt;.&amp;nbsp; You'll have to convert your script tool to a python Toolbox though, if its not already.&amp;nbsp; I haven't done much in python toolboxes so can't tell if this will work though.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/geoprocessing_and_python/defining-a-tool-in-a-python-toolbox.htm" target="_self"&gt;defining-a-tool-in-a-python-toolbox.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for the style sheet, maybe this can help (borrowed from Stack Overflow):&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Copy "C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Stylesheets\MdDlgContent.xsl" to the same folder as your script. (or somewhere it can be reached)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Edit line 467 to remove STYLE="display:'none';", i.e. change:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;SPAN class=""&gt;DIV&lt;/SPAN&gt; &lt;SPAN class=""&gt;ID&lt;/SPAN&gt;=&lt;SPAN class=""&gt;"{PropertyGroupName}"&lt;/SPAN&gt; &lt;SPAN class=""&gt;STYLE&lt;/SPAN&gt;=&lt;SPAN class=""&gt;"display:'none';"&lt;/SPAN&gt; &lt;SPAN class=""&gt;onclick&lt;/SPAN&gt;=&lt;SPAN class=""&gt;"window.event.cancelBubble = true;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;SPAN class=""&gt;DIV&lt;/SPAN&gt; &lt;SPAN class=""&gt;ID&lt;/SPAN&gt;=&lt;SPAN class=""&gt;"{PropertyGroupName}"&lt;/SPAN&gt; &lt;SPAN class=""&gt;onclick&lt;/SPAN&gt;=&lt;SPAN class=""&gt;"window.event.cancelBubble = true;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 13 Sep 2022 20:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1212176#M65551</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-09-13T20:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand categories  by default in python toolbox?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1219401#M65754</link>
      <description>&lt;P&gt;I also had thought that categories would be a nice way to organize my parameters, but since they are nearly all required, I did a way with categories all together.&amp;nbsp; What I do is just keep my related parameters together in the parameter list.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-expand-categories-by-default-in-python/m-p/1219401#M65754</guid>
      <dc:creator>RogerDunnGIS</dc:creator>
      <dc:date>2022-10-06T15:39:54Z</dc:date>
    </item>
  </channel>
</rss>

