<?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 Multiline GPString Parameters in Python Toolbox in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1246213#M66446</link>
    <description>&lt;P&gt;I wrote a Python Toolbox tool for ArcGIS Pro which receives a large amount of text from the user.&amp;nbsp; This could be a comment, note, or documentation.&amp;nbsp; The value of this parameter is later inserted into a &lt;STRONG&gt;very&lt;/STRONG&gt; wide text field of a feature class, when the tool is run.&amp;nbsp; &lt;FONT color="#999999"&gt;Note: the field is a supported field type, not a BLOB.&amp;nbsp;&lt;/FONT&gt; However, the user is unable to press Enter for a new line or paragraph, and they wish to do so.&amp;nbsp; Also, any text pasted into this parameter only gets as far as the first paragraph, stopping just shy of the carriage return.&amp;nbsp; I suppose this could be fixed if the user was presented with a memo-like control to input all this text.&amp;nbsp; Can this be done?&amp;nbsp; Can I present the user with a multi-line control to input a large comment with carriage returns?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 22:06:44 GMT</pubDate>
    <dc:creator>RogerDunnGIS</dc:creator>
    <dc:date>2023-01-06T22:06:44Z</dc:date>
    <item>
      <title>Multiline GPString Parameters in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1246213#M66446</link>
      <description>&lt;P&gt;I wrote a Python Toolbox tool for ArcGIS Pro which receives a large amount of text from the user.&amp;nbsp; This could be a comment, note, or documentation.&amp;nbsp; The value of this parameter is later inserted into a &lt;STRONG&gt;very&lt;/STRONG&gt; wide text field of a feature class, when the tool is run.&amp;nbsp; &lt;FONT color="#999999"&gt;Note: the field is a supported field type, not a BLOB.&amp;nbsp;&lt;/FONT&gt; However, the user is unable to press Enter for a new line or paragraph, and they wish to do so.&amp;nbsp; Also, any text pasted into this parameter only gets as far as the first paragraph, stopping just shy of the carriage return.&amp;nbsp; I suppose this could be fixed if the user was presented with a memo-like control to input all this text.&amp;nbsp; Can this be done?&amp;nbsp; Can I present the user with a multi-line control to input a large comment with carriage returns?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 22:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1246213#M66446</guid>
      <dc:creator>RogerDunnGIS</dc:creator>
      <dc:date>2023-01-06T22:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline GPString Parameters in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1246223#M66448</link>
      <description>&lt;P&gt;I'm not familiar enough to know personally if there is a solution exactly as you are asking for.&amp;nbsp; I do wonder however, as a work around, if it would be sufficient to add an optional input parameter of a text file.&amp;nbsp; You could have the text input as-is they can use if the text is short enough or allow them to input a basic *.txt file as an input otherwise for longer/multi-line text.&amp;nbsp; Not sure if that would really meet your needs or not, but, figured I'd at least throw it out there in case it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 22:53:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1246223#M66448</guid>
      <dc:creator>John_S</dc:creator>
      <dc:date>2023-01-06T22:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline GPString Parameters in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1246243#M66452</link>
      <description>&lt;P&gt;Ugly workaround - use a "SQL Expression" datatype...?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/multi-line-text-entry-in-model-builder-parameter/m-p/1152830/highlight/true#M52673" target="_self"&gt;Multi-line text entry in Model Builder Parameter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 01:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1246243#M66452</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2023-01-07T01:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline GPString Parameters in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1246247#M66453</link>
      <description>&lt;P&gt;I was hoping that a key combo such as the Shift+Enter would work but it didn't.&amp;nbsp; You could have them separate the paragraphs with three spaces (or a combo that wouldn't be found in natural type) and then do a replace in the string and replace with /n or /n/n, depending on what spacing you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;intext = arcpy.GetParameterAsText(0)
if not intext or intext == '':
    intext = 'sdffewafaewfwaefawefaewa  awefaewfawe afewaewf   aewfewafaefa aewfaewfa afwefaefae awefrerafafcaewcew   awefewafacawewsfdaesfea'

intext_updated = intext.replace('   ', '\n\n')
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-06 193523.png" style="width: 465px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59921i4D75EE076E3CE6A9/image-dimensions/465x212?v=v2" width="465" height="212" role="button" title="Screenshot 2023-01-06 193523.png" alt="Screenshot 2023-01-06 193523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you truly want a TextBox, think you'll have to go to the Pro SDK and create an Addin to get access to the WPF controls.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 02:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1246247#M66453</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-01-07T02:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline GPString Parameters in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1247513#M66519</link>
      <description>&lt;P&gt;Thank you, everyone, for your suggestions.&amp;nbsp; I'll have to ask the end users what they want as a solution.&amp;nbsp; This field's value is usually the result of selecting and copying a lot of text from a web page and pasting it into the tool.&amp;nbsp; The content of the field is always an obituary, and is usually long.&amp;nbsp; A URL wouldn't suffice because web sites get taken down, companies get purchased and their URL's change, and content can get reorganized over time.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 00:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/multiline-gpstring-parameters-in-python-toolbox/m-p/1247513#M66519</guid>
      <dc:creator>RogerDunnGIS</dc:creator>
      <dc:date>2023-01-12T00:17:59Z</dc:date>
    </item>
  </channel>
</rss>

