CogCADFile GetShapesFromAGroup Method Cognex VisionPro 9.7
Gets all shapes in the specified group from the currently open CAD file. Returns a newly created CogGraphicCollection.

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

public CogGraphicCollection GetShapesFromAGroup(
	string groupName
)

Parameters

groupName
Type: System String

The group from which to get the shapes.

Return Value

Type: CogGraphicCollection

The shapes.

Exceptions

ExceptionCondition
CogNoFileOpenException

No file is open.

ArgumentException

groupName does not exist..

Remarks

Gets all shapes in the specified group from the currently open CAD file. Returns a newly created CogGraphicCollection.

See Also