CogBeadInspectRunParams CreateMaskAndFillLists Method (CogBeadInspectRunParams)Cognex VisionPro 9.8
Creates and initializes the MaskList, the RightFillList, and the LeftFillList. This method gets the desired length of the lists from the MaskList property of the given CogBeadInspectRunParams. The lists are filled with the Boolean value "false".

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

public void CreateMaskAndFillLists(
	CogBeadInspectRunParams other
)

Parameters

other
Type: Cognex.VisionPro.EdgeInspect CogBeadInspectRunParams
The run params whose mask length will be used to create the three lists.
Events

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

ExceptionCondition
ArgumentNullExceptionother is null.
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.

Calling this method will destroy all existing mask and fill edge lists prior to creating the new lists.

See Also