create(Sub)Routine

Hello,

i want to create a subprogram/subroutine via script, which i then can fill with statements.
Problem is: vcRslProgramExecutor, which contains the needed method, is deprecated and vcExecutor doesn’t give the necessary method.

Is it still possible to create a subprogram or was this deleted?

Best regards!

Alright, sorry for the hasty question!

A bit of searching in the vcHelpers.Robot2.py brought up the .addRoutine() method…

Best regards

This tutorial has the information on how to write statements to routines, subroutines etc.

https://www.youtube.com/watch?v=CD9iHIgDJWw&list