Hi again!
I found a TargetReachEvent EventHandler in the Mechanism class.
I did
.
.
.
int targetsReached = 0;
myactiveTask.Mechanism.TargetReachEvent += new EventHandler(myTargetReachEventHandler);
.
.
.
with
static void myTargetReachEventHandler(object sender, EventArgs e)
{
targetsReached++;
}
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