CogCADFile GetShapeModelsFromAGroup Method Cognex VisionPro 9.8
Gets all shape models in the specified group 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 GetShapeModelsFromAGroup(
	string groupName
)

Parameters

groupName
Type: System String

The group from which to get the shapes.

Return Value

Type: ICogShapeModelCollection

The shape model collection.

Exceptions

ExceptionCondition
CogNoFileOpenException

No file is open.

ArgumentException

groupName does not exist..

Remarks

Gets all shape models in the specified group 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