Hello Gals & Guys!
I have a theoretical question:
Many times I need to deal with imported STEP structures with multiple braches, like:
-root
-Comp1
-Comp11
-Comp111
-Comp1111
-....
-Part11111
-Comp2
-Comp22
-Comp222
-Comp2222
-....
-Part22222
-....
my question: how to check if for example Part22222 is under Comp2?
I was thinking of going through documents collection and for each Part check it's Parent until root (like: "is there Part22222 in full path up to Comp2?") but I do not know the method / property how :/
The other idea was going in reverse direction: Define Comp2 as root and lauch recursive loop until last found level of the tree, but I don't know neither how to check how deep the structure goes :/ also I would need to check each component on the way, if it's part or not - sounds time consuming 
Anyone has an idea how to approach the issue?
Any suggestion will be welcomed
Best regards
Lucas
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP