Click or drag to resize

PartServicesDeletePart Method

Deletes a part definition.

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 DeletePart(
	Guid sessionId,
	Guid partId
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
partId
Type: SystemGuid
The unique Id of the part revision to be deleted. This Id may be obtained from the Id property of the part's data object (derived from type PartBase) obtained by using one of the methods used to retrieve part definitions.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionAn existing part with matching Id property was not found in the system.
RelatedItemExceptionThe part cannot be deleted because it is related to or in use by other data obects in the system.
NotAuthorizedExceptionThrown when not authorized to perform the function.
See Also