<?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 Coordinates of Property Label 21 in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234515#M3525</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi all. I would like to set the center co-ordinate of Property Label 21 to the center of the text.&lt;BR /&gt;
&lt;BR /&gt;
At the moment its set at the bottom edge, which is where the extension line begins. I cant find the starting co-ordinate for the extension line.&lt;BR /&gt;
&lt;BR /&gt;
My search through the code led me here:&lt;BR /&gt;

&lt;PRE&gt;"install_label_position":
! ------------------------------------------------------------------------------
! Label positioning - global behavior for Marker form Labels
! - origin is where AC gives, the table begins with top left anchor
! - orientation is rotated with the parent structure by default
! - without AC Arrow
!		- drawing the full symbol marker form
! 		- the origin is at the arrow peak
! 		- rotating with parent elem direction
! 		- Reference Point is cordinated by user
! - with AC Arrow
!		- drawing only the head text
!		- the origin is at the boundary
!		- handling of rotation is belongs to AC (AC_CustomReadabilty OFF)
!		- Reference Point is cordinated at Pointer tabpage
!
! LABEL_POSITION 	- position of the label
! 					- array[3][2] containing the coordinates of the 3 points defining the label position
!
! - the other transformations live in the label_marker_macro
! ==============================================================================

	nTrans = 0

	if LABEL_CUSTOM_ARROW then

		add2 	LABEL_POSITION [2][1]	+	LABEL_POSITION [3][1],
				LABEL_POSITION [2][2]	+	LABEL_POSITION [3][2]

	endif

return&lt;/PRE&gt;

I'm struggling to find the array holding the co-ordinates. Maybe they are called from the 'label_marker_macro'? Can this be edited?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Aug 2018 00:15:05 GMT</pubDate>
    <dc:creator>davidstonearchicad21</dc:creator>
    <dc:date>2018-08-16T00:15:05Z</dc:date>
    <item>
      <title>Coordinates of Property Label 21</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234515#M3525</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi all. I would like to set the center co-ordinate of Property Label 21 to the center of the text.&lt;BR /&gt;
&lt;BR /&gt;
At the moment its set at the bottom edge, which is where the extension line begins. I cant find the starting co-ordinate for the extension line.&lt;BR /&gt;
&lt;BR /&gt;
My search through the code led me here:&lt;BR /&gt;

&lt;PRE&gt;"install_label_position":
! ------------------------------------------------------------------------------
! Label positioning - global behavior for Marker form Labels
! - origin is where AC gives, the table begins with top left anchor
! - orientation is rotated with the parent structure by default
! - without AC Arrow
!		- drawing the full symbol marker form
! 		- the origin is at the arrow peak
! 		- rotating with parent elem direction
! 		- Reference Point is cordinated by user
! - with AC Arrow
!		- drawing only the head text
!		- the origin is at the boundary
!		- handling of rotation is belongs to AC (AC_CustomReadabilty OFF)
!		- Reference Point is cordinated at Pointer tabpage
!
! LABEL_POSITION 	- position of the label
! 					- array[3][2] containing the coordinates of the 3 points defining the label position
!
! - the other transformations live in the label_marker_macro
! ==============================================================================

	nTrans = 0

	if LABEL_CUSTOM_ARROW then

		add2 	LABEL_POSITION [2][1]	+	LABEL_POSITION [3][1],
				LABEL_POSITION [2][2]	+	LABEL_POSITION [3][2]

	endif

return&lt;/PRE&gt;

I'm struggling to find the array holding the co-ordinates. Maybe they are called from the 'label_marker_macro'? Can this be edited?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Aug 2018 00:15:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234515#M3525</guid>
      <dc:creator>davidstonearchicad21</dc:creator>
      <dc:date>2018-08-16T00:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Property Label 21</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234516#M3526</link>
      <description>All labels relay on stack of macros - for some reasons it is easier to manage, but makes pain in the... when some simple modifications must be done.&lt;BR /&gt;
&lt;BR /&gt;
Anyway - All You need to know - is the final label width&amp;amp;height and add those coords to:&lt;BR /&gt;

&lt;PRE&gt;	if LABEL_CUSTOM_ARROW then

		add2 	LABEL_POSITION [2][1]	+	LABEL_POSITION [3][1],
				LABEL_POSITION [2][2]	+	LABEL_POSITION [3][2]

	endif&lt;/PRE&gt;

