Cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the Failed message of Jump Assigned Robot cmd?

Valued Contributor
Valued Contributor

hi,

 

I try to call the Jump Assigned Robot command,

txCmdMgr.ExecuteCommandByCommandProgId("DnBIWPlanningCommands.JumpAssignedRobot.CCoJumpAssignedRobotCmd", null);

 

 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.

2018-04-23_104117.png

 

 

 

thanks.

 

 

 

 

 

2 REPLIES

Re: How to get the Failed message of Jump Assigned Robot cmd?

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Hi Ernest,

 

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(ITxRoboticControllerServices),

                        typeof(TxControllerAttribute), "ControllerName") as ITxRoboticControllerServices;

ControllerServicesInterface.JumpToLocation(...) which returns a status

 

Regards,

Adi Avron

Re: How to get the Failed message of Jump Assigned Robot cmd?

Valued Contributor
Valued Contributor
Hi Adi Avron,
thanks for your advice, I will use and test.
by the way, may you share some material for Tecnomatix.Net to me? thanks.