<?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: Reading Autotext value into a variable in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386180#M433</link>
    <description>&lt;P&gt;Hi Barry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I can get the full name with &amp;lt;MASTERLAYOUTNAME&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping I could just add it to a variable and be able to run&amp;nbsp; it through a series of if statements to figure out the sheet size but the contents of the variable is '&amp;lt;MASTERLAYOUTNAME&amp;gt;' rather than the actual name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Eric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2023 05:42:59 GMT</pubDate>
    <dc:creator>Eric B</dc:creator>
    <dc:date>2023-07-04T05:42:59Z</dc:date>
    <item>
      <title>Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386088#M427</link>
      <description>&lt;P&gt;Good evening&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies if this has been asked before but I could not find anything relating to this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can you read an autotext value into a variable in GDL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to be able to do the following and read the first two characters of the Master Layout Name:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;strsub("&amp;lt;MASTERLAYOUTNAME&amp;gt;", 0, 2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:28:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386088#M427</guid>
      <dc:creator>Eric B</dc:creator>
      <dc:date>2024-09-24T08:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386124#M428</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/16334"&gt;@Eric B&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How can you read an autotext value into a variable in GDL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sorry to inform you: You can't.&lt;/P&gt;
&lt;P&gt;Autotext is an abstract layer on top. GDL does not see it.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 14:51:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386124#M428</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-07-03T14:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386147#M429</link>
      <description>&lt;P&gt;Thats not the answer I was looking for&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get sheet information into GDL i.e sheet width or sheet height?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to auto populate the scale in a drawing title with the sheet size ( Scale 1:100&amp;nbsp;@ A3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 20:22:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386147#M429</guid>
      <dc:creator>Eric B</dc:creator>
      <dc:date>2023-07-03T20:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386167#M430</link>
      <description>&lt;P&gt;Even if there was a&amp;nbsp;&lt;STRONG&gt;request&lt;/STRONG&gt; for sheet size, using it to generate a scale would not work as the object would need to be placed on a sheet in order to read it, in which case it would not be able to see the&amp;nbsp;&lt;STRONG&gt;GLOB_SCALE&amp;nbsp;&lt;/STRONG&gt;of placed views... or it would see the scale of every placed View. There is a way to do a scale bar within the title object of a View if that will do. I think one of the Drawing Titles in the US library has that option. For us, we sometimes want to show the scale at multiple sheet sizes so in a way not having it linked is good for us. The user can select the scales they want to show at the page sizes they want, and I guess everyone here is used to how slow it was for us to change in aCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 02:12:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386167#M430</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-07-04T02:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386176#M431</link>
      <description>&lt;P&gt;Hi Ling&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I may have not been very clear. I don't want to generate a scale I just want to append the sheet size to end of the scale '@ A3'&lt;BR /&gt;&lt;BR /&gt;We have had a couple of instances where a client has asked for drawings to be published on A3 when they were originally published on A2. Our current drawing title has this as a custom field but when you republish them on a different size sheet you have to go and manually update all of the drawing titles&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping now that you can get the Master Layout Name as auto text I could use this as all of our Master Layout Names start with the sheet size&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Eric&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 05:32:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386176#M431</guid>
      <dc:creator>Eric B</dc:creator>
      <dc:date>2023-07-04T05:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386179#M432</link>
      <description>&lt;P&gt;You probably can get the master layout name, but you can't get the first 2 characters only.&lt;/P&gt;
&lt;P&gt;You can read and show autotext values, but you can't manipulate them or use the value in any sort of calculation.&lt;/P&gt;
&lt;P&gt;So you will be stuck with the full master layout name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 05:39:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386179#M432</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-07-04T05:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386180#M433</link>
      <description>&lt;P&gt;Hi Barry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I can get the full name with &amp;lt;MASTERLAYOUTNAME&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping I could just add it to a variable and be able to run&amp;nbsp; it through a series of if statements to figure out the sheet size but the contents of the variable is '&amp;lt;MASTERLAYOUTNAME&amp;gt;' rather than the actual name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Eric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 05:42:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386180#M433</guid>
      <dc:creator>Eric B</dc:creator>
      <dc:date>2023-07-04T05:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386185#M434</link>
      <description>&lt;P&gt;The only way I found to get the sheet size in a GDL Object is via the subtype 'drawing title'&lt;/P&gt;&lt;P&gt;With this subtype you'll get the array &lt;STRONG&gt;AC_LayoutRect&lt;/STRONG&gt; that has the information you need.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Xandros_0-1688451840722.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/39868i9D63C68C99EE1628/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Xandros_0-1688451840722.png" alt="Xandros_0-1688451840722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 06:24:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386185#M434</guid>
      <dc:creator>Xandros</dc:creator>
      <dc:date>2023-07-04T06:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386200#M435</link>
      <description>&lt;P&gt;A2 at A3, RIP your scales...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 08:47:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386200#M435</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-07-04T08:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386207#M436</link>
      <description>&lt;P&gt;I am probably missing something obvious, but we ussually have an A1 set at 1:100 and an A3 booklet scaled to 1:200 (50%) for this reason and since the views just update automatically, it's a matter of making the booklet once and just keep publishing it as needed.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 10:01:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386207#M436</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2023-07-04T10:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Autotext value into a variable</title>
      <link>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386285#M437</link>
      <description>&lt;P&gt;Perfect. Thanks Xandros&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not idea but at least I can use logic with it and determine the sheet size that way. Exactly what I wanted to do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreicated&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 22:32:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Reading-Autotext-value-into-a-variable/m-p/386285#M437</guid>
      <dc:creator>Eric B</dc:creator>
      <dc:date>2023-07-04T22:32:31Z</dc:date>
    </item>
  </channel>
</rss>

