I try to call the Jump Assigned Robot command,
sometimes the location cannot be jumped, the PS would pop a box like below, but how do I get the failed message? and I can do something according to the failed message.
the txCmdMgr.ExecuteCommandByCommandProgId return the TRUE, cannot use to get what I want to know.
Solved! Go to Solution.
It is better to use the controller method (JumpToLocation) via Olp API than to invoke the command.
It should be something like the example below:
TxOlpControllerUtilities m_txOlpControllerUtilities = new TxOlpControllerUtilities() ;
ITxRoboticControllerServices a = m_txOlpControllerUtilities.GetInterfaceImplementationFromController(
« Abb-Rapid »,
typeof(TxControllerAttribute), "ControllerName") as ITxRoboticControllerServices;
ControllerServicesInterface.JumpToLocation(...) which returns a status