We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Moveable hotspot with glob_scale

JGoode
Expert
Hello,

I have an object which in 2D shows the physical object as well as a square box which has a code inside. I want to be able to move the box away from the physical object 2D but only along the Y axis. I have achieved this as it's very straight forward. The issue that I am having is that I want the position of square box to remain in the same position relative to the physical 2D when changing scale. The square box with the code increases / decreases in size depending on the scale.

For example I want the box to be at position -10 on the y axis at scale 1:1 but at 1:10 I want it to automatically change to be -100 but still with the ability to move the box at 1:100.

How can I achieve this?

here is a little bit of the current code for the hotspot and moving the box:
	hsid=1
	
	hsid=hsid+1
	HOTSPOT2 textx,0,	hsid,texty,1+128
	hsid=hsid+1
	HOTSPOT2 textx,texty,	hsid,texty,2
	hsid=hsid+1
	HOTSPOT2 textx,-1,	hsid,texty,3
	
	ADD2 textx,texty
ArchiCAD 23

Windows 10
0 REPLIES 0