Gets all shape models in the specified group from the currently open CAD file. Returns a newly created CogShapeModelCollection. All models have a weight of 1.0 and an undefined polarity. These properties are required for training synthetic PatMax.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.1.0.0
Syntax
Parameters
- groupName
- Type: System String
The group from which to get the shapes.
Return Value
Type: ICogShapeModelCollectionThe shape model collection.
Exceptions
| Exception | Condition |
|---|---|
| CogNoFileOpenException | No file is open. |
| ArgumentException | groupName does not exist.. |
Remarks
Gets all shape models in the specified group from the currently open CAD file. Returns a newly created CogShapeModelCollection. All models have a weight of 1.0 and an undefined polarity. These properties are required for training synthetic PatMax.
See Also