There are circumstances where it’s desirable to be able to find all occurrences of a given geometrical measurement (e.g. bond distances) through pattern search. They key to achieve this is to highlight the target measurement in the pattern document prior to pattern search. Detailed procedure follows:
1.Create a pattern document of the target molecule/fragment.
2.Make the measurement intended (angle in the example bellow) in the pattern document.
3.Be sure to highlight the measurement (the angle monitor in this case).
4.Perform pattern search (Menu Edit | Find Patterns) in the main document.

Dear Jian-jie, Since I'm working on inhomogeneous materials, I need to apply StressComponent ZX (instead of the built-in StressComponent XZ). Can anyone help me take a look, or modify this script? thank you very much. I'm in a hurry, and I can also give some compensation. Delete the suffix .txt to get the original script.pl