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.

How to determine unID of the currently edited HOTSPOT ?

Anonymous
Not applicable
I have the array of the numbers.
And I create hotspots for it's items in loop.
I need to determine what item of my array currently graphical edited in 2d.
2 REPLIES 2
Lingwisyer
Guru
Within the loop, or a loop that matches the one that is drawing your object, add ": unID = unID + 1" after your hotspot.

hotspot2	a,	b,	unID,	[parameter],	[type]	: unid = unid + 1


Ling

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
JaseBee
Advocate
If i understand you issue correctly, you have multiple editable hotspots created from an array parameter and you wish to identify what number of the loop you are selecting.

For this I'd suggest using the custom description feature as follows...

hotspot2 x, y, unID, parameter, type, displayparameter, "custom description" : unID=unID+1

You could replace custom description with your 'unID' value or your 'i' value, but whatever you put there it must be a string (you have to convert 'unID' and 'i')

the display parameter can just be the same as parameter, but it neesd to be present to set the "custom description"

Happy Hunting
AC 24 5004 AUS
iMac OSX (10.13.6) 4.2ghz i7
8gb ram/8gb vram