Piotr</description>
      <pubDate>Thu, 16 Aug 2018 08:59:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234516#M3526</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2018-08-16T08:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Property Label 21</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234517#M3527</link>
      <description>Thank Piotr.&lt;BR /&gt;
&lt;BR /&gt;
I've tried to wrap my head around it but i can't figure out how i those lines translate to a co-ordinate.&lt;BR /&gt;
&lt;BR /&gt;
I can very happily draw lines for objects with co-ordinates such as 0.00000, 1.00000 and the same for hotspots, but unfortunately that makes no sense to me. Is LABEL_POSITION [2][1] an array or is it pointing to the macros you speak of ?</description>
      <pubDate>Thu, 16 Aug 2018 22:31:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234517#M3527</guid>
      <dc:creator>davidstonearchicad21</dc:creator>
      <dc:date>2018-08-16T22:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Property Label 21</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234518#M3528</link>
      <description>The first number in the array is the label point.&lt;BR /&gt;
The label has 3 points on the leader line.&lt;BR /&gt;
The arrow head, the middle point and the text position.&lt;BR /&gt;
I am not sure of the order - i.e. if the arrow is point 1 or 3.&lt;BR /&gt;
&lt;BR /&gt;
The second number in the array it the point co-ordinate (1 = X and 2 = Y)&lt;BR /&gt;
&lt;BR /&gt;
So ...&lt;BR /&gt;
LABEL_POSITION [2][1] is point 2 'X' co-ordinate.&lt;BR /&gt;
LABEL_POSITION [2][2] is point 2 'Y' co-ordinate.&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;add2 	LABEL_POSITION [2][1]	+	LABEL_POSITION [3][1],
				LABEL_POSITION [2][2]	+	LABEL_POSITION [3][2]&lt;/PRE&gt;

&lt;BR /&gt;
This is just adding point 1 &amp;amp; 2 'X' values together and point 1 &amp;amp; 2 'Y' values together for ADD2 X, Y.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 17 Aug 2018 01:20:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234518#M3528</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-08-17T01:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Property Label 21</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234519#M3529</link>
      <description>Number "2" is the pointer  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;  ("Obviously" )&lt;BR /&gt;
and...if someone wishes to check if the label (with pointer) is "mirrored" (ie the pointer is on the right side) - it is the only way....and You have to check not for negative value of X of this point but the positive  &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt; (print command shows negative...but check for positive little surprise)&lt;BR /&gt;
&lt;BR /&gt;
Piotr</description>
      <pubDate>Fri, 17 Aug 2018 08:51:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234519#M3529</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2018-08-17T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Property Label 21</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234520#M3530</link>
      <description>Sorry guys my understanding is still not there  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
The position is contained in the array [3] with [3] [1] being X and [3] [2]  being Y ?&lt;BR /&gt;
&lt;BR /&gt;
I'm guessing the values are stored in [1] and [2] because when i change them in the code for example like this:&lt;BR /&gt;
&lt;BR /&gt;
if LABEL_CUSTOM_ARROW then&lt;BR /&gt;
&lt;BR /&gt;
		add2 	LABEL_POSITION [2][1]	+	LABEL_POSITION [3][0.5],&lt;BR /&gt;
				LABEL_POSITION [2][2]	+	LABEL_POSITION [3][0.5]&lt;BR /&gt;
&lt;BR /&gt;
	endif&lt;BR /&gt;
&lt;BR /&gt;
..nothing happens.&lt;BR /&gt;
&lt;BR /&gt;
I can't see the array in parameters to be able to make changes to the values stored within it, nor can i see it anywhere else.. also it seems important to note that i am NOT using a pointer, 'if LABEL_CUSTOM_ARROW' seems to suggest it's a situation when i am using a pointer.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
...all i'm trying to achieve is moving the center point to the middle, like the image below. I'd like the current center, the black dot next to the 001, to be where the red dot is.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Sep 2018 00:30:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Coordinates-of-Property-Label-21/m-p/234520#M3530</guid>
      <dc:creator>davidstonearchicad21</dc:creator>
      <dc:date>2018-09-10T00:30:52Z</dc:date>
    </item>
  </channel>
</rss>

