RobotStudio event

API: TargetReachEvent

Hi again!

I found a TargetReachEvent EventHandler in the Mechanism class.

I did
[code]
.
.
.
int targetsReached = 0;
myactiveTask.Mechanism.TargetReachEvent += new EventHandler(myTargetReachEventHandler);

.
.
.
[/code]
with
[code]
static void myTargetReachEventHandler(object sender, EventArgs e)
{
targetsReached++;
}
[/code]

When I do Simulation -> Play the robot reaches all the targets but the eventhandler is not called.

Can anyone tell me whats wrong?

Best regards, Matthias

Comments

  • Hi Matthias,

    Unfortunately the TargetReachEvent isn't implemented, so it will never be called..

    regards,
    Johannes

    Johannes Weiman
    Software Engineer
    ABB Robotics