<?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 Changing Label position based on it's parameter. in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338301#M1798</link>
    <description>&lt;P&gt;I am trying to create a label which changes it's position based on the co-ordinate values (global) defined in it's parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if the label is in a random position with initial parameters:&lt;/P&gt;
&lt;P&gt;Global_X=1&lt;/P&gt;
&lt;P&gt;Global_Y=2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I change it to Global_X=3, Global Y=5, the label should move to global (3,5).&lt;/P&gt;
&lt;P&gt;The initial position of the label does not matter i.e. when the user clicks on the element, the label can be placed anywhere but it has to&amp;nbsp;move based on the global coordinates defined within it's parameters.&lt;BR /&gt;&lt;BR /&gt;Can this be achieved ?&lt;BR /&gt;If it can, which command would help me achieve it ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 08:13:12 GMT</pubDate>
    <dc:creator>Eshanta</dc:creator>
    <dc:date>2023-05-31T08:13:12Z</dc:date>
    <item>
      <title>Changing Label position based on it's parameter.</title>
      <link>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338301#M1798</link>
      <description>&lt;P&gt;I am trying to create a label which changes it's position based on the co-ordinate values (global) defined in it's parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if the label is in a random position with initial parameters:&lt;/P&gt;
&lt;P&gt;Global_X=1&lt;/P&gt;
&lt;P&gt;Global_Y=2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I change it to Global_X=3, Global Y=5, the label should move to global (3,5).&lt;/P&gt;
&lt;P&gt;The initial position of the label does not matter i.e. when the user clicks on the element, the label can be placed anywhere but it has to&amp;nbsp;move based on the global coordinates defined within it's parameters.&lt;BR /&gt;&lt;BR /&gt;Can this be achieved ?&lt;BR /&gt;If it can, which command would help me achieve it ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 08:13:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338301#M1798</guid>
      <dc:creator>Eshanta</dc:creator>
      <dc:date>2023-05-31T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Label position based on it's parameter.</title>
      <link>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338305#M1799</link>
      <description>&lt;P&gt;As far as I know, the only thing in GDL that can reference the&amp;nbsp;&lt;EM&gt;Global Origin&lt;/EM&gt; are textures through the&amp;nbsp;&lt;STRONG&gt;COOR&lt;/STRONG&gt; commands. If there is anything, you might be able to find it in the&amp;nbsp;&lt;EM&gt;Survey Point&lt;/EM&gt; object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Correction:&lt;/STRONG&gt; for 2D, you can use the globals&amp;nbsp;&lt;STRONG&gt;Symbol_Pos_X&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Symbol_Pos_Y&lt;/STRONG&gt;. which will give you the objects relative position from the origin.&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>Fri, 13 May 2022 08:57:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338305#M1799</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-05-13T08:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Label position based on it's parameter.</title>
      <link>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338306#M1800</link>
      <description>&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have already tried that and I get 0 no matter what.&lt;BR /&gt;I just tried it in a simple way as follows:&lt;/P&gt;&lt;P&gt;TEXT2 0, 0, SYMB_POS_X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regardless of where I click, I always get zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:02:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338306#M1800</guid>
      <dc:creator>Eshanta</dc:creator>
      <dc:date>2022-05-13T09:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Label position based on it's parameter.</title>
      <link>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338310#M1801</link>
      <description>&lt;P&gt;I'm not quite sure what you are trying to do, but as far as I know, the label position is stored in a GLOBAL variable.&lt;/P&gt;
&lt;P&gt;This is from the GDL manual.&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="BarryKelly_0-1652433560834.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/21511iBE37751248795532/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_0-1652433560834.png" alt="BarryKelly_0-1652433560834.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a 3x2 array of the x &amp;amp; y coordinates of the leader arrow.&lt;/P&gt;
&lt;P&gt;If you don't have the leader line on, I think it just uses the x &amp;amp; y coordinates of the first array value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should see those variables used to position the text in your label, so I am guessing you could manipulate those values.&lt;/P&gt;
&lt;P&gt;i.e add values to them or simply use your own instead of those.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:28:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338310#M1801</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-05-13T09:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Label position based on it's parameter.</title>
      <link>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338364#M1802</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/22844"&gt;@Eshanta&lt;/a&gt;&amp;nbsp;It does depend on what you are trying to do as to how you process the data points mentioned by&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7331"&gt;@Barry Kelly&lt;/a&gt;. I have created labels that use parameters to position the text relative to the click / insertion point but the leader line on/off value will disrupt can disrupt what you are trying to achieve. Look at some of the GS label library objects to see if they help. The SYMB_POS_X &amp;amp; Y values and the data points will be important references in your GDL coding. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 09:32:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Changing-Label-position-based-on-it-s-parameter/m-p/338364#M1802</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2022-05-14T09:32:17Z</dc:date>
    </item>
  </channel>
</rss>

