Browser Node Skips a Generation

Browser Node Skips a Generation

larry.daubenspeck
Advocate Advocate
401 Views
2 Replies
Message 1 of 3

Browser Node Skips a Generation

larry.daubenspeck
Advocate
Advocate

I have an gymnasium assembly containing six backstops.  Its name is 123456-ALL BACKSTOPS.iam  The six nodes in its browser represent the six backstops, named 123456-BS1, 123456-BS2, etc.  As I iterate through each backstop's sub-occurrences and dive deeper into its family tree, and want to know which particular backstop an occurrence goes with, I query its browser node, and then its parent node, and so on, until I arrive at the node label containing "BS", then get the number following.  Works like a charm, but...  Every once in a blue moon, it will ignore a parent node and go to the next node in the tree.  In this particular case, the node containing the BS is getting skipped and going straight to the ALL BACKSTOPS node.  Anybody else ever experience this, and know why or how to correct it? 

 

Thanks in advance.

Larry Daubenspeck
Software Programmer
Draper, Inc.
0 Likes
Accepted solutions (1)
402 Views
2 Replies
Replies (2)
Message 2 of 3

Sergio.D.Suárez
Mentor
Mentor

Hi, Can you share an image to see the problem?
Can you replicate the problem in an assembly file that you can attach and not compromise the confidentiality of your source file?


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

0 Likes
Message 3 of 3

larry.daubenspeck
Advocate
Advocate
Accepted solution

Thanks Sergio, but I found the problem.  In searching through the sub-occurrences, I occasionally found a use for a recursive function, whereby I passed a sub-occurrence as a parameter.  However, this seems to cause confusion when it comes time to query the browser nodes.  Thanks again.

Larry Daubenspeck
Software Programmer
Draper, Inc.
0 Likes