<?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: GDL Request Textblock Width for Auto Text in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358094#M1329</link>
    <description>&lt;P&gt;There is a function in GDL to return the length of a string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STW&lt;BR /&gt;STW (string_expression)&lt;BR /&gt;Returns the (real) width of the string in millimeters displayed in the current style. The width in meters, at current scale, is STW&lt;BR /&gt;(string_expression) / 1000 * GLOB_SCALE.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 05:34:51 GMT</pubDate>
    <dc:creator>julienK</dc:creator>
    <dc:date>2022-10-06T05:34:51Z</dc:date>
    <item>
      <title>GDL Request Textblock Width for Auto Text</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358078#M1327</link>
      <description>&lt;P&gt;I'm messing around with the Change Marker object and need to get the width of the Change ID, so that the width of the frame can change depending on the length of the Change ID string. By using the REQUEST function I am able to get the width of the string, but changing the ID does not change the width of the frame. I'm assuming this is because of the auto text that is grabbing the actual Change ID, which is the string "&amp;lt;CHANGEID&amp;gt;", so the REQUEST function is grabbing the width of the literal string "&amp;lt;CHANGEID&amp;gt;" as opposed to the actual ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the length of the auto text after it has been "calculated" so to speak? Or a way to grab the Change ID through a variable or parameter from the object? I don't see any global variables that would point to the ID. Below is the current result of my change marker with two different lengths of IDs.&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="ocamorlinga_0-1665010051100.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30439i890DC5A3DD333B97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ocamorlinga_0-1665010051100.png" alt="ocamorlinga_0-1665010051100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 22:50:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358078#M1327</guid>
      <dc:creator>ocamorlinga</dc:creator>
      <dc:date>2022-10-05T22:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Request Textblock Width for Auto Text</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358085#M1328</link>
      <description>&lt;P&gt;Could you use the LAYOUT_CHANGE_HISTORY&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;global? If there is another string to figure out how many Changes have been made, you might then be able to use it much like you do WALL_SKINS_PARAMS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 01:52:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358085#M1328</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-10-06T01:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Request Textblock Width for Auto Text</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358094#M1329</link>
      <description>&lt;P&gt;There is a function in GDL to return the length of a string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STW&lt;BR /&gt;STW (string_expression)&lt;BR /&gt;Returns the (real) width of the string in millimeters displayed in the current style. The width in meters, at current scale, is STW&lt;BR /&gt;(string_expression) / 1000 * GLOB_SCALE.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 05:34:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358094#M1329</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-10-06T05:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Request Textblock Width for Auto Text</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358136#M1330</link>
      <description>&lt;P&gt;I'm afraid you cannot "request" an Autotext. Autotext can be used in GDL but it will just passing through. GDL cannot grab the value of the Autotext so you can't manipulate any of it.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:31:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358136#M1330</guid>
      <dc:creator>Palawat</dc:creator>
      <dc:date>2022-10-06T14:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Request Textblock Width for Auto Text</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358350#M1331</link>
      <description>&lt;P&gt;I can get a list of all of the change id's from LAYOUT_CHANGE_HISTORY but I can't figure out a way to match the specific marker's change id to that list. If there was only a way to get the information of the marker's linked change other than using the autotext "&amp;lt;CHANGEID&amp;gt;" then we would be good&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 15:26:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358350#M1331</guid>
      <dc:creator>ocamorlinga</dc:creator>
      <dc:date>2022-10-10T15:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Request Textblock Width for Auto Text</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358351#M1332</link>
      <description>&lt;P&gt;I was already able to get the width of the string by using REQUEST("TEXTBLOCK_INFO", ...) but I wasn't aware of the STW function, it's much simpler to use for this case, thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 15:29:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358351#M1332</guid>
      <dc:creator>ocamorlinga</dc:creator>
      <dc:date>2022-10-10T15:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Request Textblock Width for Auto Text</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358352#M1333</link>
      <description>&lt;P&gt;This is what I was afraid of. If there was only a way to grab the information of the change the marker is linked to then everything would be much simpler, but for now I'll just have to put a "width" parameter a user can change manually. Thanks for your response&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 15:31:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Request-Textblock-Width-for-Auto-Text/m-p/358352#M1333</guid>
      <dc:creator>ocamorlinga</dc:creator>
      <dc:date>2022-10-10T15:31:27Z</dc:date>
    </item>
  </channel>
</rss>

