Gets all shapes in the specified layer from the currently open CAD file. Returns a newly created CogGraphicCollection.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax
Parameters
- layerName
- Type: System String
The layer from which to get the shapes.
Return Value
Type: CogGraphicCollectionThe shapes.
Exceptions
| Exception | Condition |
|---|---|
| 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