Warning: The following command is preliminary. Its syntax may change. Be prepared to make changes to legacy scripts.

Reorder (SPISim)

Creates a new network data with the same number of terminal ports and with the port names in the same order. The data is also reordered so it corresponds to the new order (e.g., the data for S(Port1, Port1) may correspond to S(Port3, Port3).

Note: Reorder opens and interacts with SPISim to complete.
UI Access

From the Network Data Explorer tab, select Transforms in the NDE ribbon. Then select Reorder from the drop-down menu.

Parameters
Name Type Description
 <oData> Object Data from this object is copied to a new network data and the copy is transformed.
<portNumbers> Array of Integers The port numbers in new order (integers between 1 and n).
Return Value

Network IDispatch.

Note: Reorder returns None if the array argument does not contain all the terminal port numbers, in any order.

 

Python Syntax Reorder()
Python Example

oNDE = oDesktop.GetTool("ndExplorer")

oData2 = oNDE.Reorder([3, 2, 1])