This video shows how to read a robot program using Python API for a 4.0 product. The video also shows how to create and import a user-defined Python module.
Files: http://bit.ly/2mzL7oA
CONTENTS
1:42 - Get executor of robot program
2:34 - Get robot program of executor
2:59 - Get routines of robot program
4:08 - Get variables of routine
4:57 - Get root level statements in routine (scope of routine)
5:32 - Get nested statements in routine (scope of statement)
7:18 - Get all statements in routine
10:40 - Get all statements in robot program
15:11 - Get all nested statements (scopes of statement)
17:20 - Get all positions in routine (position of motion statement)
23:30 - Get all positions in robot program
28:40 - Create and import module for reading robot program
Get a free demo of Visual Components: https://bit.ly/3ibEypI