Groups and nodes

Hi walter,
i have a diagram of this model. sample link is below.

how can i get outgoing nodes and groups from system_1 in above image?
how can i get incoming nodes and groups from system_2 in above image?
how can i get top level part for outgoing nodes and groups from system_1 in above image?
how can i get top level part for incoming nodes and groups from system_2 in above image?

I think you want to call Group.findExternalLinksConnected. Look at each Link to see whether its Link.fromNode’s Part.findTopLevelPart is the group you are starting from or not.

Does this answer your question?

this will be ok. but in findExternalLinksConnected , i will get incoming and outgoing links. is there any direct way to get directly outgoinggroups and outgoingnodes like node.findNodesOutOf() ?

No, that is why I suggested that you look at the findTopLevelPart of the Link.fromNode to see if the link is going out or not.