CogCADFile GetShapeModelsFromALayer Method Cognex VisionPro 9.24
Gets all shape models in the specified layer from the currently open CAD file. Returns a newly created CogShapeModelCollection. All models have a weight of 1.0 and an undefined polarity. These properties are required for training synthetic PatMax.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 91.0.0.0
Syntax

public ICogShapeModelCollection GetShapeModelsFromALayer(
	string layerName
)

Parameters

layerName
Type: System String

The layer from which to get the shapes.

Return Value

Type: ICogShapeModelCollection

The shape model collection.

Exceptions

ExceptionCondition
CogNoFileOpenException

No file is open.

ArgumentException

layerName does not exist..

Remarks

Gets all shape models in the specified layer from the currently open CAD file. Returns a newly created CogShapeModelCollection. All models have a weight of 1.0 and an undefined polarity. These properties are required for training synthetic PatMax.

See Also