<?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: Splitting Text in GDL in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397875#M5607</link>
    <description>&lt;P&gt;the number is the part that won't work I believe. (We have a wall tag that is set up with exactly this method, that has been brushed aside for its limitations.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sometimes we have a wall that is wall "A" to 8' , and wall type "D" above.&lt;/P&gt;
&lt;P&gt;- A / D _&lt;SPAN&gt;Wall: MStud 6" Ins, Gyp.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"A / D" won't show correctly if I have this scripted to read the first 2 or 3 characters.&amp;nbsp; Id simply end up with "A /"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That is why I am trying to do a split to read everything between "-" &amp;amp; "_"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have it working in properties &amp;amp; Classifications&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But can't rely on calling that Unique ID for the property, because we have a few templates, so not every projects will have the same unique ID for the property that would be coded.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 18:34:06 GMT</pubDate>
    <dc:creator>JeffH</dc:creator>
    <dc:date>2023-09-11T18:34:06Z</dc:date>
    <item>
      <title>Splitting Text in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397831#M5605</link>
      <description>&lt;P&gt;We have our wall types all listed out like this in our composite list&lt;/P&gt;
&lt;P&gt;- A _ Wall: MStud 6" Ins, Gyp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In GDL, how would I strip out everything right of the "-" and then Left of the "_"&lt;/P&gt;
&lt;P&gt;The end result needs to be " A ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am struggling to get the "WALL_COMPS_NAME" to work this way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:50:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397831#M5605</guid>
      <dc:creator>JeffH</dc:creator>
      <dc:date>2024-09-26T11:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Text in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397837#M5606</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;With this function …&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;STRSUB&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;(string_expression, start_position, characters_number)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 13:36:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397837#M5606</guid>
      <dc:creator>Yves</dc:creator>
      <dc:date>2023-09-11T13:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Text in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397875#M5607</link>
      <description>&lt;P&gt;the number is the part that won't work I believe. (We have a wall tag that is set up with exactly this method, that has been brushed aside for its limitations.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sometimes we have a wall that is wall "A" to 8' , and wall type "D" above.&lt;/P&gt;
&lt;P&gt;- A / D _&lt;SPAN&gt;Wall: MStud 6" Ins, Gyp.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"A / D" won't show correctly if I have this scripted to read the first 2 or 3 characters.&amp;nbsp; Id simply end up with "A /"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That is why I am trying to do a split to read everything between "-" &amp;amp; "_"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have it working in properties &amp;amp; Classifications&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But can't rely on calling that Unique ID for the property, because we have a few templates, so not every projects will have the same unique ID for the property that would be coded.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 18:34:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397875#M5607</guid>
      <dc:creator>JeffH</dc:creator>
      <dc:date>2023-09-11T18:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Text in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397884#M5608</link>
      <description>&lt;P&gt;Try the GDL function &lt;A href="https://gdl.graphisoft.com/reference-guide/functions#STR_gdlcommand" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;STRSTR&lt;/STRONG&gt;&lt;/A&gt; to establish the position of "-" &amp;amp; "_", then apply those values to STRSUB as suggested by&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14214"&gt;@Yves&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 21:27:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397884#M5608</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-09-11T21:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Text in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397907#M5609</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if strstr(WALL_COMPS_NAME,"-") &amp;gt; 0 and strstr(WALL_COMPS_NAME,"_")&amp;gt;0 then
   Start_num_pos = strstr(WALL_COMPS_NAME,"-") !!!!Postion in characters of first - character
   End_num_pos = strstr(WALL_COMPS_NAME,"_") !!!!Postion in characters of first _ character
   new_text_ = strsub(WALL_COMPS_NAME,Start_num_pos+1,End_num_pos-Start_num_pos-1)  !!!!!!!!Makes new string from first character after - to character before _
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this works in AC18, AC22 and AC25&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this will help&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2023 16:57:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397907#M5609</guid>
      <dc:creator>AllanP</dc:creator>
      <dc:date>2023-09-17T16:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Text in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397912#M5611</link>
      <description>&lt;LI-CODE lang="markup"&gt;string = Bar_Scale1
len = STRLEN (string)
iDotPos = STRSTR (string, ":")
v1 = STRSUB (string, iDotPos + 1, 6)
v2 = SPLIT (v1, "%n", vl)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is from my scale bar object.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 01:52:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397912#M5611</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-09-12T01:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Text in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397994#M5615</link>
      <description>&lt;P&gt;This is the solution we were after.&lt;/P&gt;
&lt;P&gt;Thanks!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you all for your help in this matter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 18:22:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Splitting-Text-in-GDL/m-p/397994#M5615</guid>
      <dc:creator>JeffH</dc:creator>
      <dc:date>2023-09-12T18:22:48Z</dc:date>
    </item>
  </channel>
</rss>

