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

GetPortCount

Returns the total number of ports.

UI Access From the Network Data Explorer tab, select Edit Ports in the NDE ribbon to open the Port properties window.
Parameters None.
Return Value Integer number of ports.

 

Python Syntax GetPortCount()
Python Example

oNDE = oDesktop.GetTool("ndExplorer")

num = oData.GetPortCount()