GetSignals (Schematic Editor)

Informational

UI Access NA
Parameters
Name Type Description
<wirename> String The wire’s name, as seen in the UI, obtained in script through parsing return data from GetWireInfo.
Return Value Array of strings which contains the signal names in the wirename argument. The wirename "Net1" would return an array with a single string "Net1". The wirename "WW[0-3],A,B" would return an array with six strings "WW[0]", "WW[1]", "WW[2]", "WW[3]", "A", :B".

 

Python Syntax GetSignals(<wirename>)
Python Example

selectionArray = oEditor.GetSelections()

for i in selectionArray:

netArray3 = oEditor.GetWireInfo(i)

for n in netArray3:

wname = n[0:9]

if (wname == "WireName:"):

nn = len(n)

wn = n[nn-10:]

AddInfoMessage("Wirename, parsed from ID :" + str(wn))

sigs = oEditor.GetSignals(wn)

for ll in sigs:

AddInfoMessage("Element in array

from GetSignals :" + str(ll))

 

VB Syntax GetSignals(<wirename>)
VB Example

selectionArray = oEditor.GetSelections

For Each i in selectionArray

netArray3 = oEditor.GetWireInfo(i)

for each n in netArray3

wname = Left(n, 9)

If (wname = "WireName:") Then

nn = Len(n)

wn = Right(n, nn - 10)

MsgBox wn, 0, "Wirename, parsed from ID"

sigs = oEditor.GetSignals(wn)

for each ll in sigs

MsgBox ll, 0, "Element in array from GetSignals"

Next

End If

Next

Next