ScrGetCktElemTerminalNetNames

Returns names of the two nets to which a specified circuit element is connected.

UI Command:   None.
Syntax:   obj.ScrGetCktElemTerminalNetNames(<name>, <type>, <pnet>, <nnet>)
Parameters:  

BSTR name (the circuit element Reference Designator)

BSTR type ("cap", "ind", "res", "port", "vprobe", "csource" or "vsource")

ARRAY pnet

ARRAY nnet

Return Value:  

INT

  • 0 – Success
  • 1 – Either name OR type is not specified.
  • 2 – Type is unrecognized.
  • 3 – Name cannot be found.
  • 4 – Circuit element's positive terminal is floating (has not been connected to a net).
  • 5 – Circuit element's negative terminal is floating (has not been connected to a net).
VB Example:  

obj.ScrGetCktElemTerminalNetNames("C1","cap",pnet,nnet)

IPY Example:  

oDoc.ScrGetCktElemTerminalNetNames('C1','cap',pnet,nnet)