Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to get check failed reason message from API

#1
In RoboDK I can right-click the program and click on either "Recalculate Targets" or "Check Path" and if the path is unvalid. A message is shown, showing the reason why it isn't valid and the instruction that is causing it to be invalid.

   

How do I get that same message via the API? I can run program.Update() to return UpdateResult to get the ValidRatio. However, the message variable is always empty. I tried using program.SetParam("RecalculateTargets") but it just returns OK.
#2
It is not possible to obtain the same message you shared in the image using the API. You should use the ValidRatio instead to understand what instruction fails.
  




Users browsing this thread:
3 Guest(s)