<?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: Efficient way to crop text by length in cm in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250161#M4208</link>
    <description>No, I'm not in Graphisoft Product Management. I'm not responsible for the library. &lt;BR /&gt;
Only local distributor for Berlin.</description>
    <pubDate>Wed, 10 Mar 2021 10:26:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-10T10:26:37Z</dc:date>
    <item>
      <title>Efficient way to crop text by length in cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250151#M4198</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;i hope I haven’t missed a function, but I’m looking for a efficient way to crop text by a given length and not by the number of characters, like “strsub”.&lt;BR /&gt;&lt;BR /&gt;Maybe somebody have a better solution.&lt;BR /&gt;My actual solution is:&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;while stw(txt1) &amp;gt;100 do !** 100 is the max lenght of the text&lt;BR /&gt;txt1=strsub(txt1,0,_loop)&lt;BR /&gt;_loop=_loop-1&lt;BR /&gt;endwhile&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:48:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250151#M4198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T07:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by lengthi n cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250152#M4199</link>
      <description>With  Richtext2 this should work.&lt;BR /&gt;
Drag and drop a multine 2D Text into a 2D Script window&lt;BR /&gt;
and define Parameters for Text content and text length and replace the&lt;BR /&gt;
hard coded values by the parameters in the script.</description>
      <pubDate>Mon, 08 Mar 2021 16:25:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250152#M4199</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2021-03-08T16:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by length in cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250153#M4200</link>
      <description>Hi Joachim,&lt;BR /&gt;
&lt;BR /&gt;
i think with Richtext2 i only have the option to get a linebreak after the given lenght, so that i get a new line when the text didn't fit, what i want to avoid.</description>
      <pubDate>Mon, 08 Mar 2021 21:56:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250153#M4200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-08T21:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by lengthi n cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250154#M4201</link>
      <description>So just to be clear.&lt;BR /&gt;
You don't want the text to wrap to a new line.&lt;BR /&gt;
You just want to cut the text off at a certain width and not after a certain number of characters?&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 09 Mar 2021 01:15:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250154#M4201</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-03-09T01:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by lengthi n cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250155#M4202</link>
      <description>Yes exactly</description>
      <pubDate>Tue, 09 Mar 2021 10:06:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250155#M4202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-09T10:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by lengthi n cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250156#M4203</link>
      <description>Not really sure why &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;that&lt;E&gt;&lt;/E&gt; would be useful, but it's certainly an edge case. There is no built-in function for that.&lt;BR /&gt;
&lt;BR /&gt;
What you've done there is already quite good.&lt;BR /&gt;
The only way there might be to improve the execution time, would be some kind of "divide &amp;amp; conquer" algorithm.</description>
      <pubDate>Tue, 09 Mar 2021 12:43:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250156#M4203</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-03-09T12:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by length in cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250157#M4204</link>
      <description>You're right, an edge case, that's why i haven't asked some years ago.&lt;BR /&gt;
&lt;BR /&gt;
F.E. when you have an object, which shows the change history of an layout, like the Graphisoft Object already does. The content of the name is limited to 255 char., when you want to limit the column width you have to use linebreaks, which may cause to many lines.</description>
      <pubDate>Tue, 09 Mar 2021 17:31:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250157#M4204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-09T17:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by lengthi n cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250158#M4205</link>
      <description>Okay, this might be an legitimate example, which I can totally understand.&lt;BR /&gt;
Still an edge case, tho.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Also: Would you really want to split a word at an arbitrary position?&lt;BR /&gt;
This will look weird to anybody who reads it, for sure.&lt;BR /&gt;
I guess you're the BIM manager of your office (or a similar position). Maybe you can introduce a special char as a delimiter (like ";") in your office. And everything after that char gets cut off.&lt;BR /&gt;
Or you just split by space (" "). This might be the easiest and best looking solution. It will also perform slightly faster than looping through every character, I assume.&lt;BR /&gt;
Maybe even leave enough room for an ellipsis ("…") to append to the string, so it doesn't look as bad.</description>
      <pubDate>Tue, 09 Mar 2021 21:00:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250158#M4205</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-03-09T21:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by lengthi n cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250159#M4206</link>
      <description>The idea was, to have it as option. Maybe sometimes it's better to crop one name of a change, than to push others out of the table. You're idea with the ellipsis is nice.&lt;BR /&gt;
&lt;BR /&gt;
I've started in investigate, if a simplified object for the change management makes sense.&lt;BR /&gt;
&lt;BR /&gt;
I'm no a BIM Manager, i'm ArchiCAD Trainer, Consultat, Instructor at Graphisoft Berlin.&lt;BR /&gt;
Maybe i should revise my signature</description>
      <pubDate>Tue, 09 Mar 2021 23:02:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250159#M4206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-09T23:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by length in cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250160#M4207</link>
      <description>Hello there fellow Berliner!&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;FST_Berlin wrote:&lt;BR /&gt;I've started in investigate, if a simplified object for the change management makes sense.&lt;/BLOCKQUOTE&gt;
Ah, like... for distribution in the D(ACH) space with the next release?&lt;BR /&gt;
&lt;BR /&gt;
Offtopic:
&lt;BLOCKQUOTE&gt;Archicad 4-40&lt;/BLOCKQUOTE&gt;
Well I certainly got the joke  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 10 Mar 2021 09:52:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250160#M4207</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-03-10T09:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient way to crop text by length in cm</title>
      <link>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250161#M4208</link>
      <description>No, I'm not in Graphisoft Product Management. I'm not responsible for the library. &lt;BR /&gt;
Only local distributor for Berlin.</description>
      <pubDate>Wed, 10 Mar 2021 10:26:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Efficient-way-to-crop-text-by-length-in-cm/m-p/250161#M4208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-10T10:26:37Z</dc:date>
    </item>
  </channel>
</rss>

