cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Network Children

fgrondin
5-Regular Member

Network Children

Hey,

I would like to know if there is a way to get the children of a node inside a network programaticaly.

So, let's say in my network I have parent A and I want all its children programmaticaly.

How would i do that in javascript ?

1 ACCEPTED SOLUTION

Accepted Solutions
smanley
13-Aquamarine
(To:fgrondin)

Hi Frederik,

You can use the GetChildConnections code snippet as shown below. The name parameter will be the name of the node to return child connections for.

var params = {

name: undefined /* STRING */

};

// result: INFOTABLE dataShape: NetworkConnection

var result = Networks["MyNetwork"].GetChildConnections(params);

View solution in original post

1 REPLY 1
smanley
13-Aquamarine
(To:fgrondin)

Hi Frederik,

You can use the GetChildConnections code snippet as shown below. The name parameter will be the name of the node to return child connections for.

var params = {

name: undefined /* STRING */

};

// result: INFOTABLE dataShape: NetworkConnection

var result = Networks["MyNetwork"].GetChildConnections(params);

Top Tags