CogCADFile GetGroups Method Cognex VisionPro 9.10
Returns a collection containing the names of all the groups in the currently open CAD file. DXF files sometimes contain named groups of shapes.

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

public CogStringCollection GetGroups()

Return Value

Type: CogStringCollection

The returned group names.

Exceptions

ExceptionCondition
CogNoFileOpenException

No file is open.

Remarks

Returns a collection containing the names of all the groups in the currently open CAD file. Not all DXF files contain groups.

See Also