Access child objects from Scripting Aspect
I am trying to make a list of all the modules in a controller being in a given state.
In order to do so I created a Simple scripting aspect in the controller object.
I am accessing the object controller using the word "object".
object.properties gives me access to the properties and object.aspects gives access to the aspects. What is the property/function giving access to the nested objects of the current object?
I can not talk about scripting aspects in special, but about 800xA interfaces in general.
I think the scripting "object" and "aspect" objects should be similar to the common 800xA interfaces.
"child objects" are not on the "object", but accessable on the structure-type aspects.
# first we need the structure aspect of the object
structAsp = object.aspects("Control Structure")
# now we can get the IAfwBPStruct interface from this aspect
structAso = structAsp.Aso("AfwBPStruct")
# at last we can get parent and child objects
structAso.GetChildren(out count, out childs)