08-24-2023, 02:04 PM
I feel like the answer to this question exists on this forum but just can't figure out the right search terms to find it.
I have a program that needs to call another program, but can't find the instruction within the program object to do this. The RunProgram() function just runs the program itself rather than adding a subroutine call to the list of program instructions, which is what I'm trying to do. I can figure out how to do all the other instructions except for the one that adds a program call.
For example:
program = _rdk.AddProgram($@"LeaveHome");
program.SetFrame(frame);
program.SetTool(_rdk.GetItemByName("Tool 1"));
program.MoveL(home_free);
program.???? <--- need to add a program call here, using the name or id of an already existing program
I have a program that needs to call another program, but can't find the instruction within the program object to do this. The RunProgram() function just runs the program itself rather than adding a subroutine call to the list of program instructions, which is what I'm trying to do. I can figure out how to do all the other instructions except for the one that adds a program call.
For example:
program = _rdk.AddProgram($@"LeaveHome");
program.SetFrame(frame);
program.SetTool(_rdk.GetItemByName("Tool 1"));
program.MoveL(home_free);
program.???? <--- need to add a program call here, using the name or id of an already existing program