ILinkManager AddLink Method Cognex VisionPro 9.23

Adds a link between pinA and pinB to the LinkManager.

Namespace: Cognex.Vision.Implementation
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.0.0
Syntax

bool AddLink(
	ToolPin pinA,
	ToolPin pinB
)

Return Value

Type: Boolean

true if a Link was successfully created

Exceptions

ExceptionCondition
InvalidOperationExceptionif:
  • pinA or pinB is null
  • pinA or pinB are have incompatible PinTypes
  • pinA and pinB are both source pins
  • pinA and pinB are both destination pins
  • pinA and pinB are not part of the same LinkManager scope
See Also