GDL
About building parametric objects with GDL.

Label is not placing in the centre

JGoode
Expert
Hello,

I'm making a label which is essentially an 'X' shape. I want the centre of the 'X' to be where I place the label however for some reason that I can't work out, it isn't placing. I have the centre of the X positioned at 0, 0 but it still isn't doing what I want.

Has anyone experienced this before?

Thanks
ArchiCAD 23

Windows 10
1 REPLY 1
Barry Kelly
Moderator
Add this to the 2D script before you place any text or anything else.
if not(LABEL_HAS_POINTER) then	!!!!****************version 22 onwards*******************
	add2 	LABEL_POSITION [2][1]	+	LABEL_POSITION [3][1],
			LABEL_POSITION [2][2]	+	LABEL_POSITION [3][2]

endif
It makes it so that if the pointer is turned off then it moves the label to the default first click position.
Otherwise even though there is not pointer, it still seems to use the default pointer values.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11