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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to change the root node of network using script or any other process

ranjank
15-Moonstone

How to change the root node of network using script or any other process

Hi Team,

 

Suppose I have an existing network and want to add the new root node at the top of existing root node.

 

How to achieve this scenario.

 

Please advise.

3 REPLIES 3
c_lowy
16-Pearl
(To:ranjank)

Hi @ranjank,

 

I have not tried that using a JavaScript service but if I understood your use case correctly I believe you should be able to achieve that over the Composer when you edit the Network. An Entity can be dragged from the left panel and dropped right above the first node. If you then drag and drop the initial root node onto the new one you should end up with a new root node on top of the old one.

 

Or did I maybe misunderstand your intent ?

ranjank
15-Moonstone
(To:c_lowy)

@c_lowy ,

 

I was actually trying this before in advance from composer itself but actually, we are unable to place the dragged node from any child node to main root rode.

 

Also it is not allowing to place any node at parallel level to root node.

c_lowy
16-Pearl
(To:ranjank)

@ranjank, which version of ThingWorx are you using ?

Announcements


Top Tags