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.
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.
Assembly: Cognex.Vision.LineMax.Net (in Cognex.Vision.LineMax.Net.dll) Version: 9.25.1.0
Return Value
Type: Int32If 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.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown when you assign a value less than zero. |
Changed Fires when this property changes. The following state flag may be affected:
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.