Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Label is not placing in the centre

JGoode
Advocate
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 17, 19, 21 and 23
Windows 8
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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!