Click or drag to resize

ILinkSource.LinkToTarget Method (LinkActorType, ILinkTarget)

Establishes a link between two parts.

Namespace:  KASAPIv2
Assembly:  KAS-API-v2 (in KAS-API-v2.dll) Version: KAS API v2
Syntax
C#
bool LinkToTarget(
	LinkActorType actor,
	ILinkTarget target
)
Request Example View Source

Parameters

actor
Type: KASAPIv2.LinkActorType
The actor, who initiated the link.
target
Type: KASAPIv2.ILinkTarget
The target to link with.

Return Value

Type: Boolean
true if the parts were linked successfully.
Remarks
This version of the method doesn't require staring the linking mode. All the required transitions are done internally, and the method only reports if the link was successful or not. No GUI mode can be specified when creating a link like this.
See Also