I’m trying to build a recursive function, which cycles through all the subtools. First I have to know how many subtools are present. I believe this is done through the ToolGetCount function, but every time I use it, it returns the value 0 (error code?). Bellow is an excerpt of my code with testing code. I tested it on a tool with 10 subtools.
I get 0 then END OF LINE, when I expect it to show 10, then count from 0 to 10, then END OF LINE…