2020-10-1412:33 AM - last edited on 2021-09-1512:41 AM by Noemi Balogh
Hey! I am fairly new into GDL-programming, but I have little experience in another languages. I am trying to modify labels script, so it could draw a diagonal line from square-shaped objects corner to another corner.
Is this possible? I have seen a label which can return objects relative coordinates from project origin and write it as a string, so I thought this information could be used to tell the label to draw the diagonal line.
This would require: - Relative coordinates of one of the parent objects corners - Objects length in X-axis - Objects length in Y-axis
So how can a label request these parameters from a parent object? I tried to search info from other places, but I am out of luck, so I thought if someone could give me a hand here. I am doing this for my school project, so all the help would be very appreciated! Thanks in advance!
No, labels don't know the parent element's position.
This can only work if the user positions the label to a specific point of the parent.
If you want to label only a specific GDL object, you could try storing SYMB_POS_... globals into a parameter in the parent object, and getting it with REQUEST "ASSOCLP_PARVALUE" in the label.
Péter Baksa Software Engineer, Library as a Platform Graphisoft SE, Budapest