Is it possible to read a gcode.nc file from the toolpath node of the remote tcp UR cap, from an external ur script running as a thread

Hi, my name is Vishnu.
I am trying to parse a gcode.nc file which is used in the regular tcp UR Cap from an external UR script? The idea is to read a toolpath code line by line and and get an output which is all controlled by a UR script running as a thread.
Is this achievable or is there any work around for such a problem?
Thank you
Best regards

Hello Vishnu! Did you solve this problem? I am trying to write a python script that does motion control on the robot based on a gcode.nc file.I tried creating a .urp file, a program that takes a gcode file and runs it, uploaded both of them via FTP, that didn’t work. So now I uploaded that example_control_loop.urp file and tried to write this script but i keep getting a protective stop error C207A0. I disabled the watchdog completely and that didn’t solve the problem so i’m a bit stuck. Thanks!