Overview
This Script will check if component labels match the string pattern that is handed as argument over by the execution pattern (see below).
If matching, components will be re-colored itself (if no set-name is handed over as argument), or a set is created with these components. Show / Hide of the set can be used to show a colored display of these components (components not re-colored itself).
If set name already exists, components matching the pattern will be added to this set.
Pre-Requisite
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Usage/Installation Instructions
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Run script from DropDown File > Load > Script


Enter execution pattern through TCL Console (activate Console by DropDown "View").
Execution pattern examples:
-
ColorPartsByName "P747500\[1-6\];*" blue "SetName7"
>> Matches P7475001;*-7475006;*
-
ColorPartsByName "2\[5-9\]\[0-9\]\[0-9\]" blue "SetName7"
>> Matches 2500-2999 for creating Set
-
ColorPartsByName "2\[5-9\]\[0-9\]\[0-9\]" blue
>> Matches 2500-2999 for directly recoloring components
-
ColorPartsByName "Shell\ \[2\]\[0\]\[0\]\[0\]\[6\]\[1-9\]\[1-9\]*" red "SetName8"
>> Matches "Shell 2000600" - "Shell 2000699"


Post-Requisite
-------------------------------------------------------------------------------------------------------------------------------------------------------------