Click or drag to resize

BOMServicesImportAndPublishBOM Method

Validates and Imports a Bill of Materials (BOM) into the specified assembly revision If the BOM passes validation, the BOM will also be published and merged with the master part library. If the BOM does not pass validation, the BOM data will be saved in an "under construction" state.

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 ImportAndPublishBOM(
	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 imported against.
bom
Type: FactoryLogix.xTend.DataObjectsBOM
An object representing the BOM to be imported.

Return Value

Type: BOMOperationResults
A BOMOperationResults object representing the results of the import 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, then the BOM was successfully imported and published.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionAn existing part with matching Id property was not found in the system.
AssemblyRevisionLockedForProductionExceptionThe assembly is released for production.
BOMPublishingConflictExceptionA conflict occurred which requires user input.
See Also