Skip to main content
1-Visitor
Feb 4, 2021 10:32 AM UTC
Solved

How to check if any sibling exist for any node in network using script

Hi Team, Please let me know the PTC api or any logic to check the sibling of any node in a network? Thanks in advance.
1-Visitor
Feb 4, 2021 11:58 AM UTC

You can find using following steps,

1. Get parent of current node

2. Get Child list of parent node

 

By comparing child count you can find.

2 replies

1-Visitor
Feb 4, 2021 11:58 AM UTC

You can find using following steps,

1. Get parent of current node

2. Get Child list of parent node

 

By comparing child count you can find.

Translate
14-Alexandrite
Feb 4, 2021 12:40 PM UTC

Hi ranjank,

 

I have created a query to get relation between a parent node and it's child. Every child within a parent can be grouped as siblings.

 

Please use the entities I have attached for the service I have created for above mentioned scenario. This can also be modified to get the count of sibling.

 

Do revert for any further queries.

 

Regards,

Sudeepta Verma

Translate