04-01-2014 09:20 AM
Hi,
I need to swich the comparison for all steps in one sequence file.
Is it any nice and quick (one line code like) method of doing that?
K.
04-01-2014 10:07 AM - edited 04-01-2014 10:08 AM
Using the Find/Replace feature of the sequence editor. Search for Comp with "Match Whole Word Only" checked and only the "Names" Element checked. Then select all matches that aren't the NumericLimitTest step type itself (should be all but the match to the step type). Then put LOG in the Replace With edit control and then press the "Replace Value" button.
-Doug
04-01-2014 10:11 AM
Also, I noticed you said "for an execution", so beware that this will overwrite the existing value for comparison in these steps. You might want to make a copy of the sequence file first. If you do need to do this programmatically for certain executions, you could do so with the API, but it likely would not be a one-line expression(for example, you would have to iterate through all of the steps in the sequence file).
04-01-2014 10:22 AM
Yes,
An API function that what I was after.
I don't want to search and replace.
So, I understand that there is no API function which disable the comparison and enable the LOG only?
It would be very good if we have that functionality in future 🙂
Any other ideas?
04-01-2014 11:18 AM
The information to do this is stored in a step property so you can use the API to do this.
Step.Comp = "LOG"
or Step.COMP = "GELE"
Like Daniel said though you would need to iterate over all the steps.
04-01-2014 11:59 AM
OK, Thanks guys.