Which is the best way to get the graphical hotspots from a macro called object with several instance in a parent one?
I tried that hotspotID and the angle rotation takes the value from a parameter an change in to a single “call” command, but it doesn’t work
If you need different rotations in each instance, you have to use a different parameter in each. The hotspot uses the parameter belonging to the parent object, not the macro.
A solution for this could be that you pass an array of rotations, and an index telling which one to use from the array for the hotspot.
An example with simpler length editing:
for i = 1 to 2
call "testmacro" parameters x = x, i = i
line2 0, 0, x[i], 0
add2 0, 0.1