Click or drag to resize

TrackingServicesReplaceSubAssembly Method

Replaces the sub-assembly that is presently loaded into a particular position within particular parent assembly with a new sub-assembly.

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public SubAssemblyLoadResult ReplaceSubAssembly(
	Guid sessionId,
	Guid transactionId,
	Nullable<Guid> parentItemId,
	Nullable<int> position,
	Guid subAssyItemId,
	SubAssemblyLoadVerifications verifications,
	Guid currentSubAssyItemId,
	string newReference = null
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
transactionId
Type: SystemGuid
The transaction Id returned by the TransactionId property of the StartResult.
parentItemId
Type: SystemNullableGuid
The optional Id of the parent Item. This is only required if the transaction is associated with more than one parent assembly Items.
position
Type: SystemNullableInt32
An optional numeric position, starting with number 1, designating the location where the sub-assembly was installed within the parent assembly.
subAssyItemId
Type: SystemGuid
The Id of the Item representing the new sub-assembly to be installed.
verifications
Type: FactoryLogix.xTend.DataObjectsSubAssemblyLoadVerifications
A flagged enumeration indicating the verification checks that should be performed prior to allowing the sub-assebmly to be installed.
currentSubAssyItemId
Type: SystemGuid
The Id of the Item representing the new sub-assembly to replace.
newReference (Optional)
Type: SystemString
String that denotes a reference for the sub-assembly. Does not affect lookup of part in BOM.

Return Value

Type: SubAssemblyLoadResult
A SubAssemblyLoadResult object with details regarding the result of the sub-assembly load operation.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
ItemExceptionThrown if the parentItemId parameter is non-null and is invalid, or if the subAssyItemId parameter is invalid.
PositionExceptionThrown if position parameter is empty or otherwise invalid.
TransactionNotFoundExceptionThrown if the transactionId parameter is invalid.
See Also