Click or drag to resize

PartServicesRemovePartRelationship Method

Removes a relationship between two part definitions.

Namespace:  FactoryLogix.xTend.PartDefinition
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public void RemovePartRelationship(
	Guid sessionId,
	PartBase parentPart,
	PartBase relatedPart
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
parentPart
Type: FactoryLogix.xTend.DataObjectsPartBase
The part whose alternate relationships will be reduced. The Id property of the object must be valid.
relatedPart
Type: FactoryLogix.xTend.DataObjectsPartBase
The part that will be removed from parent part's related part list. The Id property of the object must be valid.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionThe specified parentPart or relatedPart was not found in the system.
RelatedItemTypeExceptionThe specified relatedPart is not relevant to the parentPart.
See Also