Cog3DDisplayV2WF Add Method (Cog3DGeometryGraphicBase, Cog3DVisionDataGraphicBase, String)Cognex VisionPro
Adds the given geometryGraphic to the display. It will be associated with the given VisionDataGraphic and the VisionDataGraphic’s 3D coordinate space tree will be used to resolve the geometry graphic’s SelectedSpaceName3D to the display’s DisplaySpaceName3D. Throws an exception if the geometryGraphic is null. Throws an exception if the geometryGraphic has already been added to the display. Throws an exception if the visionDataGraphic is null. Throws an exception if the visionDataGraphic has NOT yet been added to the display. Throws an exception if the groupName is null or empty string.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro3D.Display.Controls (in Cognex.VisionPro3D.Display.Controls.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax

public void Add(
	Cog3DGeometryGraphicBase geometryGraphic,
	Cog3DVisionDataGraphicBase visionDataGraphic,
	string groupName = "__default"
)

Parameters

geometryGraphic
Type: Cognex.VisionPro3D Cog3DGeometryGraphicBase
The geometry graphic to add to the display
visionDataGraphic
Type: Cognex.VisionPro3D Cog3DVisionDataGraphicBase
The vision data graphic to associate the geometry graphic with
groupName (Optional)
Type: System String
The name of the logical group to add the geometry graphic to. The groupName is case insensitive.

Implements

ICog3DDisplayV2 Add(Cog3DGeometryGraphicBase, Cog3DVisionDataGraphicBase, String)
Exceptions

ExceptionCondition
ArgumentNullException Throws an exception if the geometryGraphic is null.
ArgumentException Throws an exception if the geometryGraphic has already been added to the display.
See Also