CogBeadInspectRunParams DestroyMaskAndFillLists Method Cognex VisionPro 9.22 SR1
Destroys the existing MaskList, RightFillList, and LeftFillList. After this call, the three properties will return null.

Namespace: Cognex.VisionPro.EdgeInspect
Assembly: Cognex.VisionPro.EdgeInspect (in Cognex.VisionPro.EdgeInspect.dll) Version: 87.1.0.0
Syntax

public void DestroyMaskAndFillLists()
Events

Event TypeReason
ICogChangedEvent Changed Fires when this method changes the MaskList, RightFillList, and/or LeftFillList properties of the RunParams. The following state flags may be affected:
Remarks

Before masks or fill edges may be used, their lists must be initialized using a CogBeadInspectTrainResult, which ensures that the lists are correctly synchronized with the actual number of calipers. When interacting with a new training result (typically because the Pattern has just been retrained), it is required that the lists be recreated if the number of calipers has changed. If the number of calipers has not changed, then recreating the lists is not required, but a review is advised to ensure that their positions still meet expectations. Failure to recreate the lists when required will result in a runtime error until new lists are generated or the current lists are destroyed.

Attempting to access the elements or call the methods of an ICogBoolList that has been destroyed by a call to DestroyMaskAndFillLists  will result in an ObjectDisposedException.

See Also