LineMaxOperatorBase MaxNumLines Property Cognex VisionPro 9.25 SR1
Get

Gets the maximum number of lines to be found. A LineMaxMulti license must be available to execute the tool with MaxNumLines set to greater than or equal to 0.

Set

Sets the maximum number of lines to be found. A LineMaxMulti license must be available to execute the tool with MaxNumLines set to greater than or equal to 0.

Namespace: Cognex.Vision.LineMax.Implementation
Assembly: Cognex.Vision.LineMax.Net (in Cognex.Vision.LineMax.Net.dll) Version: 9.25.1.0
Syntax

public abstract int MaxNumLines { get; set; }

Return Value

Type: Int32

If a LineMaxMulti license is not found, MaxNumLines must be set to 0 or 1. If a LineMaxMulti license is found, there is no upper limit on MaxNumLines, though processing time will increase with larger values.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThrown when you assign a value less than zero.
Remarks

Changed Fires when this property changes. The following state flag may be affected:

Remarks

A LineMaxMulti license must be available to execute the tool with MaxNumLines set to greater than 1. If a LineMaxMulti license is not found, MaxNumLines can only be set to 0 or 1, or the tool will generate a SecurityViolationException exception. If MaxNumLines is set to 0, line segments will not be returned, but ConsideredOutliers and UnconsideredOutliers will still be calculated.

See Also