Documentation /  Analog Insydes /  Reference Manual /  Circuit and DAEObject Manipulation /

DeleteElementsRenameNodes

3.6.3 GetElements

Command structure of GetElements.

Given a Netlist or Circuit object, GetElements extracts netlist elements from the top-level netlist and returns a list of these elements. The argument stringpattern is either a single string pattern or a list of string patterns. Netlist elements whose reference designator matches any of the string patterns are extracted.

See also: AddElements, DeleteElements.

Examples

Load Analog Insydes.

In[1]:= <<AnalogInsydes`

Define a simple voltage divider.

In[2]:= netload =
Netlist[
{V0, {1, 0}, V0},
{R1, {1, 2}, R1},
{R2, {2, 0}, R2},
{Rload, {2, 0}, Rload}
]

Out[2]=

Extract all elements whose reference designator match the string pattern "R*".

In[3]:= GetElements[netload, "R*"]

Out[3]=

DeleteElementsRenameNodes