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

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

public CogGraphicCollection GetShapesFromALayer(
	string layerName
)

Parameters

layerName
Type: System String

The layer from which to get the shapes.

Return Value

Type: CogGraphicCollection

The shapes.

Exceptions

ExceptionCondition
CogNoFileOpenException

No file is open.

ArgumentException

layerName does not exist..

Remarks

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

See Also