CogCADFile GetLayers Method Cognex VisionPro
Returns a collection containing the names of all the layers in the currently open CAD file. DXF files are usually constructed with named layers.

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

public CogStringCollection GetLayers()

Return Value

Type: CogStringCollection

The returned layer names.

Exceptions

ExceptionCondition
CogNoFileOpenException

No file is open.

Remarks

Returns a collection containing the names of all the layers in the currently open CAD file. DXF files are usually constructed with named layers.

See Also