CogCADFile GetShapeModels Method Cognex VisionPro 9.8
Gets all shape models 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: 75.1.0.0
Syntax

public ICogShapeModelCollection GetShapeModels()

Return Value

Type: ICogShapeModelCollection

The shape model collection.

Exceptions

ExceptionCondition
CogNoFileOpenException

No file is open.

Remarks

Gets all shape models 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