schHiReplace
schHiReplace( [ ?replaceAllg_replaceAll] [ ?propNamet_propName] [ ?condOpt_condOp] [ ?propValuet_propValue] [ ?newPropNamet_newPropName] [ ?newPropValuet_newPropValue] ) => t
Description
Replaces objects that match the specified search criteria with a specified value. Usable when editing symbols or schematics. You must have write access to each of the cellviews. Only supports matching of strings, integers, floating-point numbers, and time. This function does not support other property types.
The search criteria let you, among other tasks,
- Specify the object filter and a property name or a value expression that the objects must match
- Replace all objects at one time or view each matching item in turn and either replace the item or skip to the next item
- Search in another library or in another cellview and change a property
The schHiReplace function searches through the schematic or symbol cellview for objects that match the t_propName, t_condOp, and t_propValue arguments.
Arguments
Value Returned
Examples
Assigns all objects with the name of I1 to I2.
schHiReplace( t "instName" "==" "I1" "instName" "I2" )
Adds a new property name newProp with value set to I2 to all objects with the name I1.
schHiReplace( t "instName" "==" "I1" "newProp" "I2" )
Return to top