<?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: Custom Label object inserts in wrong location in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Custom-Label-object-inserts-in-wrong-location/m-p/383345#M43976</link>
    <description>&lt;P&gt;You need to eliminate the default leader line distance first.&lt;/P&gt;&lt;P&gt;Put this at the beginning of your 2D script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;add2 LABEL_POSITION[2][1],0
add2 LABEL_POSITION[3][1],LABEL_POSITION[3][2]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 10:23:42 GMT</pubDate>
    <dc:creator>Stefan L_</dc:creator>
    <dc:date>2023-06-13T10:23:42Z</dc:date>
    <item>
      <title>Custom Label object inserts in wrong location</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Custom-Label-object-inserts-in-wrong-location/m-p/383319#M43974</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to GDL and am wondering if someone can point me in the right direction here.&lt;/P&gt;&lt;P&gt;I have created a new label from scratch to simply read a walls composite name and display the first code within a poly triangle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's all working smoothly except for the insertion point.&lt;/P&gt;&lt;P&gt;All other labels insert where I click except this one?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Insertion Point.JPG" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/38874i0057DBD029AF531C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Insertion Point.JPG" alt="Insertion Point.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's likely an issue between keyboard and chair. Hoping someone can assist &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached an empty pln with the object embedded if anyone can have a look at it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Master Script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;HOTSPOT2 0, 0
HOTSPOT2 0.35, 0.6
HOTSPOT2 -0.35, 0.6

define style "Standard"	AC_TextFont_1, AC_TextSize_1, 8, AC_TextStyle_1

frame_fill = 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2D script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;! Get Comp Code
string = WALL_COMPS_NAME
iDotPos = STRSTR (string, ":")
iOutput = STRSUB (string, 1, iDotPos - 1)

! Set Text Style - Defined under Master script 
style "Standard"

! Write text box
TEXT2 0, 0.25, iOutput  ! Should return prefix seperated from Composite name by a ":"

POLY2 4, frame_fill, 0, 0, 0.35, 0.6, -0.35, 0.6, 0, 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/56622iD9E589ECFFB96550/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Insertion Point.JPG" title="Insertion Point.JPG" /&gt;</description>
      <pubDate>Tue, 13 Jun 2023 06:36:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Custom-Label-object-inserts-in-wrong-location/m-p/383319#M43974</guid>
      <dc:creator>Franks3y</dc:creator>
      <dc:date>2023-06-13T06:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Label object inserts in wrong location</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Custom-Label-object-inserts-in-wrong-location/m-p/383345#M43976</link>
      <description>&lt;P&gt;You need to eliminate the default leader line distance first.&lt;/P&gt;&lt;P&gt;Put this at the beginning of your 2D script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;add2 LABEL_POSITION[2][1],0
add2 LABEL_POSITION[3][1],LABEL_POSITION[3][2]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 10:23:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Custom-Label-object-inserts-in-wrong-location/m-p/383345#M43976</guid>
      <dc:creator>Stefan L_</dc:creator>
      <dc:date>2023-06-13T10:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Label object inserts in wrong location</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Custom-Label-object-inserts-in-wrong-location/m-p/383508#M43981</link>
      <description>&lt;P&gt;Thanks Stefan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is exactly what I am after, Cheers !&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 23:00:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Custom-Label-object-inserts-in-wrong-location/m-p/383508#M43981</guid>
      <dc:creator>Franks3y</dc:creator>
      <dc:date>2023-06-13T23:00:34Z</dc:date>
    </item>
  </channel>
</rss>

