Color parts by ID range match

Sebastian_Karp
Sebastian_Karp
Altair Employee
edited February 2 in Altair Exchange

Overview

This Script will check if component ID is

>= lower boundary value

and

<= upper boundary value.

 

Boundary values are handed over as arguments by the execution pattern (see below).

 

If condition is matched, component 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

 

image

 

image

 

 

 

Enter execution pattern through TCL Console (activate Console by DropDown "View").

 

Execution pattern examples:

  • ColorPartsByID 2500 2999 blue "SetName7" 
    >> Matches 2500-2999   for creating Set
  • ColorPartsByID 2500 2999 blue  
    >> Matches 2500-2999   for directly recoloring components

 

 

image

 

image

 

Post-Requisite

-------------------------------------------------------------------------------------------------------------------------------------------------------------