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.254.0.0 (8.254.0.0)
Syntaxpublic SubAssemblyLoadResult ReplaceSubAssembly(
	Guid sessionId,
	Guid transactionId,
	Nullable<Guid> parentItemId,
	Nullable<int> position,
	Guid subAssyItemId,
	SubAssemblyLoadVerifications verifications,
	Guid currentSubAssyItemId,
	string newReference = null
)
Public Function ReplaceSubAssembly ( 
	sessionId As Guid,
	transactionId As Guid,
	parentItemId As Nullable(Of Guid),
	position As Nullable(Of Integer),
	subAssyItemId As Guid,
	verifications As SubAssemblyLoadVerifications,
	currentSubAssyItemId As Guid,
	Optional newReference As String = Nothing
) As SubAssemblyLoadResult
public:
virtual SubAssemblyLoadResult^ ReplaceSubAssembly(
	Guid sessionId, 
	Guid transactionId, 
	Nullable<Guid> parentItemId, 
	Nullable<int> position, 
	Guid subAssyItemId, 
	SubAssemblyLoadVerifications verifications, 
	Guid currentSubAssyItemId, 
	String^ newReference = nullptr
) sealed
abstract ReplaceSubAssembly : 
        sessionId : Guid * 
        transactionId : Guid * 
        parentItemId : Nullable<Guid> * 
        position : Nullable<int> * 
        subAssyItemId : Guid * 
        verifications : SubAssemblyLoadVerifications * 
        currentSubAssyItemId : Guid * 
        ?newReference : string 
(* Defaults:
        let _newReference = defaultArg newReference null
*)
-> SubAssemblyLoadResult 
override ReplaceSubAssembly : 
        sessionId : Guid * 
        transactionId : Guid * 
        parentItemId : Nullable<Guid> * 
        position : Nullable<int> * 
        subAssyItemId : Guid * 
        verifications : SubAssemblyLoadVerifications * 
        currentSubAssyItemId : Guid * 
        ?newReference : string 
(* Defaults:
        let _newReference = defaultArg newReference null
*)
-> SubAssemblyLoadResult 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: 
SubAssemblyLoadResultA 
SubAssemblyLoadResult object with details regarding the result of the sub-assembly load operation.
Exceptions
See Also