Click or drag to resize

BOMServicesValidateBOM Method

Performs BOM error checking, and validates the specified BOM against the specified assembly revision. ValidateBOM may be called prior to importing a new BOM into the system to ensure that the BOM meets the pre-configured error checking settings (as defined in the FactoryLogix global system settings). If issues are detected, they will be included in the return results.

Namespace:  FactoryLogix.xTend.PartDefinition
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public BOMOperationResults ValidateBOM(
	Guid sessionId,
	Guid partId,
	BOM bom
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
partId
Type: SystemGuid
The unique identifier (InternalPart Id property) of the assembly revision that the BOM should be validated against.
bom
Type: FactoryLogix.xTend.DataObjectsBOM
An object representing the BOM to be validated.

Return Value

Type: BOMOperationResults
A BOMOperationResults object representing the results of the validation operation. This object will contain a list of issues that were detected by the validation, along with their severity. If the ResultCode property of the return value is BOMOperationResultCode.Success, it is possible to import and publish the specified BOM into the specified assembly revision.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionAn existing part with matching Id property was not found in the system.
See Also