Skip to main content
Kofax

Advanced Zone Locator: Anchors

17346
308598

Question / Problem: 

How Do I Access an AZL Anchor through script?

Answer / Solution: 

The anchor properties of an AZL are stored in the Representation node of the XDoc, and are accessible in script as described below: 

pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").AnchorConfidence
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").AnchorHeight
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").AnchorType
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").AnchorWidth
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").AnchorXPos
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").AnchorXShift
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").AnchorYPos
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").AnchorYShift
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").Failed
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").Height
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").Left
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").Name
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").Page
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").Threshold
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").Top
pXDoc.Representations.ItemByName("AdvZoneLoc").Pages(0).AnchorZones.ItemByName("MyAnchor").Width

Applies to:  

Product Version Category
KTM 6.3 Scripting
KTM 6.2 Scripting

 

  • Was this article helpful?