FindElements (Schematic Editor)

Select elements based on properties

UI Access Edit>Find Elements
Parameters
Name Type Description
<propname> String The name of the property, or "*" to search through all properties
<propvalue> String The value of the property, or a substring
<criterion> Integer

0 = Contains

1 = Does not contain

2 = Exact match

<types> Integer

2 - components only

4 - graphic objects only

8 - wires only

16 - ports only

Add the numbers to look through more types - 30 is a common number, searching through everything

<match> Boolean

True = match all of the properties specified

False = match any of the properties specified

<case> Boolean

True = case-sensitive

False = not case-sensitive

<sub> Boolean

True = search subcircuits as well as current schematic

False = only search current schematic

<only> Boolean

True = search within current selections

False = search schematic(s)

Return Value Array of strings, the names of the elements selected
Note:

For more information about the component name, schematic IDs, and formats, see the section Editor Scripting IDs.

 

Python Syntax FindElements(["NAME:SearchProps", "Prop:=", [<propname>, <propvalue>, <criterion>)[, [<propname>, <propvalue>, <criterion>]]*], ["NAME:Parameters", "Filter:=", <types>, "MatchAll:=", <match>, "MatchCase:=", <case>, "SearchSubCkt:=", <sub>, "SearchSelectionOnly:=", <only>])
Python Example

oEditor.FindElements(

[

"NAME:SearchProps",

"Prop:=", ["CompName","",0]

],

[

"NAME:Parameters",

"Filter:=" , 30,

"MatchAll:=" , False,

"MatchCase:=" , False,

"SearchSubCkt:=" , True,

"SearchSelectionOnly:=" , False

])