Hi,
Probably an easy one for somebody. In FlexiLayout Studio I want to write code in the advanced pre-search relations section that tells the program to first try looking for an element to the right of a previously found element and if not found to try looking below a different previously found element. I can't seem to get the syntax right.
I want to first try searching for "csPartCode" to the right of the current instance of "kwMFR" and if null I want to look below the current instance of "kwHS". This is within a repeating group I should mention.
I keep causing the error "attempt to access not generated hypothesis". Probably something very basic that I'm overlooking. Any suggestions would be appreciated.
Comments
3 comments
Here's what I have which does not work lol:
Still somewhat new to FlexiLanguage as you can probably tell.
Disregard. Realized I should be defining rectangles. I believe I have it solved now.
What worked in the end once I realized I was on the wrong track...
//rectarray dataregion;
//let r1 = rect(kwMfr.Rect.Right, kwMfr.Rect.Top-1mm,
//kwMfr.Rect.Right+25mm, kwMfr.Rect.Bottom+1mm);
//let r2 = rect(kwMfr.Rect.Left-125mm, kwMfr.Rect.Bottom+1mm,
//kwMfr.Rect.Right, kwMfr.Rect.Bottom+8mm)
//dataregion = rectarray(r1)
//dataregion.add(r2);
//restrictsearcharea(dataregion);
Please sign in to leave a comment.