Hi all. I would like to set the center co-ordinate of Property Label 21 to the center of the text.
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.
My search through the code led me here:
! 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 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  + LABEL_POSITION ,
LABEL_POSITION  + LABEL_POSITION 
I'm struggling to find the array holding the co-ordinates. Maybe they are called from the 'label_marker_macro'? Can this be edited?
I've tried to wrap my head around it but i can't figure out how i those lines translate to a co-ordinate.
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  an array or is it pointing to the macros you speak of ?
The first number in the array is the label point.
The label has 3 points on the leader line.
The arrow head, the middle point and the text position.
I am not sure of the order - i.e. if the arrow is point 1 or 3.
The second number in the array it the point co-ordinate (1 = X and 2 = Y)
LABEL_POSITION  is point 2 'X' co-ordinate.
LABEL_POSITION  is point 2 'Y' co-ordinate.
Number "2" is the pointer ("Obviously" )
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 😉 (print command shows negative...but check for positive little surprise)
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.
...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.