micik - 2024-08-12

Hello,
I have found a script for printing device tree in Codesys project. This script is available as code snippet as an exmaple for using Python in Codesys. However I feel main documentation is lacking. For example, where can I find that object has "is_device" attribute?
Code examples are given here:
https://content.helpme-codesys.com/en/CODESYS%20Scripting/_cds_access_cds_func_in_python_scripts.html

However, I have a question how to print the whole Project tree and not just devices? Of course I need to remove check:

if treeobj.is_device:

But simply removing this test condition will not produce what I want. I need to print PLC Logic, Application, ad other nodes in the Project tree.
Where to find this documentation?