Assembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 69.0.0.0
Parameters
- parentSpaceName
- Type: System String
A valid nonqualified or fully-qualified space name that indicates the parent space.
- newSpaceName
- Type: System String
A valid nonqualified space name for the new coordinate space.
- parentFromNew
- Type: Cognex.VisionPro3D ICog3DTransform
A 3D transform that maps points from the space you are adding to the parent coordinate space.
- duplicateHandling
- Type: Cognex.VisionPro CogAddSpaceConstants
A CogAddSpaceConstants value that specifies what do if the parent coordinate space already contains an immediate child with the same name as newSpaceName. The options are to return an error, replace the transform of the named child, or do nothing.
| Event Type | Reason |
|---|---|
| Cog3DCoordinateSpaceTree SpaceAdded | Fires when a coordinate space is added to this tree. |
| Exception | Condition |
|---|---|
| ArgumentNullException | parentFromNew is null. |
| ArgumentOutOfRangeException | The duplicateHandling value is not a member of CogAddSpaceConstants. |
| CogSpaceTreeDuplicateChildNameException | newSpaceName is already a child of parentSpaceName and the duplicateHandling argument is DuplicateIsError . |
| CogSpaceTreeInvalidNameSyntaxException | parentSpaceName or newSpaceName is not a legal space name. |
| CogSpaceTreeNameNotUniqueException | parentSpaceName is a nonqualified space name and more than one instance of it exists in this tree. |
| CogSpaceTreeNameNotInTreeException | parentSpaceName does not exist in this tree. |
Adds a new user coordinate space to this tree. You must specify the name of the parent space for the newly added space, and supply a transformation that defines the relationship between the parent space and the new space.