ScrSetPowerGroundNets

Selects nets to be designated power and ground nets.

UI Command:   Power/Ground Identification in Nets window.
Syntax:   obj.ScrSetPowerGroundNets(<netNames>, <appendToCurrentNetsSelected>)
Parameters:  

ARRAY netNames

BOOL appendToCurrentNetsSelected (TRUE = nets already set to power/ground remain power/ground; FALSE = all nets not in the array are set to non-power/ground.)

Return Value:  

BOOL:

  • 0 – Failure
  • 1 – Success
VB Example:  

dim netNames(3)

netNames(0)="Net 1"

netNames(1)="Net 2"

netNames(2)="Net 3"

outcome = obj.ScrSetPowerGroundNets(netNames, TRUE)

IPY Example:  

oDoc.ScrSetPowerGroundNets(['Net1','Net2','Net3'],1)