So, you are calling the methods that return PartsEnumerator. You may use the result as follows:
Dim children As PartsEnumerator = _API.ActiveRoot.GetAssemblyChildren()
Dim p As Part
For Each p in children
MessageBox.Show( p.ToString())
Next
The equivalent results can be obtained through:
Dim children As Value() = _API.ActiveRoot("AssemblyChildren")
Dim p As Part
For Each p in children
MessageBox.Show( p.ToString())
Next
There is a difference between GetChildren() and GetAssemblyChildren(): The first one enumerates the child Parts in the memory model, while the second one brings only a subset that you see in the Assembly Tree.
Thank you,
Alex Korzun
Intent Development
Thank you,
Alex Korzun
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.